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/gen7_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/gen7_render.h')
-rw-r--r-- | lib/gen7_render.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/gen7_render.h b/lib/gen7_render.h index 4bde0d5f..5dfc04d4 100644 --- a/lib/gen7_render.h +++ b/lib/gen7_render.h @@ -186,6 +186,14 @@ #define GEN7_ARF_IP 0xA0 +#define VLV_MOCS_SNOOP (2 << 1) +#define VLV_MOCS_L3 (1 << 0) + +#define IVB_MOCS_GFDT (1 << 2) +#define IVB_MOCS_PTE (0 << 1) +#define IVB_MOCS_LLC (1 << 1) +#define IVB_MOCS_L3 (1 << 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. @@ -252,7 +260,8 @@ struct gen7_surface_state { struct { unsigned int mip_count:4; unsigned int min_lod:4; - unsigned int pad1:12; + unsigned int pad1:8; + unsigned int memory_object_control:4; unsigned int y_offset:4; unsigned int pad0:1; unsigned int x_offset:7; |