Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371457
b: refs/heads/master
c: 3eb1c00
h: refs/heads/master
i:
  371455: 829b62d
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Apr 18, 2013
1 parent cb50503 commit 670e6da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e7d12d46733d5a6ddf3f07a1f9ab75ec12d5a19
refs/heads/master: 3eb1c005c616f110ccec25540712ce7232d5d4bf
9 changes: 6 additions & 3 deletions trunk/drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,12 @@ void i915_gem_init_global_gtt(struct drm_device *dev)

if (intel_enable_ppgtt(dev) && HAS_ALIASING_PPGTT(dev)) {
int ret;
/* PPGTT pdes are stolen from global gtt ptes, so shrink the
* aperture accordingly when using aliasing ppgtt. */
gtt_size -= I915_PPGTT_PD_ENTRIES*PAGE_SIZE;

if (INTEL_INFO(dev)->gen <= 7) {
/* PPGTT pdes are stolen from global gtt ptes, so shrink the
* aperture accordingly when using aliasing ppgtt. */
gtt_size -= I915_PPGTT_PD_ENTRIES*PAGE_SIZE;
}

i915_gem_setup_global_gtt(dev, 0, mappable_size, gtt_size);

Expand Down

0 comments on commit 670e6da

Please sign in to comment.