diff options
author | Jordan Justen <[email protected]> | 2019-05-10 11:50:54 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2019-10-30 12:42:54 -0700 |
commit | b529db00eec1dda761ba41921b16f94e46d5dae2 (patch) | |
tree | 545dd9edcd96dc4f5d162e33758768fb8d06d75a /src/gallium/drivers/iris | |
parent | ffb46b2bb7e9a4a21ac37ef1569dad1a8efd1485 (diff) |
iris: Set MOCS for external surfaces to uncached
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Rafael Antognolli <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index a53e76c004e..394781fd584 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -110,12 +110,16 @@ #include "iris_genx_macros.h" #include "intel/common/gen_guardband.h" -#if GEN_GEN == 8 -#define MOCS_PTE 0x18 -#define MOCS_WB 0x78 -#else +#if GEN_GEN >= 12 +/* TODO: Set PTE to MOCS 61 when the kernel is ready */ +#define MOCS_PTE (3 << 1) +#define MOCS_WB (2 << 1) +#elif GEN_GEN >= 9 #define MOCS_PTE (1 << 1) #define MOCS_WB (2 << 1) +#elif GEN_GEN == 8 +#define MOCS_PTE 0x18 +#define MOCS_WB 0x78 #endif static uint32_t |