genxml/gen12: 3D_MODE bits 31:16 are no longer must-be-one
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 10 Mar 2021 17:54:15 +0000 (09:54 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Mar 2021 09:07:37 +0000 (09:07 +0000)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9505>

src/gallium/drivers/iris/iris_state.c
src/intel/genxml/gen12.xml
src/intel/genxml/gen125.xml
src/intel/vulkan/genX_state.c

index 4e354a4..ed4804f 100644 (file)
@@ -915,6 +915,7 @@ gen12_upload_pixel_hashing_tables(struct iris_batch *batch)
 
    iris_emit_cmd(batch, GENX(3DSTATE_3D_MODE), p) {
       p.SubsliceHashingTableEnable = true;
+      p.SubsliceHashingTableEnableMask = true;
    }
 }
 #endif
index 903d6e2..957b05f 100644 (file)
     <field name="3D Scoreboard Hashing Mode" start="36" end="36" type="bool"/>
     <field name="Subslice Hashing Table Enable" start="37" end="37" type="bool"/>
     <field name="Slice Hashing Table Enable" start="38" end="38" type="bool"/>
-    <field name="Mask" start="48" end="63" type="mbo"/>
+    <field name="Cross Slice Hashing Mode Mask" start="48" end="49" type="uint"/>
+    <field name="3D Scoreboard Hashing Mode Mask" start="52" end="52" type="bool"/>
+    <field name="Subslice Hashing Table Enable Mask" start="53" end="53" type="bool"/>
+    <field name="Slice Hashing Table Enable Mask" start="54" end="54" type="bool"/>
   </instruction>
 
   <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
index 589f616..3751916 100644 (file)
     <field name="3D Scoreboard Hashing Mode" start="36" end="36" type="bool"/>
     <field name="Subslice Hashing Table Enable" start="37" end="37" type="bool"/>
     <field name="Slice Hashing Table Enable" start="38" end="38" type="bool"/>
-    <field name="Mask" start="48" end="63" type="mbo"/>
+    <field name="Cross Slice Hashing Mode Mask" start="48" end="49" type="uint"/>
+    <field name="3D Scoreboard Hashing Mode Mask" start="52" end="52" type="bool"/>
+    <field name="Subslice Hashing Table Enable Mask" start="53" end="53" type="bool"/>
+    <field name="Slice Hashing Table Enable Mask" start="54" end="54" type="bool"/>
   </instruction>
 
   <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
index e5f1b2b..6cbfd9f 100644 (file)
@@ -147,6 +147,7 @@ genX(emit_slice_hashing_state)(struct anv_device *device,
 
    anv_batch_emit(batch, GENX(3DSTATE_3D_MODE), p) {
       p.SubsliceHashingTableEnable = true;
+      p.SubsliceHashingTableEnableMask = true;
    }
 #endif
 }