diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-04-18 21:33:42 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-04-29 14:56:10 +0300 |
commit | b3fe990dd7ef25fa8f8e47b04fb7522942c6668d (patch) | |
tree | 1d5d80322c098e7948cbc63fc76f4bc0e87fbf9c /lib/rendercopy_gen7.c | |
parent | 6e6f7c00fd860cc61e28e47286118e590f2a4563 (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_gen7.c')
-rw-r--r-- | lib/rendercopy_gen7.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rendercopy_gen7.c b/lib/rendercopy_gen7.c index 94946842..a3c8b7f3 100644 --- a/lib/rendercopy_gen7.c +++ b/lib/rendercopy_gen7.c @@ -94,7 +94,10 @@ gen7_bind_buf(struct intel_batchbuffer *batch, (igt_buf_height(buf) - 1) << GEN7_SURFACE_HEIGHT_SHIFT); ss[3] = (buf->stride - 1) << GEN7_SURFACE_PITCH_SHIFT; ss[4] = 0; - ss[5] = 0; + if (IS_VALLEYVIEW(batch->devid)) + ss[5] = VLV_MOCS_L3 << 16; + else + ss[5] = (IVB_MOCS_L3 | IVB_MOCS_PTE) << 16; ss[6] = 0; ss[7] = 0; if (IS_HASWELL(batch->devid)) |