diff options
author | Eric Anholt <[email protected]> | 2017-12-27 16:20:12 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-03 14:25:23 -0800 |
commit | 883a9b02c9644b7bff434ecc574ebee7aba04523 (patch) | |
tree | cecfd453286482cf0c87cfa8d43048a8aa9ca217 | |
parent | 8e5a0ed95307fed7cb2bbbb86d1c264bbd070ca0 (diff) |
broadcom/vc5: Turn the CLE XML's memory format into an enum.
-rw-r--r-- | src/broadcom/cle/v3d_packet_v33.xml | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/broadcom/cle/v3d_packet_v33.xml b/src/broadcom/cle/v3d_packet_v33.xml index 6ec5332aeb7..4c701db5fb1 100644 --- a/src/broadcom/cle/v3d_packet_v33.xml +++ b/src/broadcom/cle/v3d_packet_v33.xml @@ -98,6 +98,15 @@ <value name="set" value="2"/> </enum> + <enum name="Memory Format" prefix="V3D_MEMORY_FORMAT"> + <value name="Raster" value="0"/> + <value name="Lineartile" value="1"/> + <value name="UB-linear (1 UIF block wide)" value="2"/> + <value name="UB-linear (2 UIF blocks wide)" value="3"/> + <value name="UIF (No XOR)" value="4"/> + <value name="UIF (XOR)" value="5"/> + </enum> + <packet code="0" name="Halt"/> <packet code="1" name="NOP"/> <packet code="4" name="Flush"/> @@ -482,14 +491,7 @@ <field name="Flip Y" size="1" start="27" type="bool"/> - <field name="Memory Format" size="3" start="24" type="uint" prefix="Memory Format"> - <value name="Raster" value="0"/> - <value name="Lineartile" value="1"/> - <value name="UB-linear (1 UIF block wide)" value="2"/> - <value name="UB-linear (2 UIF blocks wide)" value="3"/> - <value name="UIF (No XOR)" value="4"/> - <value name="UIF (XOR)" value="5"/> - </field> + <field name="Memory Format" size="3" start="24" type="Memory Format"/> <field name="A dithered" size="1" start="23" type="bool"/> <field name="BGR dithered" size="1" start="22" type="bool"/> @@ -568,14 +570,7 @@ <field name="Padded height of output image in UIF blocks" size="13" start="25" type="uint"/> - <field name="Memory Format" size="3" start="22" type="uint" prefix="Memory Format"> - <value name="Raster" value="0"/> - <value name="Lineartile" value="1"/> - <value name="UB-linear (1 UIF block wide)" value="2"/> - <value name="UB-linear (2 UIF blocks wide)" value="3"/> - <value name="UIF (No XOR)" value="4"/> - <value name="UIF (XOR)" value="5"/> - </field> + <field name="Memory Format" size="3" start="22" type="Memory Format"/> <field name="Output image format" size="6" start="16" type="uint" prefix="Output Image Format"> <value name="depth_component32f" value="0"/> |