Mesa (master): genxml: Add 3DSTATE_DEPTH_BOUNDS instruction.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 28 14:13:56 UTC 2019


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

Author: Plamena Manolova <plamena.manolova at intel.com>
Date:   Wed Oct 23 21:39:02 2019 +0100

genxml: Add 3DSTATE_DEPTH_BOUNDS instruction.

In gen12 we add the 3DSTATE_DEPTH_BOUNDS instruction
which enables support for depth bounds testing.

Signed-off-by: Plamena Manolova <plamena.manolova at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/intel/genxml/gen12.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/intel/genxml/gen12.xml b/src/intel/genxml/gen12.xml
index f21d9432900..41957adacf9 100644
--- a/src/intel/genxml/gen12.xml
+++ b/src/intel/genxml/gen12.xml
@@ -1563,6 +1563,19 @@
     <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
   </instruction>
 
+  <instruction name="3DSTATE_DEPTH_BOUNDS" bias="1" length="4">
+    <field name="Length" start="0" end="7" type="uint" default="2"/>
+    <field name="Depth Bounds Test Value Modify Disable" start="14" end="14" type="bool"/>
+    <field name="Depth Bounds Test Enable Modify Disable" start="15" end="15" type="bool"/>
+    <field name="3DSTATE Command Sub Opcode" start="16" end="23" type="uint" default="113"/>
+    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
+    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
+    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
+    <field name="Depth Bounds Test Enable" start="32" end="32" type="uint"/>
+    <field name="Depth Bounds Test Min Value" start="64" end="95" type="float"/>
+    <field name="Depth Bounds Test Max Value" start="96" end="127" type="float"/>
+  </instruction>
+
   <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="8" engine="render">
     <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>




More information about the mesa-commit mailing list