In particular Shader Channel Select & Texture Address Control Mode.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
<value name="Vertical" value="1"/>
</field>
<field name="Memory Compression Enable" start="254" end="254" type="bool"/>
- <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
<field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
<field name="Surface Base Address" start="256" end="319" type="address"/>
<field name="X Offset for V Plane" start="368" end="381" type="uint"/>
</field>
<field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
<field name="Reduction Type Enable" start="105" end="105" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
</struct>
<struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
<value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
<value name="CUBECTRLMODE_OVERRIDE" value="1"/>
</field>
- <field name="TCX Address Control Mode" start="38" end="40" type="uint"/>
- <field name="TCY Address Control Mode" start="35" end="37" type="uint"/>
- <field name="TCZ Address Control Mode" start="32" end="34" type="uint"/>
+ <field name="TCX Address Control Mode" start="38" end="40" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="35" end="37" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="32" end="34" type="Texture Coordinate Mode"/>
<field name="Border Color Pointer" start="69" end="95" type="offset"/>
<field name="Monochrome Filter Height: Reserved" start="125" end="127" type="uint"/>
<field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
<value name="LOW" value="3"/>
</field>
<field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
</struct>
<instruction name="3DPRIMITIVE" bias="2" length="7">
<value name="RAW" value="511"/>
</enum>
+ <enum name="Shader Channel Select" prefix="SCS">
+ <value name="ZERO" value="0"/>
+ <value name="ONE" value="1"/>
+ <value name="RED" value="4"/>
+ <value name="GREEN" value="5"/>
+ <value name="BLUE" value="6"/>
+ <value name="ALPHA" value="7"/>
+ </enum>
+
<enum name="Texture Coordinate Mode" prefix="TCM">
<value name="WRAP" value="0"/>
<value name="MIRROR" value="1"/>
<field name="Green Clear Color" start="254" end="254" type="uint" />
<field name="Blue Clear Color" start="253" end="253" type="uint" />
<field name="Alpha Clear Color" start="252" end="252" type="uint" />
- <field name="Shader Channel Select Red" start="249" end="251" type="uint">
- <value name="SCS_ZERO" value="0"/>
- <value name="SCS_ONE" value="1"/>
- <value name="SCS_RED" value="4"/>
- <value name="SCS_GREEN" value="5"/>
- <value name="SCS_BLUE" value="6"/>
- <value name="SCS_ALPHA" value="7"/>
- </field>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
<field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
</struct>
<value name="LOW" value="3"/>
</field>
<field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
</struct>
<struct name="MI_MATH_ALU_INSTRUCTION" length="1">
<field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
<field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
<field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
- <field name="Red Clear Color" start="255" end="255" type="uint"/>
- <field name="Green Clear Color" start="254" end="254" type="uint"/>
- <field name="Blue Clear Color" start="253" end="253" type="uint"/>
- <field name="Alpha Clear Color" start="252" end="252" type="uint"/>
- <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Red Clear Color" start="255" end="255" type="Clear Color"/>
+ <field name="Green Clear Color" start="254" end="254" type="Clear Color"/>
+ <field name="Blue Clear Color" start="253" end="253" type="Clear Color"/>
+ <field name="Alpha Clear Color" start="252" end="252" type="Clear Color"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
<field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
<field name="Surface Base Address" start="256" end="319" type="address"/>
<field name="X Offset for V Plane" start="368" end="381" type="uint"/>
<value name="LOW" value="3"/>
</field>
<field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
</struct>
<struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
<value name="Vertical" value="1"/>
</field>
<field name="Memory Compression Enable" start="254" end="254" type="bool"/>
- <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
<field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
<field name="Surface Base Address" start="256" end="319" type="address"/>
<field name="X Offset for V Plane" start="368" end="381" type="uint"/>
</field>
<field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
<field name="Reduction Type Enable" start="105" end="105" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
</struct>
<struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">