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/gen6_render.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/gen6_render.h') diff --git a/lib/gen6_render.h b/lib/gen6_render.h index f45c8ae7..a4c16641 100644 --- a/lib/gen6_render.h +++ b/lib/gen6_render.h @@ -735,6 +735,12 @@ #define GEN6_SCRATCH_SPACE_SIZE_1M 10 #define GEN6_SCRATCH_SPACE_SIZE_2M 11 +#define GEN6_MOCS_GFDT (1 << 2) +#define GEN6_MOCS_PTE (0 << 0) +#define GEN6_MOCS_UC (1 << 0) +#define GEN6_MOCS_LLC (2 << 0) +#define GEN6_MOCS_LLC_MLC (3 << 0) + /* The hardware supports two different modes for border color. The * default (OpenGL) mode uses floating-point color channels, while the * legacy mode uses 4 bytes. @@ -933,7 +939,8 @@ struct gen6_surface_state { } ss4; struct { - uint32_t pad:20; + uint32_t pad:16; + uint32_t memory_object_control:4; uint32_t y_offset:4; uint32_t pad2:1; uint32_t x_offset:7; -- cgit v1.2.3