From: Anuj Phogat Date: Fri, 26 May 2017 17:55:22 +0000 (-0700) Subject: anv/icl: Add gen11 mocs defines X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=413d475b4431732d71fa4d15a3690f3b1f03d2e1;p=mesa.git anv/icl: Add gen11 mocs defines Signed-off-by: Anuj Phogat Reviewed-by: Jason Ekstrand --- 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;