summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen9.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-18 21:33:42 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-29 14:56:10 +0300
commitb3fe990dd7ef25fa8f8e47b04fb7522942c6668d (patch)
tree1d5d80322c098e7948cbc63fc76f4bc0e87fbf9c /lib/rendercopy_gen9.c
parent6e6f7c00fd860cc61e28e47286118e590f2a4563 (diff)
lib/rendercopy: Configure MOCS more consistently
Unify the MOCS to be more consistently across the platforms. Currently gen8+ are specifyig UC whereas earlier platforms generally use PTE. Let's make everyone more or less specify L3+PTE. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/rendercopy_gen9.c')
-rw-r--r--lib/rendercopy_gen9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 5c6485d7..259a3ca2 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -212,6 +212,8 @@ gen8_bind_buf(struct intel_batchbuffer *batch, const struct igt_buf *buf,
else if (buf->tiling != I915_TILING_NONE)
ss->ss0.tiled_mode = 3;
+ ss->ss1.memory_object_control = I915_MOCS_PTE << 1;
+
if (buf->tiling == I915_TILING_Yf)
ss->ss5.trmode = 1;
else if (buf->tiling == I915_TILING_Ys)