From 413d475b4431732d71fa4d15a3690f3b1f03d2e1 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Fri, 26 May 2017 10:55:22 -0700 Subject: anv/icl: Add gen11 mocs defines Signed-off-by: Anuj Phogat Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_private.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index d38dd9e4220..009f5304f29 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1148,6 +1148,17 @@ _anv_combine_address(struct anv_batch *batch, void *location, .IndextoMOCSTables = 1 \ } +/* Ice Lake MOCS defines are duplicates of Skylake MOCS defines. */ +#define GEN11_MOCS (struct GEN11_MEMORY_OBJECT_CONTROL_STATE) { \ + /* TC=LLC/eLLC, LeCC=WB, LRUM=3, L3CC=WB */ \ + .IndextoMOCSTables = 2 \ + } + +#define GEN11_MOCS_PTE { \ + /* TC=LLC/eLLC, LeCC=WB, LRUM=3, L3CC=WB */ \ + .IndextoMOCSTables = 1 \ + } + struct anv_device_memory { struct anv_bo * bo; struct anv_memory_type * type; -- cgit v1.2.3