Mesa (master): anv/icl: Add gen11 mocs defines

Anuj Phogat aphogat at kemper.freedesktop.org
Fri Feb 16 19:11:30 UTC 2018


Module: Mesa
Branch: master
Commit: 413d475b4431732d71fa4d15a3690f3b1f03d2e1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=413d475b4431732d71fa4d15a3690f3b1f03d2e1

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri May 26 10:55:22 2017 -0700

anv/icl: Add gen11 mocs defines

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 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 d38dd9e422..009f5304f2 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;




More information about the mesa-commit mailing list