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/gen6_render.h | |
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/gen6_render.h')
-rw-r--r-- | lib/gen6_render.h | 9 |
1 files changed, 8 insertions, 1 deletions
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; |