broadcom/vc5: Turn the decimate mode field into an enum in the XML.
authorEric Anholt <eric@anholt.net>
Thu, 28 Dec 2017 00:43:10 +0000 (16:43 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Jan 2018 22:25:23 +0000 (14:25 -0800)
src/broadcom/cle/v3d_packet_v33.xml

index e3c35de68b4b162ecf94e297a20617c57cd11aef..6049d7359b3e248417914c5571ec4a45dc097f04 100644 (file)
     <value name="UIF (XOR)" value="5"/>
   </enum>
 
+  <enum name="Decimate Mode" prefix="V3D_DECIMATE_MODE">
+    <value name="sample 0" value="0"/>
+    <value name="4x" value="1"/>
+    <value name="16x" value="2"/>
+    <value name="all samples" value="3"/>
+  </enum>
+
   <enum name="Output Image Format" prefix="V3D_OUTPUT_IMAGE_FORMAT">
     <!--
        Formats appear with their channels named from the low bits to
 
     <field name="Output image format" size="6" start="16" type="Output Image Format"/>
 
-    <field name="Decimate mode" size="2" start="14" type="uint"/>
+    <field name="Decimate mode" size="2" start="14" type="Decimate Mode"/>
 
     <field name="Internal Type" size="4" start="10" type="uint" prefix="Internal Type">
       <value name="8i" value="0"/>