From b3fe990dd7ef25fa8f8e47b04fb7522942c6668d Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 18 Apr 2019 21:33:42 +0300 Subject: lib/rendercopy: Configure MOCS more consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä Reviewed-by: Chris Wilson --- lib/rendercopy_gen7.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/rendercopy_gen7.c') 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)) -- cgit v1.2.3