OSDN Git Service

intel/genxml: Use 3D_Compare_Function for gen8+ test functions
authorKristian H. Kristensen <hoegsberg@gmail.com>
Tue, 29 Nov 2016 00:38:04 +0000 (16:38 -0800)
committerKristian H. Kristensen <hoegsberg@gmail.com>
Wed, 30 Nov 2016 06:02:49 +0000 (22:02 -0800)
When the state fields where shuffled around for gen8, the compare
function enums were downgraded to just uints. Change them to enum
3D_Compare_Function.

Signed-off-by: Kristian H. Kristensen <hoegsberg@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/genxml/gen8.xml
src/intel/genxml/gen9.xml

index 66d1639..e822044 100644 (file)
     <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
     <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
     <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
-    <field name="Alpha Test Function" start="24" end="26" type="uint"/>
+    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
     <field name="Color Dither Enable" start="23" end="23" type="bool"/>
     <field name="X Dither Offset" start="21" end="22" type="uint"/>
     <field name="Y Dither Offset" start="19" end="20" type="uint"/>
     <field name="Stencil Fail Op" start="61" end="63" type="uint"/>
     <field name="Stencil Pass Depth Fail Op" start="58" end="60" type="uint"/>
     <field name="Stencil Pass Depth Pass Op" start="55" end="57" type="uint"/>
-    <field name="Backface Stencil Test Function" start="52" end="54" type="uint"/>
+    <field name="Backface Stencil Test Function" start="52" end="54" type="3D_Compare_Function"/>
     <field name="Backface Stencil Fail Op" start="49" end="51" type="uint"/>
     <field name="Backface Stencil Pass Depth Fail Op" start="46" end="48" type="uint"/>
     <field name="Backface Stencil Pass Depth Pass Op" start="43" end="45" type="uint"/>
-    <field name="Stencil Test Function" start="40" end="42" type="uint"/>
-    <field name="Depth Test Function" start="37" end="39" type="uint"/>
+    <field name="Stencil Test Function" start="40" end="42" type="3D_Compare_Function"/>
+    <field name="Depth Test Function" start="37" end="39" type="3D_Compare_Function"/>
     <field name="Double Sided Stencil Enable" start="36" end="36" type="bool"/>
     <field name="Stencil Test Enable" start="35" end="35" type="bool"/>
     <field name="Stencil Buffer Write Enable" start="34" end="34" type="bool"/>
index 3ba1104..3232cf9 100644 (file)
     <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
     <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
     <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
-    <field name="Alpha Test Function" start="24" end="26" type="uint"/>
+    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
     <field name="Color Dither Enable" start="23" end="23" type="bool"/>
     <field name="X Dither Offset" start="21" end="22" type="uint"/>
     <field name="Y Dither Offset" start="19" end="20" type="uint"/>
     <field name="Stencil Fail Op" start="61" end="63" type="uint"/>
     <field name="Stencil Pass Depth Fail Op" start="58" end="60" type="uint"/>
     <field name="Stencil Pass Depth Pass Op" start="55" end="57" type="uint"/>
-    <field name="Backface Stencil Test Function" start="52" end="54" type="uint"/>
+    <field name="Backface Stencil Test Function" start="52" end="54" type="3D_Compare_Function"/>
     <field name="Backface Stencil Fail Op" start="49" end="51" type="uint"/>
     <field name="Backface Stencil Pass Depth Fail Op" start="46" end="48" type="uint"/>
     <field name="Backface Stencil Pass Depth Pass Op" start="43" end="45" type="uint"/>
-    <field name="Stencil Test Function" start="40" end="42" type="uint"/>
-    <field name="Depth Test Function" start="37" end="39" type="uint"/>
+    <field name="Stencil Test Function" start="40" end="42" type="3D_Compare_Function"/>
+    <field name="Depth Test Function" start="37" end="39" type="3D_Compare_Function"/>
     <field name="Double Sided Stencil Enable" start="36" end="36" type="bool"/>
     <field name="Stencil Test Enable" start="35" end="35" type="bool"/>
     <field name="Stencil Buffer Write Enable" start="34" end="34" type="bool"/>