diff options
author | Kristian H. Kristensen <[email protected]> | 2016-11-28 16:32:20 -0800 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2016-11-29 22:02:49 -0800 |
commit | 8fc74b879e25627d2e1e85703cf377100da71e13 (patch) | |
tree | 54c5cd87d8e26a87ab8c2695d90fda7ae618528b /src/intel/genxml | |
parent | 5814fc1bb7357881c3e89323756743e6de3dc91f (diff) |
intel/genxml: Remove duplicate COMPAREFUNCTION values
These values were defined both as an enum and as inline values. Remove
the inline values and reference the 3D_Compare_Function enum instead.
Signed-off-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/genxml')
-rw-r--r-- | src/intel/genxml/gen6.xml | 44 | ||||
-rw-r--r-- | src/intel/genxml/gen7.xml | 44 | ||||
-rw-r--r-- | src/intel/genxml/gen75.xml | 44 |
3 files changed, 12 insertions, 120 deletions
diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml index 2e737cf42e9..7734ef66286 100644 --- a/src/intel/genxml/gen6.xml +++ b/src/intel/genxml/gen6.xml @@ -427,16 +427,7 @@ <value name="LOGICOP_SET" value="15"/> </field> <field name="Alpha Test Enable" start="48" end="48" type="bool"/> - <field name="Alpha Test Function" start="45" end="47" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/> <field name="Color Dither Enable" start="44" end="44" type="bool"/> <field name="X Dither Offset" start="42" end="43" type="uint"/> <field name="Y Dither Offset" start="40" end="41" type="uint"/> @@ -478,16 +469,7 @@ <struct name="DEPTH_STENCIL_STATE" length="3"> <field name="Stencil Test Enable" start="31" end="31" type="bool"/> - <field name="Stencil Test Function" start="28" end="30" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/> <field name="Stencil Fail Op" start="25" end="27" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -502,16 +484,7 @@ <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="uint"/> <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/> <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/> - <field name="Backface Stencil Test Function" start="12" end="14" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/> <field name="Backface Stencil Fail Op" start="9" end="11" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -529,16 +502,7 @@ <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/> <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/> <field name="Depth Test Enable" start="95" end="95" type="bool"/> - <field name="Depth Test Function" start="91" end="93" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/> <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/> </struct> diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml index ebec118d084..78c5ede3ff9 100644 --- a/src/intel/genxml/gen7.xml +++ b/src/intel/genxml/gen7.xml @@ -482,16 +482,7 @@ <value name="LOGICOP_SET" value="15"/> </field> <field name="Alpha Test Enable" start="48" end="48" type="bool"/> - <field name="Alpha Test Function" start="45" end="47" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/> <field name="Color Dither Enable" start="44" end="44" type="bool"/> <field name="X Dither Offset" start="42" end="43" type="uint"/> <field name="Y Dither Offset" start="40" end="41" type="uint"/> @@ -533,16 +524,7 @@ <struct name="DEPTH_STENCIL_STATE" length="3"> <field name="Stencil Test Enable" start="31" end="31" type="bool"/> - <field name="Stencil Test Function" start="28" end="30" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/> <field name="Stencil Fail Op" start="25" end="27" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -557,16 +539,7 @@ <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="uint"/> <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/> <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/> - <field name="Backface Stencil Test Function" start="12" end="14" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/> <field name="Backface Stencil Fail Op" start="9" end="11" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -584,16 +557,7 @@ <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/> <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/> <field name="Depth Test Enable" start="95" end="95" type="bool"/> - <field name="Depth Test Function" start="91" end="93" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/> <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/> </struct> diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml index 3d5d3338d3b..2be1cfda338 100644 --- a/src/intel/genxml/gen75.xml +++ b/src/intel/genxml/gen75.xml @@ -492,16 +492,7 @@ <value name="LOGICOP_SET" value="15"/> </field> <field name="Alpha Test Enable" start="48" end="48" type="bool"/> - <field name="Alpha Test Function" start="45" end="47" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/> <field name="Color Dither Enable" start="44" end="44" type="bool"/> <field name="X Dither Offset" start="42" end="43" type="uint"/> <field name="Y Dither Offset" start="40" end="41" type="uint"/> @@ -543,16 +534,7 @@ <struct name="DEPTH_STENCIL_STATE" length="3"> <field name="Stencil Test Enable" start="31" end="31" type="bool"/> - <field name="Stencil Test Function" start="28" end="30" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/> <field name="Stencil Fail Op" start="25" end="27" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -567,16 +549,7 @@ <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="uint"/> <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/> <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/> - <field name="Backface Stencil Test Function" start="12" end="14" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/> <field name="Backface Stencil Fail Op" start="9" end="11" type="uint"> <value name="STENCILOP_KEEP" value="0"/> <value name="STENCILOP_ZERO" value="1"/> @@ -594,16 +567,7 @@ <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/> <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/> <field name="Depth Test Enable" start="95" end="95" type="bool"/> - <field name="Depth Test Function" start="91" end="93" type="uint"> - <value name="COMPAREFUNCTION_ALWAYS" value="0"/> - <value name="COMPAREFUNCTION_NEVER" value="1"/> - <value name="COMPAREFUNCTION_LESS" value="2"/> - <value name="COMPAREFUNCTION_EQUAL" value="3"/> - <value name="COMPAREFUNCTION_LEQUAL" value="4"/> - <value name="COMPAREFUNCTION_GREATER" value="5"/> - <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/> - <value name="COMPAREFUNCTION_GEQUAL" value="7"/> - </field> + <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/> <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/> </struct> |