Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371451
b: refs/heads/master
c: 4615d4c
h: refs/heads/master
i:
  371449: 8118620
  371447: 80f35f3
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Apr 18, 2013
1 parent b5cc2f7 commit bd1d8c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57d277bbfcfbacaf1dc738bf23279cc60d5cda65
refs/heads/master: 4615d4c9e27eda42c3e965f208a4b4065841498c
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ create_hw_context(struct drm_device *dev,
return ERR_PTR(-ENOMEM);
}

if (INTEL_INFO(dev)->gen >= 7) {
ret = i915_gem_object_set_cache_level(ctx->obj,
I915_CACHE_LLC_MLC);
if (ret)
goto err_out;
}

/* The ring associated with the context object is handled by the normal
* object tracking code. We give an initial ring value simple to pass an
* assertion in the context switch code.
Expand Down

0 comments on commit bd1d8c9

Please sign in to comment.