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_gen6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rendercopy_gen6.c') diff --git a/lib/rendercopy_gen6.c b/lib/rendercopy_gen6.c index b90466d0..83c7d694 100644 --- a/lib/rendercopy_gen6.c +++ b/lib/rendercopy_gen6.c @@ -117,6 +117,8 @@ gen6_bind_buf(struct intel_batchbuffer *batch, const struct igt_buf *buf, ss->ss3.tiled_surface = buf->tiling != I915_TILING_NONE; ss->ss3.tile_walk = buf->tiling == I915_TILING_Y; + ss->ss5.memory_object_control = GEN6_MOCS_PTE; + return intel_batchbuffer_subdata_offset(batch, ss); } -- cgit v1.2.3