Home | History | Annotate | Download | only in genxml
      1 <?xml version="1.0" ?>
      2 <genxml name="HSW" gen="7.5">
      3   <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
      4     <value name="POINTLIST" value="1"/>
      5     <value name="LINELIST" value="2"/>
      6     <value name="LINESTRIP" value="3"/>
      7     <value name="TRILIST" value="4"/>
      8     <value name="TRISTRIP" value="5"/>
      9     <value name="TRIFAN" value="6"/>
     10     <value name="QUADLIST" value="7"/>
     11     <value name="QUADSTRIP" value="8"/>
     12     <value name="LINELIST_ADJ" value="9"/>
     13     <value name="LINESTRIP_ADJ" value="10"/>
     14     <value name="TRILIST_ADJ" value="11"/>
     15     <value name="TRISTRIP_ADJ" value="12"/>
     16     <value name="TRISTRIP_REVERSE" value="13"/>
     17     <value name="POLYGON" value="14"/>
     18     <value name="RECTLIST" value="15"/>
     19     <value name="LINELOOP" value="16"/>
     20     <value name="POINTLIST _BF" value="17"/>
     21     <value name="LINESTRIP_CONT" value="18"/>
     22     <value name="LINESTRIP_BF" value="19"/>
     23     <value name="LINESTRIP_CONT_BF" value="20"/>
     24     <value name="TRIFAN_NOSTIPPLE" value="22"/>
     25     <value name="PATCHLIST_1" value="32"/>
     26     <value name="PATCHLIST_2" value="33"/>
     27     <value name="PATCHLIST_3" value="34"/>
     28     <value name="PATCHLIST_4" value="35"/>
     29     <value name="PATCHLIST_5" value="36"/>
     30     <value name="PATCHLIST_6" value="37"/>
     31     <value name="PATCHLIST_7" value="38"/>
     32     <value name="PATCHLIST_8" value="39"/>
     33     <value name="PATCHLIST_9" value="40"/>
     34     <value name="PATCHLIST_10" value="41"/>
     35     <value name="PATCHLIST_11" value="42"/>
     36     <value name="PATCHLIST_12" value="43"/>
     37     <value name="PATCHLIST_13" value="44"/>
     38     <value name="PATCHLIST_14" value="45"/>
     39     <value name="PATCHLIST_15" value="46"/>
     40     <value name="PATCHLIST_16" value="47"/>
     41     <value name="PATCHLIST_17" value="48"/>
     42     <value name="PATCHLIST_18" value="49"/>
     43     <value name="PATCHLIST_19" value="50"/>
     44     <value name="PATCHLIST_20" value="51"/>
     45     <value name="PATCHLIST_21" value="52"/>
     46     <value name="PATCHLIST_22" value="53"/>
     47     <value name="PATCHLIST_23" value="54"/>
     48     <value name="PATCHLIST_24" value="55"/>
     49     <value name="PATCHLIST_25" value="56"/>
     50     <value name="PATCHLIST_26" value="57"/>
     51     <value name="PATCHLIST_27" value="58"/>
     52     <value name="PATCHLIST_28" value="59"/>
     53     <value name="PATCHLIST_29" value="60"/>
     54     <value name="PATCHLIST_30" value="61"/>
     55     <value name="PATCHLIST_31" value="62"/>
     56     <value name="PATCHLIST_32" value="63"/>
     57   </enum>
     58 
     59   <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
     60     <value name="NOSTORE" value="0"/>
     61     <value name="STORE_SRC" value="1"/>
     62     <value name="STORE_0" value="2"/>
     63     <value name="STORE_1_FP" value="3"/>
     64     <value name="STORE_1_INT" value="4"/>
     65     <value name="STORE_VID" value="5"/>
     66     <value name="STORE_IID" value="6"/>
     67     <value name="STORE_PID" value="7"/>
     68   </enum>
     69 
     70   <enum name="3D_Stencil_Operation" prefix="STENCILOP">
     71     <value name="KEEP" value="0"/>
     72     <value name="ZERO" value="1"/>
     73     <value name="REPLACE" value="2"/>
     74     <value name="INCRSAT" value="3"/>
     75     <value name="DECRSAT" value="4"/>
     76     <value name="INCR" value="5"/>
     77     <value name="DECR" value="6"/>
     78     <value name="INVERT" value="7"/>
     79   </enum>
     80 
     81   <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
     82     <value name="ONE" value="1"/>
     83     <value name="SRC_COLOR" value="2"/>
     84     <value name="SRC_ALPHA" value="3"/>
     85     <value name="DST_ALPHA" value="4"/>
     86     <value name="DST_COLOR" value="5"/>
     87     <value name="SRC_ALPHA_SATURATE" value="6"/>
     88     <value name="CONST_COLOR" value="7"/>
     89     <value name="CONST_ALPHA" value="8"/>
     90     <value name="SRC1_COLOR" value="9"/>
     91     <value name="SRC1_ALPHA" value="10"/>
     92     <value name="ZERO" value="17"/>
     93     <value name="INV_SRC_COLOR" value="18"/>
     94     <value name="INV_SRC_ALPHA" value="19"/>
     95     <value name="INV_DST_ALPHA" value="20"/>
     96     <value name="INV_DST_COLOR" value="21"/>
     97     <value name="INV_CONST_COLOR" value="23"/>
     98     <value name="INV_CONST_ALPHA" value="24"/>
     99     <value name="INV_SRC1_COLOR" value="25"/>
    100     <value name="INV_SRC1_ALPHA" value="26"/>
    101   </enum>
    102 
    103   <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
    104     <value name="ADD" value="0"/>
    105     <value name="SUBTRACT" value="1"/>
    106     <value name="REVERSE_SUBTRACT" value="2"/>
    107     <value name="MIN" value="3"/>
    108     <value name="MAX" value="4"/>
    109   </enum>
    110 
    111   <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
    112     <value name="ALWAYS" value="0"/>
    113     <value name="NEVER" value="1"/>
    114     <value name="LESS" value="2"/>
    115     <value name="EQUAL" value="3"/>
    116     <value name="LEQUAL" value="4"/>
    117     <value name="GREATER" value="5"/>
    118     <value name="NOTEQUAL" value="6"/>
    119     <value name="GEQUAL" value="7"/>
    120   </enum>
    121 
    122   <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
    123     <value name="CLEAR" value="0"/>
    124     <value name="NOR" value="1"/>
    125     <value name="AND_INVERTED" value="2"/>
    126     <value name="COPY_INVERTED" value="3"/>
    127     <value name="AND_REVERSE" value="4"/>
    128     <value name="INVERT" value="5"/>
    129     <value name="XOR" value="6"/>
    130     <value name="NAND" value="7"/>
    131     <value name="AND" value="8"/>
    132     <value name="EQUIV" value="9"/>
    133     <value name="NOOP" value="10"/>
    134     <value name="OR_INVERTED" value="11"/>
    135     <value name="COPY" value="12"/>
    136     <value name="OR_REVERSE" value="13"/>
    137     <value name="OR" value="14"/>
    138     <value name="SET" value="15"/>
    139   </enum>
    140 
    141   <enum name="SURFACE_FORMAT" prefix="SF">
    142     <value name="R32G32B32A32_FLOAT" value="0"/>
    143     <value name="R32G32B32A32_SINT" value="1"/>
    144     <value name="R32G32B32A32_UINT" value="2"/>
    145     <value name="R32G32B32A32_UNORM" value="3"/>
    146     <value name="R32G32B32A32_SNORM" value="4"/>
    147     <value name="R64G64_FLOAT" value="5"/>
    148     <value name="R32G32B32X32_FLOAT" value="6"/>
    149     <value name="R32G32B32A32_SSCALED" value="7"/>
    150     <value name="R32G32B32A32_USCALED" value="8"/>
    151     <value name="R32G32B32A32_SFIXED" value="32"/>
    152     <value name="R64G64_PASSTHRU" value="33"/>
    153     <value name="R32G32B32_FLOAT" value="64"/>
    154     <value name="R32G32B32_SINT" value="65"/>
    155     <value name="R32G32B32_UINT" value="66"/>
    156     <value name="R32G32B32_UNORM" value="67"/>
    157     <value name="R32G32B32_SNORM" value="68"/>
    158     <value name="R32G32B32_SSCALED" value="69"/>
    159     <value name="R32G32B32_USCALED" value="70"/>
    160     <value name="R32G32B32_SFIXED" value="80"/>
    161     <value name="R16G16B16A16_UNORM" value="128"/>
    162     <value name="R16G16B16A16_SNORM" value="129"/>
    163     <value name="R16G16B16A16_SINT" value="130"/>
    164     <value name="R16G16B16A16_UINT" value="131"/>
    165     <value name="R16G16B16A16_FLOAT" value="132"/>
    166     <value name="R32G32_FLOAT" value="133"/>
    167     <value name="R32G32_SINT" value="134"/>
    168     <value name="R32G32_UINT" value="135"/>
    169     <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
    170     <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
    171     <value name="L32A32_FLOAT" value="138"/>
    172     <value name="R32G32_UNORM" value="139"/>
    173     <value name="R32G32_SNORM" value="140"/>
    174     <value name="R64_FLOAT" value="141"/>
    175     <value name="R16G16B16X16_UNORM" value="142"/>
    176     <value name="R16G16B16X16_FLOAT" value="143"/>
    177     <value name="A32X32_FLOAT" value="144"/>
    178     <value name="L32X32_FLOAT" value="145"/>
    179     <value name="I32X32_FLOAT" value="146"/>
    180     <value name="R16G16B16A16_SSCALED" value="147"/>
    181     <value name="R16G16B16A16_USCALED" value="148"/>
    182     <value name="R32G32_SSCALED" value="149"/>
    183     <value name="R32G32_USCALED" value="150"/>
    184     <value name="R32G32_SFIXED" value="160"/>
    185     <value name="R64_PASSTHRU" value="161"/>
    186     <value name="B8G8R8A8_UNORM" value="192"/>
    187     <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
    188     <value name="R10G10B10A2_UNORM" value="194"/>
    189     <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
    190     <value name="R10G10B10A2_UINT" value="196"/>
    191     <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
    192     <value name="R8G8B8A8_UNORM" value="199"/>
    193     <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
    194     <value name="R8G8B8A8_SNORM" value="201"/>
    195     <value name="R8G8B8A8_SINT" value="202"/>
    196     <value name="R8G8B8A8_UINT" value="203"/>
    197     <value name="R16G16_UNORM" value="204"/>
    198     <value name="R16G16_SNORM" value="205"/>
    199     <value name="R16G16_SINT" value="206"/>
    200     <value name="R16G16_UINT" value="207"/>
    201     <value name="R16G16_FLOAT" value="208"/>
    202     <value name="B10G10R10A2_UNORM" value="209"/>
    203     <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
    204     <value name="R11G11B10_FLOAT" value="211"/>
    205     <value name="R32_SINT" value="214"/>
    206     <value name="R32_UINT" value="215"/>
    207     <value name="R32_FLOAT" value="216"/>
    208     <value name="R24_UNORM_X8_TYPELESS" value="217"/>
    209     <value name="X24_TYPELESS_G8_UINT" value="218"/>
    210     <value name="L32_UNORM" value="221"/>
    211     <value name="A32_UNORM" value="222"/>
    212     <value name="L16A16_UNORM" value="223"/>
    213     <value name="I24X8_UNORM" value="224"/>
    214     <value name="L24X8_UNORM" value="225"/>
    215     <value name="A24X8_UNORM" value="226"/>
    216     <value name="I32_FLOAT" value="227"/>
    217     <value name="L32_FLOAT" value="228"/>
    218     <value name="A32_FLOAT" value="229"/>
    219     <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
    220     <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
    221     <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
    222     <value name="B8G8R8X8_UNORM" value="233"/>
    223     <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
    224     <value name="R8G8B8X8_UNORM" value="235"/>
    225     <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
    226     <value name="R9G9B9E5_SHAREDEXP" value="237"/>
    227     <value name="B10G10R10X2_UNORM" value="238"/>
    228     <value name="L16A16_FLOAT" value="240"/>
    229     <value name="R32_UNORM" value="241"/>
    230     <value name="R32_SNORM" value="242"/>
    231     <value name="R10G10B10X2_USCALED" value="243"/>
    232     <value name="R8G8B8A8_SSCALED" value="244"/>
    233     <value name="R8G8B8A8_USCALED" value="245"/>
    234     <value name="R16G16_SSCALED" value="246"/>
    235     <value name="R16G16_USCALED" value="247"/>
    236     <value name="R32_SSCALED" value="248"/>
    237     <value name="R32_USCALED" value="249"/>
    238     <value name="B5G6R5_UNORM" value="256"/>
    239     <value name="B5G6R5_UNORM_SRGB" value="257"/>
    240     <value name="B5G5R5A1_UNORM" value="258"/>
    241     <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
    242     <value name="B4G4R4A4_UNORM" value="260"/>
    243     <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
    244     <value name="R8G8_UNORM" value="262"/>
    245     <value name="R8G8_SNORM" value="263"/>
    246     <value name="R8G8_SINT" value="264"/>
    247     <value name="R8G8_UINT" value="265"/>
    248     <value name="R16_UNORM" value="266"/>
    249     <value name="R16_SNORM" value="267"/>
    250     <value name="R16_SINT" value="268"/>
    251     <value name="R16_UINT" value="269"/>
    252     <value name="R16_FLOAT" value="270"/>
    253     <value name="A8P8_UNORM_PALETTE0" value="271"/>
    254     <value name="A8P8_UNORM_PALETTE1" value="272"/>
    255     <value name="I16_UNORM" value="273"/>
    256     <value name="L16_UNORM" value="274"/>
    257     <value name="A16_UNORM" value="275"/>
    258     <value name="L8A8_UNORM" value="276"/>
    259     <value name="I16_FLOAT" value="277"/>
    260     <value name="L16_FLOAT" value="278"/>
    261     <value name="A16_FLOAT" value="279"/>
    262     <value name="L8A8_UNORM_SRGB" value="280"/>
    263     <value name="R5G5_SNORM_B6_UNORM" value="281"/>
    264     <value name="B5G5R5X1_UNORM" value="282"/>
    265     <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
    266     <value name="R8G8_SSCALED" value="284"/>
    267     <value name="R8G8_USCALED" value="285"/>
    268     <value name="R16_SSCALED" value="286"/>
    269     <value name="R16_USCALED" value="287"/>
    270     <value name="P8A8_UNORM_PALETTE0" value="290"/>
    271     <value name="P8A8_UNORM_PALETTE1" value="291"/>
    272     <value name="A1B5G5R5_UNORM" value="292"/>
    273     <value name="A4B4G4R4_UNORM" value="293"/>
    274     <value name="L8A8_UINT" value="294"/>
    275     <value name="L8A8_SINT" value="295"/>
    276     <value name="R8_UNORM" value="320"/>
    277     <value name="R8_SNORM" value="321"/>
    278     <value name="R8_SINT" value="322"/>
    279     <value name="R8_UINT" value="323"/>
    280     <value name="A8_UNORM" value="324"/>
    281     <value name="I8_UNORM" value="325"/>
    282     <value name="L8_UNORM" value="326"/>
    283     <value name="P4A4_UNORM_PALETTE0" value="327"/>
    284     <value name="A4P4_UNORM_PALETTE0" value="328"/>
    285     <value name="R8_SSCALED" value="329"/>
    286     <value name="R8_USCALED" value="330"/>
    287     <value name="P8_UNORM_PALETTE0" value="331"/>
    288     <value name="L8_UNORM_SRGB" value="332"/>
    289     <value name="P8_UNORM_PALETTE1" value="333"/>
    290     <value name="P4A4_UNORM_PALETTE1" value="334"/>
    291     <value name="A4P4_UNORM_PALETTE1" value="335"/>
    292     <value name="Y8_UNORM" value="336"/>
    293     <value name="L8_UINT" value="338"/>
    294     <value name="L8_SINT" value="339"/>
    295     <value name="I8_UINT" value="340"/>
    296     <value name="I8_SINT" value="341"/>
    297     <value name="DXT1_RGB_SRGB" value="384"/>
    298     <value name="R1_UNORM" value="385"/>
    299     <value name="YCRCB_NORMAL" value="386"/>
    300     <value name="YCRCB_SWAPUVY" value="387"/>
    301     <value name="P2_UNORM_PALETTE0" value="388"/>
    302     <value name="P2_UNORM_PALETTE1" value="389"/>
    303     <value name="BC1_UNORM" value="390"/>
    304     <value name="BC2_UNORM" value="391"/>
    305     <value name="BC3_UNORM" value="392"/>
    306     <value name="BC4_UNORM" value="393"/>
    307     <value name="BC5_UNORM" value="394"/>
    308     <value name="BC1_UNORM_SRGB" value="395"/>
    309     <value name="BC2_UNORM_SRGB" value="396"/>
    310     <value name="BC3_UNORM_SRGB" value="397"/>
    311     <value name="MONO8" value="398"/>
    312     <value name="YCRCB_SWAPUV" value="399"/>
    313     <value name="YCRCB_SWAPY" value="400"/>
    314     <value name="DXT1_RGB" value="401"/>
    315     <value name="FXT1" value="402"/>
    316     <value name="R8G8B8_UNORM" value="403"/>
    317     <value name="R8G8B8_SNORM" value="404"/>
    318     <value name="R8G8B8_SSCALED" value="405"/>
    319     <value name="R8G8B8_USCALED" value="406"/>
    320     <value name="R64G64B64A64_FLOAT" value="407"/>
    321     <value name="R64G64B64_FLOAT" value="408"/>
    322     <value name="BC4_SNORM" value="409"/>
    323     <value name="BC5_SNORM" value="410"/>
    324     <value name="R16G16B16_FLOAT" value="411"/>
    325     <value name="R16G16B16_UNORM" value="412"/>
    326     <value name="R16G16B16_SNORM" value="413"/>
    327     <value name="R16G16B16_SSCALED" value="414"/>
    328     <value name="R16G16B16_USCALED" value="415"/>
    329     <value name="BC6H_SF16" value="417"/>
    330     <value name="BC7_UNORM" value="418"/>
    331     <value name="BC7_UNORM_SRGB" value="419"/>
    332     <value name="BC6H_UF16" value="420"/>
    333     <value name="PLANAR_420_8" value="421"/>
    334     <value name="R8G8B8_UNORM_SRGB" value="424"/>
    335     <value name="ETC1_RGB8" value="425"/>
    336     <value name="ETC2_RGB8" value="426"/>
    337     <value name="EAC_R11" value="427"/>
    338     <value name="EAC_RG11" value="428"/>
    339     <value name="EAC_SIGNED_R11" value="429"/>
    340     <value name="EAC_SIGNED_RG11" value="430"/>
    341     <value name="ETC2_SRGB8" value="431"/>
    342     <value name="R16G16B16_UINT" value="432"/>
    343     <value name="R16G16B16_SINT" value="433"/>
    344     <value name="R32_SFIXED" value="434"/>
    345     <value name="R10G10B10A2_SNORM" value="435"/>
    346     <value name="R10G10B10A2_USCALED" value="436"/>
    347     <value name="R10G10B10A2_SSCALED" value="437"/>
    348     <value name="R10G10B10A2_SINT" value="438"/>
    349     <value name="B10G10R10A2_SNORM" value="439"/>
    350     <value name="B10G10R10A2_USCALED" value="440"/>
    351     <value name="B10G10R10A2_SSCALED" value="441"/>
    352     <value name="B10G10R10A2_UINT" value="442"/>
    353     <value name="B10G10R10A2_SINT" value="443"/>
    354     <value name="R64G64B64A64_PASSTHRU" value="444"/>
    355     <value name="R64G64B64_PASSTHRU" value="445"/>
    356     <value name="ETC2_RGB8_PTA" value="448"/>
    357     <value name="ETC2_SRGB8_PTA" value="449"/>
    358     <value name="ETC2_EAC_RGBA8" value="450"/>
    359     <value name="ETC2_EAC_SRGB8_A8" value="451"/>
    360     <value name="R8G8B8_UINT" value="456"/>
    361     <value name="R8G8B8_SINT" value="457"/>
    362     <value name="RAW" value="511"/>
    363   </enum>
    364 
    365   <enum name="Shader Channel Select" prefix="SCS">
    366     <value name="ZERO" value="0"/>
    367     <value name="ONE" value="1"/>
    368     <value name="RED" value="4"/>
    369     <value name="GREEN" value="5"/>
    370     <value name="BLUE" value="6"/>
    371     <value name="ALPHA" value="7"/>
    372   </enum>
    373 
    374   <enum name="Texture Coordinate Mode" prefix="TCM">
    375     <value name="WRAP" value="0"/>
    376     <value name="MIRROR" value="1"/>
    377     <value name="CLAMP" value="2"/>
    378     <value name="CUBE" value="3"/>
    379     <value name="CLAMP_BORDER" value="4"/>
    380     <value name="MIRROR_ONCE" value="5"/>
    381   </enum>
    382 
    383   <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
    384     <field name="LLC/eLLC Cacheability Control (LLCCC)" start="1" end="2" type="uint"/>
    385     <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
    386   </struct>
    387 
    388   <struct name="3DSTATE_CONSTANT_BODY" length="6">
    389     <group count="4" start="0" size="16">
    390       <field name="Read Length" start="0" end="15" type="uint"/>
    391     </group>
    392     <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
    393     <group count="4" start="64" size="32">
    394       <field name="Buffer" start="5" end="31" type="address"/>
    395     </group>
    396   </struct>
    397 
    398   <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
    399     <field name="Binding Table Index" start="16" end="23" type="uint"/>
    400     <field name="Surface State Pointer" start="0" end="15" type="offset"/>
    401   </struct>
    402 
    403   <struct name="GATHER_CONSTANT_ENTRY" length="1">
    404     <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
    405     <field name="Channel Mask" start="4" end="7" type="uint"/>
    406     <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
    407   </struct>
    408 
    409   <struct name="VERTEX_BUFFER_STATE" length="4">
    410     <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
    411     <field name="Buffer Access Type" start="20" end="20" type="uint">
    412       <value name="VERTEXDATA" value="0"/>
    413       <value name="INSTANCEDATA" value="1"/>
    414     </field>
    415     <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
    416     <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
    417     <field name="Address Modify Enable" start="14" end="14" type="bool"/>
    418     <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
    419     <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
    420     <field name="Buffer Pitch" start="0" end="11" type="uint"/>
    421     <field name="Buffer Starting Address" start="32" end="63" type="address"/>
    422     <field name="End Address" start="64" end="95" type="address"/>
    423     <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
    424   </struct>
    425 
    426   <struct name="VERTEX_ELEMENT_STATE" length="2">
    427     <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
    428     <field name="Valid" start="25" end="25" type="bool"/>
    429     <field name="Source Element Format" start="16" end="24" type="SURFACE_FORMAT"/>
    430     <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
    431     <field name="Source Element Offset" start="0" end="11" type="uint"/>
    432     <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
    433     <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
    434     <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
    435     <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
    436   </struct>
    437 
    438   <struct name="SO_DECL" length="1">
    439     <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
    440     <field name="Hole Flag" start="11" end="11" type="uint"/>
    441     <field name="Register Index" start="4" end="9" type="uint"/>
    442     <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
    443   </struct>
    444 
    445   <struct name="SO_DECL_ENTRY" length="2">
    446     <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
    447     <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
    448     <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
    449     <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
    450   </struct>
    451 
    452   <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
    453     <field name="Component Override W" start="15" end="15" type="bool"/>
    454     <field name="Component Override Z" start="14" end="14" type="bool"/>
    455     <field name="Component Override Y" start="13" end="13" type="bool"/>
    456     <field name="Component Override X" start="12" end="12" type="bool"/>
    457     <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
    458     <field name="Constant Source" start="9" end="10" type="uint">
    459       <value name="CONST_0000" value="0"/>
    460       <value name="CONST_0001_FLOAT" value="1"/>
    461       <value name="CONST_1111_FLOAT" value="2"/>
    462       <value name="PRIM_ID" value="3"/>
    463     </field>
    464     <field name="Swizzle Select" start="6" end="7" type="uint">
    465       <value name="INPUTATTR" value="0"/>
    466       <value name="INPUTATTR_FACING" value="1"/>
    467       <value name="INPUTATTR_W" value="2"/>
    468       <value name="INPUTATTR_FACING_W" value="3"/>
    469     </field>
    470     <field name="Source Attribute" start="0" end="4" type="uint"/>
    471   </struct>
    472 
    473   <struct name="SCISSOR_RECT" length="2">
    474     <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
    475     <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
    476     <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
    477     <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
    478   </struct>
    479 
    480   <struct name="SF_CLIP_VIEWPORT" length="16">
    481     <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
    482     <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
    483     <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
    484     <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
    485     <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
    486     <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
    487     <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
    488     <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
    489     <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
    490     <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
    491   </struct>
    492 
    493   <struct name="BLEND_STATE_ENTRY" length="2">
    494     <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
    495     <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
    496     <field name="Alpha Blend Function" start="26" end="28" type="3D_Color_Buffer_Blend_Function"/>
    497     <field name="Source Alpha Blend Factor" start="20" end="24" type="3D_Color_Buffer_Blend_Factor"/>
    498     <field name="Destination Alpha Blend Factor" start="15" end="19" type="3D_Color_Buffer_Blend_Factor"/>
    499     <field name="Color Blend Function" start="11" end="13" type="3D_Color_Buffer_Blend_Function"/>
    500     <field name="Source Blend Factor" start="5" end="9" type="3D_Color_Buffer_Blend_Factor"/>
    501     <field name="Destination Blend Factor" start="0" end="4" type="3D_Color_Buffer_Blend_Factor"/>
    502     <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
    503     <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
    504     <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
    505     <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
    506     <field name="Write Disable Red" start="58" end="58" type="bool"/>
    507     <field name="Write Disable Green" start="57" end="57" type="bool"/>
    508     <field name="Write Disable Blue" start="56" end="56" type="bool"/>
    509     <field name="Logic Op Enable" start="54" end="54" type="bool"/>
    510     <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
    511     <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
    512     <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
    513     <field name="Color Dither Enable" start="44" end="44" type="bool"/>
    514     <field name="X Dither Offset" start="42" end="43" type="uint"/>
    515     <field name="Y Dither Offset" start="40" end="41" type="uint"/>
    516     <field name="Color Clamp Range" start="34" end="35" type="uint">
    517       <value name="COLORCLAMP_UNORM" value="0"/>
    518       <value name="COLORCLAMP_SNORM" value="1"/>
    519       <value name="COLORCLAMP_RTFORMAT" value="2"/>
    520     </field>
    521     <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
    522     <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
    523   </struct>
    524 
    525   <struct name="BLEND_STATE" length="0">
    526     <group count="0" start="0" size="64">
    527       <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
    528     </group>
    529   </struct>
    530 
    531   <struct name="CC_VIEWPORT" length="2">
    532     <field name="Minimum Depth" start="0" end="31" type="float"/>
    533     <field name="Maximum Depth" start="32" end="63" type="float"/>
    534   </struct>
    535 
    536   <struct name="COLOR_CALC_STATE" length="6">
    537     <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
    538     <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
    539     <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
    540     <field name="Alpha Test Format" start="0" end="0" type="uint">
    541       <value name="ALPHATEST_UNORM8" value="0"/>
    542       <value name="ALPHATEST_FLOAT32" value="1"/>
    543     </field>
    544     <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
    545     <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
    546     <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
    547     <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
    548     <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
    549     <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
    550   </struct>
    551 
    552   <struct name="DEPTH_STENCIL_STATE" length="3">
    553     <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
    554     <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
    555     <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
    556     <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
    557     <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
    558     <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
    559     <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
    560     <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
    561     <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
    562     <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
    563     <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
    564     <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
    565     <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
    566     <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
    567     <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
    568     <field name="Depth Test Enable" start="95" end="95" type="bool"/>
    569     <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/>
    570     <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
    571   </struct>
    572 
    573   <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
    574     <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
    575     <field name="Single Program Flow" start="50" end="50" type="bool"/>
    576     <field name="Thread Priority" start="49" end="49" type="uint">
    577       <value name="Normal Priority" value="0"/>
    578       <value name="High Priority" value="1"/>
    579     </field>
    580     <field name="Floating Point Mode" start="48" end="48" type="uint">
    581       <value name="IEEE-754" value="0"/>
    582       <value name="Alternate" value="1"/>
    583     </field>
    584     <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
    585     <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
    586     <field name="Software Exception Enable" start="39" end="39" type="bool"/>
    587     <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
    588     <field name="Sampler Count" start="66" end="68" type="uint">
    589       <value name="No samplers used" value="0"/>
    590       <value name="Between 1 and 4 samplers used" value="1"/>
    591       <value name="Between 5 and 8 samplers used" value="2"/>
    592       <value name="Between 9 and 12 samplers used" value="3"/>
    593       <value name="Between 13 and 16 samplers used" value="4"/>
    594     </field>
    595     <field name="Binding Table Pointer" start="101" end="111" type="offset"/>
    596     <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
    597     <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
    598     <field name="Rounding Mode" start="182" end="183" type="uint">
    599       <value name="RTNE" value="0"/>
    600       <value name="RU" value="1"/>
    601       <value name="RD" value="2"/>
    602       <value name="RTZ" value="3"/>
    603     </field>
    604     <field name="Barrier Enable" start="181" end="181" type="bool"/>
    605     <field name="Shared Local Memory Size" start="176" end="180" type="uint"/>
    606     <field name="Number of Threads in GPGPU Thread Group" start="160" end="167" type="uint"/>
    607     <field name="Cross-Thread Constant Data Read Length" start="192" end="199" type="uint"/>
    608   </struct>
    609 
    610   <struct name="PALETTE_ENTRY" length="1">
    611     <field name="Alpha" start="24" end="31" type="uint"/>
    612     <field name="Red" start="16" end="23" type="uint"/>
    613     <field name="Green" start="8" end="15" type="uint"/>
    614     <field name="Blue" start="0" end="7" type="uint"/>
    615   </struct>
    616 
    617   <struct name="BINDING_TABLE_STATE" length="1">
    618     <field name="Surface State Pointer" start="5" end="31" type="offset"/>
    619   </struct>
    620 
    621   <struct name="RENDER_SURFACE_STATE" length="8">
    622     <field name="Surface Type" start="29" end="31" type="uint">
    623       <value name="SURFTYPE_1D" value="0"/>
    624       <value name="SURFTYPE_2D" value="1"/>
    625       <value name="SURFTYPE_3D" value="2"/>
    626       <value name="SURFTYPE_CUBE" value="3"/>
    627       <value name="SURFTYPE_BUFFER" value="4"/>
    628       <value name="SURFTYPE_STRBUF" value="5"/>
    629       <value name="SURFTYPE_NULL" value="7"/>
    630     </field>
    631     <field name="Surface Array" start="28" end="28" type="bool"/>
    632     <field name="Surface Format" start="18" end="26" type="SURFACE_FORMAT"/>
    633     <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
    634       <value name="VALIGN_2" value="0"/>
    635       <value name="VALIGN_4" value="1"/>
    636     </field>
    637     <field name="Surface Horizontal Alignment" start="15" end="15" type="uint">
    638       <value name="HALIGN_4" value="0"/>
    639       <value name="HALIGN_8" value="1"/>
    640     </field>
    641     <field name="Tiled Surface" start="14" end="14" type="bool"/>
    642     <field name="Tile Walk" start="13" end="13" type="uint">
    643       <value name="TILEWALK_XMAJOR" value="0"/>
    644       <value name="TILEWALK_YMAJOR" value="1"/>
    645     </field>
    646     <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
    647     <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
    648     <field name="Surface Array Spacing" start="10" end="10" type="uint">
    649       <value name="ARYSPC_FULL" value="0"/>
    650       <value name="ARYSPC_LOD0" value="1"/>
    651     </field>
    652     <field name="Render Cache Read Write Mode" start="8" end="8" type="uint"/>
    653     <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
    654       <value name="NORMAL_MODE" value="0"/>
    655       <value name="PROGRESSIVE_FRAME" value="2"/>
    656       <value name="INTERLACED_FRAME" value="3"/>
    657     </field>
    658     <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
    659     <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
    660     <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
    661     <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
    662     <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
    663     <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
    664     <field name="Surface Base Address" start="32" end="63" type="address"/>
    665     <field name="Height" start="80" end="93" type="uint"/>
    666     <field name="Width" start="64" end="77" type="uint"/>
    667     <field name="Depth" start="117" end="127" type="uint"/>
    668     <field name="Integer Surface Format" start="114" end="116" type="uint"/>
    669     <field name="Surface Pitch" start="96" end="113" type="uint"/>
    670     <field name="Render Target Rotation" start="157" end="158" type="uint">
    671       <value name="RTROTATE_0DEG" value="0"/>
    672       <value name="RTROTATE_90DEG" value="1"/>
    673       <value name="RTROTATE_270DEG" value="3"/>
    674     </field>
    675     <field name="Minimum Array Element" start="146" end="156" type="uint"/>
    676     <field name="Render Target View Extent" start="135" end="145" type="uint"/>
    677     <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
    678       <value name="MSFMT_MSS" value="0"/>
    679       <value name="MSFMT_DEPTH_STENCIL" value="1"/>
    680     </field>
    681     <field name="Number of Multisamples" start="131" end="133" type="uint">
    682       <value name="MULTISAMPLECOUNT_1" value="0"/>
    683       <value name="MULTISAMPLECOUNT_4" value="2"/>
    684       <value name="MULTISAMPLECOUNT_8" value="3"/>
    685     </field>
    686     <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
    687     <field name="Strbuf Minimum Array Element" start="128" end="154" type="uint"/>
    688     <field name="X Offset" start="185" end="191" type="uint"/>
    689     <field name="Y Offset" start="180" end="183" type="uint"/>
    690     <field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
    691     <field name="MOCS" start="176" end="179" type="uint"/>
    692     <field name="Surface Min LOD" start="164" end="167" type="uint"/>
    693     <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
    694     <field name="Append Counter Address" start="198" end="223" type="address"/>
    695     <field name="Append Counter Enable" start="193" end="193" type="bool"/>
    696     <field name="Auxiliary Surface Base Address" start="204" end="223" type="address"/>
    697     <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
    698     <field name="MCS Enable" start="192" end="192" type="bool"/>
    699     <field name="Reserved: MBZ" start="222" end="223" type="uint"/>
    700     <field name="X Offset for UV Plane" start="208" end="221" type="uint"/>
    701     <field name="Y Offset for UV Plane" start="192" end="205" type="uint"/>
    702     <field name="Red Clear Color" start="255" end="255" type="uint" />
    703     <field name="Green Clear Color" start="254" end="254" type="uint" />
    704     <field name="Blue Clear Color" start="253" end="253" type="uint" />
    705     <field name="Alpha Clear Color" start="252" end="252" type="uint" />
    706     <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
    707     <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
    708     <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
    709     <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
    710     <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
    711   </struct>
    712 
    713   <struct name="SAMPLER_BORDER_COLOR_STATE" length="20">
    714     <field name="Border Color Float Red" start="0" end="31" type="float"/>
    715     <field name="Border Color Float Green" start="32" end="63" type="float"/>
    716     <field name="Border Color Float Blue" start="64" end="95" type="float"/>
    717     <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
    718 
    719     <field name="Border Color 8bit Red" start="512" end="519" type="uint"/>
    720     <field name="Border Color 8bit Green" start="520" end="527" type="uint"/>
    721     <field name="Border Color 8bit Blue" start="528" end="535" type="uint"/>
    722     <field name="Border Color 8bit Alpha" start="536" end="543" type="uint"/>
    723 
    724     <field name="Border Color 16bit Red" start="512" end="527" type="uint"/>
    725     <field name="Border Color 16bit Green" start="528" end="543" type="uint"/>
    726     <field name="Border Color 16bit Blue" start="576" end="591" type="uint"/>
    727     <field name="Border Color 16bit Alpha" start="592" end="607" type="uint"/>
    728 
    729     <field name="Border Color 32bit Red" start="512" end="543" type="uint"/>
    730     <field name="Border Color 32bit Green" start="544" end="575" type="uint"/>
    731     <field name="Border Color 32bit Blue" start="576" end="607" type="uint"/>
    732     <field name="Border Color 32bit Alpha" start="608" end="639" type="uint"/>
    733   </struct>
    734 
    735   <struct name="SAMPLER_STATE" length="4">
    736     <field name="Sampler Disable" start="31" end="31" type="bool"/>
    737     <field name="Texture Border Color Mode" start="29" end="29" type="uint">
    738       <value name="DX10/OGL" value="0"/>
    739       <value name="DX9" value="1"/>
    740     </field>
    741     <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
    742       <value name="OGL" value="1"/>
    743     </field>
    744     <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
    745     <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
    746       <value name="NONE" value="0"/>
    747       <value name="NEAREST" value="1"/>
    748       <value name="LINEAR" value="3"/>
    749     </field>
    750     <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
    751       <value name="NEAREST" value="0"/>
    752       <value name="LINEAR" value="1"/>
    753       <value name="ANISOTROPIC" value="2"/>
    754       <value name="MONO" value="6"/>
    755     </field>
    756     <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
    757       <value name="NEAREST" value="0"/>
    758       <value name="LINEAR" value="1"/>
    759       <value name="ANISOTROPIC" value="2"/>
    760       <value name="MONO" value="6"/>
    761     </field>
    762     <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
    763     <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
    764       <value name="LEGACY" value="0"/>
    765       <value name="EWA Approximation" value="1"/>
    766     </field>
    767     <field name="Min LOD" start="52" end="63" type="u4.8"/>
    768     <field name="Max LOD" start="40" end="51" type="u4.8"/>
    769     <field name="Shadow Function" start="33" end="35" type="uint">
    770       <value name="PREFILTEROP ALWAYS" value="0"/>
    771       <value name="PREFILTEROP NEVER" value="1"/>
    772       <value name="PREFILTEROP LESS" value="2"/>
    773       <value name="PREFILTEROP EQUAL" value="3"/>
    774       <value name="PREFILTEROP LEQUAL" value="4"/>
    775       <value name="PREFILTEROP GREATER" value="5"/>
    776       <value name="PREFILTEROP NOTEQUAL" value="6"/>
    777       <value name="PREFILTEROP GEQUAL" value="7"/>
    778     </field>
    779     <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
    780       <value name="PROGRAMMED" value="0"/>
    781       <value name="OVERRIDE" value="1"/>
    782     </field>
    783     <field name="Border Color Pointer" start="69" end="95" type="offset"/>
    784     <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
    785     <field name="ChromaKey Index" start="119" end="120" type="uint"/>
    786     <field name="ChromaKey Mode" start="118" end="118" type="uint">
    787       <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
    788       <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
    789     </field>
    790     <field name="Maximum Anisotropy" start="115" end="117" type="uint">
    791       <value name="RATIO 2:1" value="0"/>
    792       <value name="RATIO 4:1" value="1"/>
    793       <value name="RATIO 6:1" value="2"/>
    794       <value name="RATIO 8:1" value="3"/>
    795       <value name="RATIO 10:1" value="4"/>
    796       <value name="RATIO 12:1" value="5"/>
    797       <value name="RATIO 14:1" value="6"/>
    798       <value name="RATIO 16:1" value="7"/>
    799     </field>
    800     <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
    801     <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
    802     <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
    803     <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
    804     <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
    805     <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
    806     <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
    807       <value name="FULL" value="0"/>
    808       <value name="TRIQUAL_HIGH/MAG_CLAMP_MIPFILTER" value="1"/>
    809       <value name="MED" value="2"/>
    810       <value name="LOW" value="3"/>
    811     </field>
    812     <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
    813     <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
    814     <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
    815     <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
    816   </struct>
    817 
    818   <struct name="MI_MATH_ALU_INSTRUCTION" length="1">
    819     <field name="ALU Opcode" start="20" end="31" type="uint" prefix="MI_ALU">
    820       <value name="NOOP" value="0x000"/>
    821       <value name="LOAD" value="0x080"/>
    822       <value name="LOADINV" value="0x480"/>
    823       <value name="LOAD0" value="0x081"/>
    824       <value name="LOAD1" value="0x481"/>
    825       <value name="ADD" value="0x100"/>
    826       <value name="SUB" value="0x101"/>
    827       <value name="AND" value="0x102"/>
    828       <value name="OR" value="0x103"/>
    829       <value name="XOR" value="0x104"/>
    830       <value name="STORE" value="0x180"/>
    831       <value name="STOREINV" value="0x580"/>
    832     </field>
    833     <field name="Operand 1" start="10" end="19" type="uint" prefix="MI_ALU">
    834       <value name="REG0" value="0x00"/>
    835       <value name="REG1" value="0x01"/>
    836       <value name="REG2" value="0x02"/>
    837       <value name="REG3" value="0x03"/>
    838       <value name="REG4" value="0x04"/>
    839       <value name="REG5" value="0x05"/>
    840       <value name="REG6" value="0x06"/>
    841       <value name="REG7" value="0x07"/>
    842       <value name="REG8" value="0x08"/>
    843       <value name="REG9" value="0x09"/>
    844       <value name="REG10" value="0x0a"/>
    845       <value name="REG11" value="0x0b"/>
    846       <value name="REG12" value="0x0c"/>
    847       <value name="REG13" value="0x0d"/>
    848       <value name="REG14" value="0x0e"/>
    849       <value name="REG15" value="0x0f"/>
    850       <value name="SRCA" value="0x20"/>
    851       <value name="SRCB" value="0x21"/>
    852       <value name="ACCU" value="0x31"/>
    853       <value name="ZF" value="0x32"/>
    854       <value name="CF" value="0x33"/>
    855     </field>
    856     <field name="Operand 2" start="0" end="9" type="uint" prefix="MI_ALU">
    857       <value name="REG0" value="0x00"/>
    858       <value name="REG1" value="0x01"/>
    859       <value name="REG2" value="0x02"/>
    860       <value name="REG3" value="0x03"/>
    861       <value name="REG4" value="0x04"/>
    862       <value name="REG5" value="0x05"/>
    863       <value name="REG6" value="0x06"/>
    864       <value name="REG7" value="0x07"/>
    865       <value name="REG8" value="0x08"/>
    866       <value name="REG9" value="0x09"/>
    867       <value name="REG10" value="0x0a"/>
    868       <value name="REG11" value="0x0b"/>
    869       <value name="REG12" value="0x0c"/>
    870       <value name="REG13" value="0x0d"/>
    871       <value name="REG14" value="0x0e"/>
    872       <value name="REG15" value="0x0f"/>
    873       <value name="SRCA" value="0x20"/>
    874       <value name="SRCB" value="0x21"/>
    875       <value name="ACCU" value="0x31"/>
    876       <value name="ZF" value="0x32"/>
    877       <value name="CF" value="0x33"/>
    878     </field>
    879   </struct>
    880 
    881   <instruction name="3DPRIMITIVE" bias="2" length="7">
    882     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    883     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    884     <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
    885     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
    886     <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
    887     <field name="UAV Coherency Required" start="9" end="9" type="bool"/>
    888     <field name="Predicate Enable" start="8" end="8" type="bool"/>
    889     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    890     <field name="End Offset Enable" start="41" end="41" type="bool"/>
    891     <field name="Vertex Access Type" start="40" end="40" type="uint">
    892       <value name="SEQUENTIAL" value="0"/>
    893       <value name="RANDOM" value="1"/>
    894     </field>
    895     <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
    896     <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
    897     <field name="Start Vertex Location" start="96" end="127" type="uint"/>
    898     <field name="Instance Count" start="128" end="159" type="uint"/>
    899     <field name="Start Instance Location" start="160" end="191" type="uint"/>
    900     <field name="Base Vertex Location" start="192" end="223" type="int"/>
    901   </instruction>
    902 
    903   <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3">
    904     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    905     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    906     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    907     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
    908     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    909     <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
    910     <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
    911     <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
    912     <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
    913   </instruction>
    914 
    915   <instruction name="3DSTATE_BINDING_TABLE_EDIT_DS" bias="2">
    916     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    917     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    918     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    919     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="70"/>
    920     <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    921     <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    922     <field name="Binding Table Edit Target" start="32" end="33" type="uint">
    923       <value name="All Cores" value="3"/>
    924       <value name="Core 1" value="2"/>
    925       <value name="Core 0" value="1"/>
    926     </field>
    927     <group count="0" start="64" size="32">
    928       <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    929     </group>
    930   </instruction>
    931 
    932   <instruction name="3DSTATE_BINDING_TABLE_EDIT_GS" bias="2">
    933     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    934     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    935     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    936     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="68"/>
    937     <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    938     <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    939     <field name="Binding Table Edit Target" start="32" end="33" type="uint">
    940       <value name="All Cores" value="3"/>
    941       <value name="Core 1" value="2"/>
    942       <value name="Core 0" value="1"/>
    943     </field>
    944     <group count="0" start="64" size="32">
    945       <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    946     </group>
    947   </instruction>
    948 
    949   <instruction name="3DSTATE_BINDING_TABLE_EDIT_HS" bias="2">
    950     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    951     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    952     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    953     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="69"/>
    954     <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    955     <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    956     <field name="Binding Table Edit Target" start="32" end="33" type="uint">
    957       <value name="All Cores" value="3"/>
    958       <value name="Core 1" value="2"/>
    959       <value name="Core 0" value="1"/>
    960     </field>
    961     <group count="0" start="64" size="32">
    962       <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    963     </group>
    964   </instruction>
    965 
    966   <instruction name="3DSTATE_BINDING_TABLE_EDIT_PS" bias="2">
    967     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    968     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    969     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    970     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="71"/>
    971     <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    972     <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    973     <field name="Binding Table Edit Target" start="32" end="33" type="uint">
    974       <value name="All Cores" value="3"/>
    975       <value name="Core 1" value="2"/>
    976       <value name="Core 0" value="1"/>
    977     </field>
    978     <group count="0" start="64" size="32">
    979       <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    980     </group>
    981   </instruction>
    982 
    983   <instruction name="3DSTATE_BINDING_TABLE_EDIT_VS" bias="2">
    984     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    985     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    986     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    987     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="67"/>
    988     <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    989     <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    990     <field name="Binding Table Edit Target" start="32" end="33" type="uint">
    991       <value name="All Cores" value="3"/>
    992       <value name="Core 1" value="2"/>
    993       <value name="Core 0" value="1"/>
    994     </field>
    995     <group count="0" start="64" size="32">
    996       <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    997     </group>
    998   </instruction>
    999 
   1000   <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2">
   1001     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1002     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1003     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1004     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
   1005     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1006     <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
   1007   </instruction>
   1008 
   1009   <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2">
   1010     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1011     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1012     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1013     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
   1014     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1015     <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
   1016   </instruction>
   1017 
   1018   <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2">
   1019     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1020     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1021     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1022     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
   1023     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1024     <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
   1025   </instruction>
   1026 
   1027   <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2">
   1028     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1029     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1030     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1031     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
   1032     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1033     <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
   1034   </instruction>
   1035 
   1036   <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2">
   1037     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1038     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1039     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1040     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
   1041     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1042     <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
   1043   </instruction>
   1044 
   1045   <instruction name="3DSTATE_BINDING_TABLE_POOL_ALLOC" bias="2" length="3">
   1046     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1047     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1048     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1049     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
   1050     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1051     <field name="Binding Table Pool Base Address" start="44" end="63" type="address"/>
   1052     <field name="Binding Table Pool Enable" start="43" end="43" type="uint"/>
   1053     <field name="Surface Object Control State" start="39" end="42" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1054     <field name="Binding Table Pool Upper Bound" start="76" end="95" type="address"/>
   1055   </instruction>
   1056 
   1057   <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2">
   1058     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1059     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1060     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1061     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
   1062     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1063     <field name="Blend State Pointer" start="38" end="63" type="offset"/>
   1064     <field start="32" end="32" type="mbo"/>
   1065   </instruction>
   1066 
   1067   <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2">
   1068     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1069     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1070     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1071     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
   1072     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1073     <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
   1074     <field start="32" end="32" type="mbo"/>
   1075   </instruction>
   1076 
   1077   <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4">
   1078     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1079     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1080     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1081     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
   1082     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   1083     <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
   1084     <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
   1085     <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
   1086   </instruction>
   1087 
   1088   <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3">
   1089     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1090     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1091     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1092     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
   1093     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1094     <field name="Depth Clear Value" start="32" end="63" type="uint"/>
   1095     <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
   1096   </instruction>
   1097 
   1098   <instruction name="3DSTATE_CLIP" bias="2" length="4">
   1099     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1100     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1101     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1102     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
   1103     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   1104     <field name="Front Winding" start="52" end="52" type="uint"/>
   1105     <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint"/>
   1106     <field name="Early Cull Enable" start="50" end="50" type="bool"/>
   1107     <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
   1108       <value name="BOTH" value="0"/>
   1109       <value name="NONE" value="1"/>
   1110       <value name="FRONT" value="2"/>
   1111       <value name="BACK" value="3"/>
   1112     </field>
   1113     <field name="Statistics Enable" start="42" end="42" type="bool"/>
   1114     <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
   1115     <field name="Clip Enable" start="95" end="95" type="bool"/>
   1116     <field name="API Mode" start="94" end="94" type="uint">
   1117       <value name="APIMODE_OGL" value="0"/>
   1118       <value name="APIMODE_D3D" value="1"/>
   1119     </field>
   1120     <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
   1121     <field name="Viewport Z Clip Test Enable" start="91" end="91" type="bool"/>
   1122     <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
   1123     <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
   1124     <field name="Clip Mode" start="77" end="79" type="uint">
   1125       <value name="CLIPMODE_NORMAL" value="0"/>
   1126       <value name="CLIPMODE_REJECT_ALL" value="3"/>
   1127       <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
   1128     </field>
   1129     <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
   1130     <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
   1131     <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint">
   1132       <value name="Vertex 0" value="0"/>
   1133       <value name="Vertex 1" value="1"/>
   1134       <value name="Vertex 2" value="2"/>
   1135     </field>
   1136     <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint">
   1137       <value name="Vertex 0" value="0"/>
   1138       <value name="Vertex 1" value="1"/>
   1139     </field>
   1140     <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint">
   1141       <value name="Vertex 0" value="0"/>
   1142       <value name="Vertex 1" value="1"/>
   1143       <value name="Vertex 2" value="2"/>
   1144     </field>
   1145     <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
   1146     <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
   1147     <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
   1148     <field name="Maximum VP Index" start="96" end="99" type="uint"/>
   1149   </instruction>
   1150 
   1151   <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="7">
   1152     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1153     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1154     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1155     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
   1156     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1157     <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
   1158   </instruction>
   1159 
   1160   <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="7">
   1161     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1162     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1163     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1164     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
   1165     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1166     <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
   1167   </instruction>
   1168 
   1169   <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="7">
   1170     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1171     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1172     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1173     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
   1174     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1175     <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
   1176   </instruction>
   1177 
   1178   <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="7">
   1179     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1180     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1181     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1182     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
   1183     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1184     <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
   1185   </instruction>
   1186 
   1187   <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="7">
   1188     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1189     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1190     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1191     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
   1192     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1193     <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
   1194   </instruction>
   1195 
   1196   <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="7">
   1197     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1198     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1199     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1200     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
   1201     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1202     <field name="Surface Type" start="61" end="63" type="uint">
   1203       <value name="SURFTYPE_1D" value="0"/>
   1204       <value name="SURFTYPE_2D" value="1"/>
   1205       <value name="SURFTYPE_3D" value="2"/>
   1206       <value name="SURFTYPE_CUBE" value="3"/>
   1207       <value name="SURFTYPE_NULL" value="7"/>
   1208     </field>
   1209     <field name="Depth Write Enable" start="60" end="60" type="bool"/>
   1210     <field name="Stencil Write Enable" start="59" end="59" type="bool"/>
   1211     <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
   1212     <field name="Surface Format" start="50" end="52" type="uint">
   1213       <value name="D32_FLOAT" value="1"/>
   1214       <value name="D24_UNORM_X8_UINT" value="3"/>
   1215       <value name="D16_UNORM" value="5"/>
   1216     </field>
   1217     <field name="Surface Pitch" start="32" end="49" type="uint"/>
   1218     <field name="Surface Base Address" start="64" end="95" type="address"/>
   1219     <field name="Height" start="114" end="127" type="uint"/>
   1220     <field name="Width" start="100" end="113" type="uint"/>
   1221     <field name="LOD" start="96" end="99" type="uint"/>
   1222     <field name="Depth" start="149" end="159" type="uint">
   1223       <value name="SURFTYPE_CUBE (must be zero)" value="0"/>
   1224     </field>
   1225     <field name="Minimum Array Element" start="138" end="148" type="uint"/>
   1226     <field name="Depth Buffer Object Control State" start="128" end="131" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1227     <field name="Depth Buffer MOCS" start="128" end="131" type="uint"/>
   1228     <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
   1229     <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
   1230     <field name="Render Target View Extent" start="213" end="223" type="uint"/>
   1231   </instruction>
   1232 
   1233   <instruction name="3DSTATE_DEPTH_STENCIL_STATE_POINTERS" bias="2" length="2">
   1234     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1235     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1236     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1237     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="37"/>
   1238     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1239     <field name="Pointer to DEPTH_STENCIL_STATE" start="38" end="63" type="offset"/>
   1240     <field start="32" end="32" type="mbo"/>
   1241   </instruction>
   1242 
   1243   <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4">
   1244     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1245     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1246     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1247     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
   1248     <field name="Core Mode Select" start="14" end="15" type="uint">
   1249       <value name="Legacy" value="0"/>
   1250       <value name="Core 0 Enabled" value="1"/>
   1251       <value name="Core 1 Enabled" value="2"/>
   1252     </field>
   1253     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   1254     <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
   1255     <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
   1256     <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
   1257     <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
   1258     <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
   1259     <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
   1260   </instruction>
   1261 
   1262   <instruction name="3DSTATE_DS" bias="2" length="6">
   1263     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1264     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1265     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1266     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
   1267     <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
   1268     <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
   1269     <field name="Single Domain Point Dispatch" start="95" end="95" type="uint"/>
   1270     <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
   1271     <field name="Sampler Count" start="91" end="93" type="uint">
   1272       <value name="No Samplers" value="0"/>
   1273       <value name="1-4 Samplers" value="1"/>
   1274       <value name="5-8 Samplers" value="2"/>
   1275       <value name="9-12 Samplers" value="3"/>
   1276       <value name="13-16 Samplers" value="4"/>
   1277     </field>
   1278     <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
   1279     <field name="Thread Dispatch Priority" start="81" end="81" type="uint">
   1280       <value name="High" value="1"/>
   1281     </field>
   1282     <field name="Floating Point Mode" start="80" end="80" type="uint">
   1283       <value name="IEEE-754" value="0"/>
   1284       <value name="Alternate" value="1"/>
   1285     </field>
   1286     <field name="Accesses UAV" start="78" end="78" type="bool"/>
   1287     <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
   1288     <field name="Software Exception Enable" start="71" end="71" type="bool"/>
   1289     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
   1290     <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
   1291     <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
   1292     <field name="Patch URB Entry Read Length" start="139" end="145" type="uint"/>
   1293     <field name="Patch URB Entry Read Offset" start="132" end="137" type="uint"/>
   1294     <field name="Maximum Number of Threads" start="181" end="189" type="uint"/>
   1295     <field name="Statistics Enable" start="170" end="170" type="bool"/>
   1296     <field name="Compute W Coordinate Enable" start="162" end="162" type="bool"/>
   1297     <field name="DS Cache Disable" start="161" end="161" type="bool"/>
   1298     <field name="Enable" start="160" end="160" type="bool"/>
   1299   </instruction>
   1300 
   1301   <instruction name="3DSTATE_GATHER_CONSTANT_DS" bias="2">
   1302     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1303     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1304     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1305     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="55"/>
   1306     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1307     <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
   1308     <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
   1309     <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
   1310     <group count="0" start="96" size="32">
   1311       <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
   1312       <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
   1313     </group>
   1314   </instruction>
   1315 
   1316   <instruction name="3DSTATE_GATHER_CONSTANT_GS" bias="2">
   1317     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1318     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1319     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1320     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="53"/>
   1321     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1322     <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
   1323     <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
   1324     <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
   1325     <group count="0" start="96" size="32">
   1326       <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
   1327       <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
   1328     </group>
   1329   </instruction>
   1330 
   1331   <instruction name="3DSTATE_GATHER_CONSTANT_HS" bias="2">
   1332     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1333     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1334     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1335     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="54"/>
   1336     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1337     <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
   1338     <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
   1339     <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
   1340     <group count="0" start="96" size="32">
   1341       <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
   1342       <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
   1343     </group>
   1344   </instruction>
   1345 
   1346   <instruction name="3DSTATE_GATHER_CONSTANT_PS" bias="2">
   1347     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1348     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1349     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1350     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="56"/>
   1351     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1352     <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
   1353     <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
   1354     <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
   1355     <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
   1356     <group count="0" start="96" size="32">
   1357       <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
   1358       <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
   1359     </group>
   1360   </instruction>
   1361 
   1362   <instruction name="3DSTATE_GATHER_CONSTANT_VS" bias="2">
   1363     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1364     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1365     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1366     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="52"/>
   1367     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1368     <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
   1369     <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
   1370     <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
   1371     <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
   1372     <group count="0" start="96" size="32">
   1373       <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
   1374       <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
   1375     </group>
   1376   </instruction>
   1377 
   1378   <instruction name="3DSTATE_GATHER_POOL_ALLOC" bias="2" length="3">
   1379     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1380     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1381     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1382     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
   1383     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1384     <field name="Gather Pool Base Address" start="44" end="63" type="address"/>
   1385     <field name="Gather Pool Enable" start="43" end="43" type="bool"/>
   1386     <field start="36" end="37" type="mbo"/>
   1387     <field name="Memory Object Control State" start="32" end="35" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1388     <field name="Gather Pool Upper Bound" start="76" end="95" type="address"/>
   1389   </instruction>
   1390 
   1391   <instruction name="3DSTATE_GS" bias="2" length="7">
   1392     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1393     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1394     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1395     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
   1396     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1397     <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
   1398     <field name="Single Program Flow" start="95" end="95" type="bool"/>
   1399     <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
   1400     <field name="Sampler Count" start="91" end="93" type="uint">
   1401       <value name="No Samplers" value="0"/>
   1402       <value name="1-4 Samplers" value="1"/>
   1403       <value name="5-8 Samplers" value="2"/>
   1404       <value name="9-12 Samplers" value="3"/>
   1405       <value name="13-16 Samplers" value="4"/>
   1406     </field>
   1407     <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
   1408     <field name="Thread Priority" start="81" end="81" type="uint">
   1409       <value name="Normal Priority" value="0"/>
   1410       <value name="High Priority" value="1"/>
   1411     </field>
   1412     <field name="Floating Point Mode" start="80" end="80" type="uint">
   1413       <value name="IEEE-754" value="0"/>
   1414       <value name="Alternate" value="1"/>
   1415     </field>
   1416     <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
   1417     <field name="GS accesses UAV" start="76" end="76" type="uint"/>
   1418     <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
   1419     <field name="Software Exception Enable" start="71" end="71" type="bool"/>
   1420     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
   1421     <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
   1422     <field name="Output Vertex Size" start="151" end="156" type="uint"/>
   1423     <field name="Output Topology" start="145" end="150" type="3D_Prim_Topo_Type"/>
   1424     <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
   1425     <field name="Include Vertex Handles" start="138" end="138" type="bool"/>
   1426     <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
   1427     <field name="Dispatch GRF Start Register For URB Data" start="128" end="131" type="uint"/>
   1428     <field name="Maximum Number of Threads" start="184" end="191" type="uint"/>
   1429     <field name="Control Data Header Size" start="180" end="183" type="uint"/>
   1430     <field name="Instance Control" start="175" end="179" type="uint"/>
   1431     <field name="Default StreamID" start="173" end="174" type="uint"/>
   1432     <field name="Dispatch Mode" start="171" end="172" type="uint" prefix="DISPATCH_MODE">
   1433       <value name="SINGLE" value="0"/>
   1434       <value name="DUAL_INSTANCE" value="1"/>
   1435       <value name="DUAL_OBJECT" value="2"/>
   1436     </field>
   1437     <field name="Statistics Enable" start="170" end="170" type="uint"/>
   1438     <field name="GS Invocations Increment Value" start="165" end="169" type="uint"/>
   1439     <field name="Include Primitive ID" start="164" end="164" type="bool"/>
   1440     <field name="Hint" start="163" end="163" type="uint"/>
   1441     <field name="Reorder Mode" start="162" end="162" type="uint">
   1442       <value name="LEADING" value="0"/>
   1443       <value name="TRAILING" value="1"/>
   1444     </field>
   1445     <field name="Discard Adjacency" start="161" end="161" type="bool"/>
   1446     <field name="Enable" start="160" end="160" type="bool"/>
   1447     <field name="Control Data Format" start="223" end="223" type="uint">
   1448       <value name="GSCTL_CUT" value="0"/>
   1449       <value name="GSCTL_SID" value="1"/>
   1450     </field>
   1451     <field name="Semaphore Handle" start="192" end="204" type="offset"/>
   1452   </instruction>
   1453 
   1454   <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3">
   1455     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1456     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1457     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1458     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
   1459     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1460     <field name="Hierarchical Depth Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1461     <field name="Hierarchical Depth Buffer MOCS" start="57" end="60" type="uint"/>
   1462     <field name="Surface Pitch" start="32" end="48" type="uint"/>
   1463     <field name="Surface Base Address" start="64" end="95" type="address"/>
   1464   </instruction>
   1465 
   1466   <instruction name="3DSTATE_HS" bias="2" length="7">
   1467     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1468     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1469     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1470     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
   1471     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1472     <field name="Sampler Count" start="59" end="61" type="uint">
   1473       <value name="No Samplers" value="0"/>
   1474       <value name="1-4 Samplers" value="1"/>
   1475       <value name="5-8 Samplers" value="2"/>
   1476       <value name="9-12 Samplers" value="3"/>
   1477       <value name="13-16 Samplers" value="4"/>
   1478     </field>
   1479     <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
   1480     <field name="Thread Dispatch Priority" start="49" end="49" type="uint">
   1481       <value name="High" value="1"/>
   1482     </field>
   1483     <field name="Floating Point Mode" start="48" end="48" type="uint">
   1484       <value name="IEEE-754" value="0"/>
   1485       <value name="Alternate" value="1"/>
   1486     </field>
   1487     <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
   1488     <field name="Software Exception Enable" start="44" end="44" type="bool"/>
   1489     <field name="Maximum Number of Threads" start="32" end="39" type="uint"/>
   1490     <field name="Enable" start="95" end="95" type="bool"/>
   1491     <field name="Statistics Enable" start="93" end="93" type="bool"/>
   1492     <field name="Instance Count" start="64" end="67" type="uint"/>
   1493     <field name="Kernel Start Pointer" start="102" end="127" type="offset"/>
   1494     <field name="Scratch Space Base Pointer" start="138" end="159" type="address"/>
   1495     <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
   1496     <field name="Single Program Flow" start="187" end="187" type="bool"/>
   1497     <field name="Vector Mask Enable" start="186" end="186" type="bool"/>
   1498     <field name="HS accesses UAV" start="185" end="185" type="bool"/>
   1499     <field name="Include Vertex Handles" start="184" end="184" type="bool"/>
   1500     <field name="Dispatch GRF Start Register For URB Data" start="179" end="183" type="uint"/>
   1501     <field name="Vertex URB Entry Read Length" start="171" end="176" type="uint"/>
   1502     <field name="Vertex URB Entry Read Offset" start="164" end="169" type="uint"/>
   1503     <field name="Semaphore Handle" start="192" end="204" type="offset"/>
   1504   </instruction>
   1505 
   1506   <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3">
   1507     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1508     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1509     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1510     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
   1511     <field name="Memory Object Control State" start="12" end="15" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1512     <field name="IndexBufferMOCS" start="12" end="15" type="uint"/>
   1513     <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
   1514       <value name="BYTE" value="0"/>
   1515       <value name="WORD" value="1"/>
   1516       <value name="DWORD" value="2"/>
   1517     </field>
   1518     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1519     <field name="Buffer Starting Address" start="32" end="63" type="address"/>
   1520     <field name="Buffer Ending Address" start="64" end="95" type="address"/>
   1521   </instruction>
   1522 
   1523   <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3">
   1524     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1525     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1526     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1527     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
   1528     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1529     <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
   1530     <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
   1531     <field name="Current Stipple Index" start="48" end="51" type="uint"/>
   1532     <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
   1533     <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
   1534     <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
   1535   </instruction>
   1536 
   1537   <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2">
   1538     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1539     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1540     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1541     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
   1542     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1543     <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
   1544     <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
   1545   </instruction>
   1546 
   1547   <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="4">
   1548     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1549     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1550     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1551     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
   1552     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   1553     <field name="Multi Sample Enable" start="37" end="37" type="bool"/>
   1554     <field name="Pixel Location" start="36" end="36" type="uint">
   1555       <value name="CENTER" value="0"/>
   1556       <value name="UL_CORNER" value="1"/>
   1557     </field>
   1558     <field name="Number of Multisamples" start="33" end="35" type="uint">
   1559       <value name="NUMSAMPLES_1" value="0"/>
   1560       <value name="NUMSAMPLES_4" value="2"/>
   1561       <value name="NUMSAMPLES_8" value="3"/>
   1562     </field>
   1563     <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
   1564     <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
   1565     <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
   1566     <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
   1567     <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
   1568     <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
   1569     <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
   1570     <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
   1571     <field name="Sample7 X Offset" start="124" end="127" type="u0.4"/>
   1572     <field name="Sample7 Y Offset" start="120" end="123" type="u0.4"/>
   1573     <field name="Sample6 X Offset" start="116" end="119" type="u0.4"/>
   1574     <field name="Sample6 Y Offset" start="112" end="115" type="u0.4"/>
   1575     <field name="Sample5 X Offset" start="108" end="111" type="u0.4"/>
   1576     <field name="Sample5 Y Offset" start="104" end="107" type="u0.4"/>
   1577     <field name="Sample4 X Offset" start="100" end="103" type="u0.4"/>
   1578     <field name="Sample4 Y Offset" start="96" end="99" type="u0.4"/>
   1579   </instruction>
   1580 
   1581   <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2">
   1582     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1583     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1584     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1585     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
   1586     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1587     <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
   1588     <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
   1589   </instruction>
   1590 
   1591   <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33">
   1592     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1593     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1594     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1595     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
   1596     <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
   1597     <group count="32" start="32" size="32">
   1598       <field name="Pattern Row" start="0" end="31" type="uint"/>
   1599     </group>
   1600   </instruction>
   1601 
   1602   <instruction name="3DSTATE_PS" bias="2" length="8">
   1603     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1604     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1605     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1606     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
   1607     <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
   1608     <field name="Kernel Start Pointer 0" start="38" end="63" type="offset"/>
   1609     <field name="Single Program Flow" start="95" end="95" type="bool"/>
   1610     <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
   1611     <field name="Sampler Count" start="91" end="93" type="uint"/>
   1612     <field name="Denormal Mode" start="90" end="90" type="uint">
   1613       <value name="FTZ" value="0"/>
   1614       <value name="RET" value="1"/>
   1615     </field>
   1616     <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
   1617     <field name="Thread Priority" start="81" end="81" type="uint">
   1618       <value name="High" value="1"/>
   1619     </field>
   1620     <field name="Floating Point Mode" start="80" end="80" type="uint">
   1621       <value name="IEEE-754" value="0"/>
   1622       <value name="Alternate" value="1"/>
   1623     </field>
   1624     <field name="Rounding Mode" start="78" end="79" type="uint">
   1625       <value name="RTNE" value="0"/>
   1626       <value name="RU" value="1"/>
   1627       <value name="RD" value="2"/>
   1628       <value name="RTZ" value="3"/>
   1629     </field>
   1630     <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
   1631     <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
   1632     <field name="Software Exception Enable" start="71" end="71" type="bool"/>
   1633     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
   1634     <field name="Per Thread Scratch Space" start="96" end="99" type="uint"/>
   1635     <field name="Maximum Number of Threads" start="151" end="159" type="uint"/>
   1636     <field name="Sample Mask" start="140" end="147" type="uint"/>
   1637     <field name="Push Constant Enable" start="139" end="139" type="bool"/>
   1638     <field name="Attribute Enable" start="138" end="138" type="bool"/>
   1639     <field name="oMask Present to RenderTarget" start="137" end="137" type="bool"/>
   1640     <field name="Render Target Fast Clear Enable" start="136" end="136" type="bool"/>
   1641     <field name="Dual Source Blend Enable" start="135" end="135" type="bool"/>
   1642     <field name="Render Target Resolve Enable" start="134" end="134" type="bool"/>
   1643     <field name="PS Accesses UAV" start="133" end="133" type="bool"/>
   1644     <field name="Position XY Offset Select" start="131" end="132" type="uint">
   1645       <value name="POSOFFSET_NONE" value="0"/>
   1646       <value name="POSOFFSET_CENTROID" value="2"/>
   1647       <value name="POSOFFSET_SAMPLE" value="3"/>
   1648     </field>
   1649     <field name="32 Pixel Dispatch Enable" start="130" end="130" type="bool"/>
   1650     <field name="16 Pixel Dispatch Enable" start="129" end="129" type="bool"/>
   1651     <field name="8 Pixel Dispatch Enable" start="128" end="128" type="bool"/>
   1652     <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="176" end="182" type="uint"/>
   1653     <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="168" end="174" type="uint"/>
   1654     <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="160" end="166" type="uint"/>
   1655     <field name="Kernel Start Pointer 1" start="198" end="223" type="offset"/>
   1656     <field name="Kernel Start Pointer 2" start="230" end="255" type="offset"/>
   1657   </instruction>
   1658 
   1659   <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2">
   1660     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1661     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1662     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1663     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
   1664     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1665     <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
   1666     <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
   1667   </instruction>
   1668 
   1669   <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2">
   1670     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1671     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1672     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1673     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
   1674     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1675     <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
   1676     <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
   1677   </instruction>
   1678 
   1679   <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2">
   1680     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1681     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1682     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1683     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
   1684     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1685     <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
   1686     <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
   1687   </instruction>
   1688 
   1689   <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2">
   1690     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1691     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1692     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1693     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
   1694     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1695     <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
   1696     <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
   1697   </instruction>
   1698 
   1699   <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2">
   1700     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1701     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1702     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1703     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
   1704     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1705     <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
   1706     <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
   1707   </instruction>
   1708 
   1709   <instruction name="3DSTATE_RAST_MULTISAMPLE" bias="2" length="6">
   1710     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1711     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1712     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1713     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
   1714     <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
   1715     <field name="Number of Rasterization Multisamples" start="33" end="35" type="uint" prefix="NRM">
   1716       <value name="NUMRASTSAMPLES_1" value="0"/>
   1717       <value name="NUMRASTSAMPLES_2" value="1"/>
   1718       <value name="NUMRASTSAMPLES_4" value="2"/>
   1719       <value name="NUMRASTSAMPLES_8" value="3"/>
   1720       <value name="NUMRASTSAMPLES_16" value="4"/>
   1721     </field>
   1722     <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
   1723     <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
   1724     <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
   1725     <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
   1726     <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
   1727     <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
   1728     <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
   1729     <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
   1730     <field name="Sample7 X Offset" start="124" end="127" type="u0.4"/>
   1731     <field name="Sample7 Y Offset" start="120" end="123" type="u0.4"/>
   1732     <field name="Sample6 X Offset" start="116" end="119" type="u0.4"/>
   1733     <field name="Sample6 Y Offset" start="112" end="115" type="u0.4"/>
   1734     <field name="Sample5 X Offset" start="108" end="111" type="u0.4"/>
   1735     <field name="Sample5 Y Offset" start="104" end="107" type="u0.4"/>
   1736     <field name="Sample4 X Offset" start="100" end="103" type="u0.4"/>
   1737     <field name="Sample4 Y Offset" start="96" end="99" type="u0.4"/>
   1738     <field name="Sample11 X Offset" start="156" end="159" type="u0.4"/>
   1739     <field name="Sample11 Y Offset" start="152" end="155" type="u0.4"/>
   1740     <field name="Sample10 X Offset" start="148" end="151" type="u0.4"/>
   1741     <field name="Sample10 Y Offset" start="144" end="147" type="u0.4"/>
   1742     <field name="Sample9 X Offset" start="140" end="143" type="u0.4"/>
   1743     <field name="Sample9 Y Offset" start="136" end="139" type="u0.4"/>
   1744     <field name="Sample8 X Offset" start="132" end="135" type="u0.4"/>
   1745     <field name="Sample8 Y Offset" start="128" end="131" type="u0.4"/>
   1746     <field name="Sample15 X Offset" start="188" end="191" type="u0.4"/>
   1747     <field name="Sample15 Y Offset" start="184" end="187" type="u0.4"/>
   1748     <field name="Sample14 X Offset" start="180" end="183" type="u0.4"/>
   1749     <field name="Sample14 Y Offset" start="176" end="179" type="u0.4"/>
   1750     <field name="Sample13 X Offset" start="172" end="175" type="u0.4"/>
   1751     <field name="Sample13 Y Offset" start="168" end="171" type="u0.4"/>
   1752     <field name="Sample12 X Offset" start="164" end="167" type="u0.4"/>
   1753     <field name="Sample12 Y Offset" start="160" end="163" type="u0.4"/>
   1754   </instruction>
   1755 
   1756   <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2">
   1757     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1758     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1759     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1760     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
   1761     <field name="DWord Length" start="0" end="7" type="uint"/>
   1762     <group count="0" start="32" size="32">
   1763       <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
   1764     </group>
   1765   </instruction>
   1766 
   1767   <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2">
   1768     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1769     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1770     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1771     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
   1772     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1773     <group count="0" start="32" size="32">
   1774       <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
   1775       <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
   1776       <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
   1777       <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
   1778     </group>
   1779   </instruction>
   1780 
   1781   <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2">
   1782     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1783     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1784     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1785     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
   1786     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1787     <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
   1788   </instruction>
   1789 
   1790   <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2">
   1791     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1792     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1793     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1794     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
   1795     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1796     <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
   1797   </instruction>
   1798 
   1799   <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2">
   1800     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1801     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1802     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1803     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
   1804     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1805     <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
   1806   </instruction>
   1807 
   1808   <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2">
   1809     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1810     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1811     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1812     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
   1813     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1814     <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
   1815   </instruction>
   1816 
   1817   <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2">
   1818     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1819     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1820     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1821     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
   1822     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1823     <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
   1824   </instruction>
   1825 
   1826   <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2">
   1827     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1828     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1829     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1830     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
   1831     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1832     <field name="Sample Mask" start="32" end="39" type="uint"/>
   1833   </instruction>
   1834 
   1835   <instruction name="3DSTATE_SBE" bias="2" length="14">
   1836     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1837     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1838     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1839     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
   1840     <field name="DWord Length" start="0" end="7" type="uint" default="12"/>
   1841     <field name="Attribute Swizzle Control Mode" start="60" end="60" type="uint"/>
   1842     <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
   1843     <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
   1844     <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
   1845       <value name="UPPERLEFT" value="0"/>
   1846       <value name="LOWERLEFT" value="1"/>
   1847     </field>
   1848     <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
   1849     <field name="Vertex URB Entry Read Offset" start="36" end="41" type="uint"/>
   1850     <group count="16" start="64" size="16">
   1851       <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
   1852     </group>
   1853     <field name="Point Sprite Texture Coordinate Enable" start="320" end="351" type="uint"/>
   1854     <field name="Constant Interpolation Enable" start="352" end="383" type="uint"/>
   1855     <field name="Attribute 7 WrapShortest Enables" start="412" end="415" type="uint"/>
   1856     <field name="Attribute 6 WrapShortest Enables" start="408" end="411" type="uint"/>
   1857     <field name="Attribute 5 WrapShortest Enables" start="404" end="407" type="uint"/>
   1858     <field name="Attribute 4 WrapShortest Enables" start="400" end="403" type="uint"/>
   1859     <field name="Attribute 3 WrapShortest Enables" start="396" end="399" type="uint"/>
   1860     <field name="Attribute 2 WrapShortest Enables" start="392" end="395" type="uint"/>
   1861     <field name="Attribute 1 WrapShortest Enables" start="388" end="391" type="uint"/>
   1862     <field name="Attribute 0 WrapShortest Enables" start="384" end="387" type="uint"/>
   1863     <field name="Attribute 15 WrapShortest Enables" start="444" end="447" type="uint"/>
   1864     <field name="Attribute 14 WrapShortest Enables" start="440" end="443" type="uint"/>
   1865     <field name="Attribute 13 WrapShortest Enables" start="436" end="439" type="uint"/>
   1866     <field name="Attribute 12 WrapShortest Enables" start="432" end="435" type="uint"/>
   1867     <field name="Attribute 11 WrapShortest Enables" start="428" end="431" type="uint"/>
   1868     <field name="Attribute 10 WrapShortest Enables" start="424" end="427" type="uint"/>
   1869     <field name="Attribute 9 WrapShortest Enables" start="420" end="423" type="uint"/>
   1870     <field name="Attribute 8 WrapShortest Enables" start="416" end="419" type="uint"/>
   1871   </instruction>
   1872 
   1873   <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2">
   1874     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1875     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1876     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1877     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
   1878     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   1879     <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
   1880   </instruction>
   1881 
   1882   <instruction name="3DSTATE_SF" bias="2" length="7">
   1883     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1884     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1885     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1886     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
   1887     <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
   1888     <field name="Depth Buffer Surface Format" start="44" end="46" type="uint">
   1889       <value name="D32_FLOAT_S8X24_UINT" value="0"/>
   1890       <value name="D32_FLOAT" value="1"/>
   1891       <value name="D24_UNORM_S8_UINT" value="2"/>
   1892       <value name="D24_UNORM_X8_UINT" value="3"/>
   1893       <value name="D16_UNORM" value="5"/>
   1894     </field>
   1895     <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
   1896     <field name="Statistics Enable" start="42" end="42" type="bool"/>
   1897     <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
   1898     <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
   1899     <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
   1900     <field name="FrontFace Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
   1901       <value name="SOLID" value="0"/>
   1902       <value name="WIREFRAME" value="1"/>
   1903       <value name="POINT" value="2"/>
   1904     </field>
   1905     <field name="BackFace Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
   1906       <value name="SOLID" value="0"/>
   1907       <value name="WIREFRAME" value="1"/>
   1908       <value name="POINT" value="2"/>
   1909     </field>
   1910     <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
   1911     <field name="Front Winding" start="32" end="32" type="uint"/>
   1912     <field name="Anti-Aliasing Enable" start="95" end="95" type="bool"/>
   1913     <field name="Cull Mode" start="93" end="94" type="uint" prefix="CULLMODE">
   1914       <value name="BOTH" value="0"/>
   1915       <value name="NONE" value="1"/>
   1916       <value name="FRONT" value="2"/>
   1917       <value name="BACK" value="3"/>
   1918     </field>
   1919     <field name="Line Width" start="82" end="91" type="u3.7"/>
   1920     <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
   1921       <value name="0.5 pixels" value="0"/>
   1922       <value name="1.0 pixels" value="1"/>
   1923       <value name="2.0 pixels" value="2"/>
   1924       <value name="4.0 pixels" value="3"/>
   1925     </field>
   1926     <field name="Line Stipple Enable" start="78" end="78" type="bool"/>
   1927     <field name="Scissor Rectangle Enable" start="75" end="75" type="bool"/>
   1928     <field name="RT Independent Rasterization Enable" start="74" end="74" type="bool"/>
   1929     <field name="Multisample Rasterization Mode" start="72" end="73" type="uint"/>
   1930     <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
   1931     <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint">
   1932       <value name="Vertex 0" value="0"/>
   1933       <value name="Vertex 1" value="1"/>
   1934       <value name="Vertex 2" value="2"/>
   1935     </field>
   1936     <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
   1937     <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint">
   1938       <value name="Vertex 0" value="0"/>
   1939       <value name="Vertex 1" value="1"/>
   1940       <value name="Vertex 2" value="2"/>
   1941     </field>
   1942     <field name="AA Line Distance Mode" start="110" end="110" type="uint">
   1943       <value name="AALINEDISTANCE_TRUE" value="1"/>
   1944     </field>
   1945     <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint"/>
   1946     <field name="Point Width Source" start="107" end="107" type="uint">
   1947       <value name="Vertex" value="0"/>
   1948       <value name="State" value="1"/>
   1949     </field>
   1950     <field name="Point Width" start="96" end="106" type="u8.3"/>
   1951     <field name="Global Depth Offset Constant" start="128" end="159" type="float"/>
   1952     <field name="Global Depth Offset Scale" start="160" end="191" type="float"/>
   1953     <field name="Global Depth Offset Clamp" start="192" end="223" type="float"/>
   1954   </instruction>
   1955 
   1956   <instruction name="3DSTATE_SO_BUFFER" bias="2" length="4">
   1957     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1958     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1959     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1960     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
   1961     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   1962     <field name="SO Buffer Index" start="61" end="62" type="uint"/>
   1963     <field name="SO Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1964     <field name="SO Buffer MOCS" start="57" end="60" type="uint"/>
   1965     <field name="Surface Pitch" start="32" end="43" type="uint"/>
   1966     <field name="Surface Base Address" start="66" end="95" type="address"/>
   1967     <field name="Surface End Address" start="98" end="127" type="address"/>
   1968   </instruction>
   1969 
   1970   <instruction name="3DSTATE_SO_DECL_LIST" bias="2">
   1971     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1972     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1973     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   1974     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
   1975     <field name="DWord Length" start="0" end="8" type="uint"/>
   1976     <field name="Stream to Buffer Selects [3]" start="44" end="47" type="uint"/>
   1977     <field name="Stream to Buffer Selects [2]" start="40" end="43" type="uint"/>
   1978     <field name="Stream to Buffer Selects [1]" start="36" end="39" type="uint"/>
   1979     <field name="Stream to Buffer Selects [0]" start="32" end="35" type="uint"/>
   1980     <field name="Num Entries [3]" start="88" end="95" type="uint"/>
   1981     <field name="Num Entries [2]" start="80" end="87" type="uint"/>
   1982     <field name="Num Entries [1]" start="72" end="79" type="uint"/>
   1983     <field name="Num Entries [0]" start="64" end="71" type="uint"/>
   1984     <group count="0" start="96" size="64">
   1985       <field name="Entry" start="0" end="63" type="SO_DECL_ENTRY"/>
   1986     </group>
   1987   </instruction>
   1988 
   1989   <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="3">
   1990     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   1991     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   1992     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   1993     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
   1994     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   1995     <field name="Stencil Buffer Enable" start="63" end="63" type="bool"/>
   1996     <field name="Stencil Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
   1997     <field name="Stencil Buffer MOCS" start="57" end="60" type="uint"/>
   1998     <field name="Surface Pitch" start="32" end="48" type="uint"/>
   1999     <field name="Surface Base Address" start="64" end="95" type="address"/>
   2000   </instruction>
   2001 
   2002   <instruction name="3DSTATE_STREAMOUT" bias="2" length="3">
   2003     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2004     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2005     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2006     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
   2007     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2008     <field name="SO Function Enable" start="63" end="63" type="bool"/>
   2009     <field name="Rendering Disable" start="62" end="62" type="bool"/>
   2010     <field name="Render Stream Select" start="59" end="60" type="uint"/>
   2011     <field name="Reorder Mode" start="58" end="58" type="uint">
   2012       <value name="LEADING" value="0"/>
   2013       <value name="TRAILING" value="1"/>
   2014     </field>
   2015     <field name="SO Statistics Enable" start="57" end="57" type="bool"/>
   2016     <field name="SO Buffer Enable [3]" start="43" end="43" type="bool"/>
   2017     <field name="SO Buffer Enable [2]" start="42" end="42" type="bool"/>
   2018     <field name="SO Buffer Enable [1]" start="41" end="41" type="bool"/>
   2019     <field name="SO Buffer Enable [0]" start="40" end="40" type="bool"/>
   2020     <field name="Stream 3 Vertex Read Offset" start="93" end="93" type="uint"/>
   2021     <field name="Stream 3 Vertex Read Length" start="88" end="92" type="uint"/>
   2022     <field name="Stream 2 Vertex Read Offset" start="85" end="85" type="uint"/>
   2023     <field name="Stream 2 Vertex Read Length" start="80" end="84" type="uint"/>
   2024     <field name="Stream 1 Vertex Read Offset" start="77" end="77" type="uint"/>
   2025     <field name="Stream 1 Vertex Read Length" start="72" end="76" type="uint"/>
   2026     <field name="Stream 0 Vertex Read Offset" start="69" end="69" type="uint"/>
   2027     <field name="Stream 0 Vertex Read Length" start="64" end="68" type="uint"/>
   2028   </instruction>
   2029 
   2030   <instruction name="3DSTATE_TE" bias="2" length="4">
   2031     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2032     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2033     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2034     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
   2035     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   2036     <field name="Partitioning" start="44" end="45" type="uint">
   2037       <value name="INTEGER" value="0"/>
   2038       <value name="ODD_FRACTIONAL" value="1"/>
   2039       <value name="EVEN_FRACTIONAL" value="2"/>
   2040     </field>
   2041     <field name="Output Topology" start="40" end="41" type="uint" prefix="OUTPUT">
   2042       <value name="POINT" value="0"/>
   2043       <value name="LINE" value="1"/>
   2044       <value name="TRI_CW" value="2"/>
   2045       <value name="TRI_CCW" value="3"/>
   2046     </field>
   2047     <field name="TE Domain" start="36" end="37" type="uint">
   2048       <value name="QUAD" value="0"/>
   2049       <value name="TRI" value="1"/>
   2050       <value name="ISOLINE" value="2"/>
   2051     </field>
   2052     <field name="TE Mode" start="33" end="34" type="uint">
   2053       <value name="HW_TESS" value="0"/>
   2054       <value name="SW_TESS" value="1"/>
   2055     </field>
   2056     <field name="TE Enable" start="32" end="32" type="bool"/>
   2057     <field name="Maximum Tessellation Factor Odd" start="64" end="95" type="float"/>
   2058     <field name="Maximum Tessellation Factor Not Odd" start="96" end="127" type="float"/>
   2059   </instruction>
   2060 
   2061   <instruction name="3DSTATE_URB_DS" bias="2" length="2">
   2062     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2063     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2064     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2065     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="50"/>
   2066     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2067     <field name="DS URB Starting Address" start="57" end="62" type="uint"/>
   2068     <field name="DS URB Entry Allocation Size" start="48" end="56" type="uint"/>
   2069     <field name="DS Number of URB Entries" start="32" end="47" type="uint"/>
   2070   </instruction>
   2071 
   2072   <instruction name="3DSTATE_URB_GS" bias="2" length="2">
   2073     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2074     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2075     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2076     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="51"/>
   2077     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2078     <field name="GS URB Starting Address" start="57" end="62" type="uint"/>
   2079     <field name="GS URB Entry Allocation Size" start="48" end="56" type="uint"/>
   2080     <field name="GS Number of URB Entries" start="32" end="47" type="uint"/>
   2081   </instruction>
   2082 
   2083   <instruction name="3DSTATE_URB_HS" bias="2" length="2">
   2084     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2085     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2086     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2087     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="49"/>
   2088     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2089     <field name="HS URB Starting Address" start="57" end="62" type="uint"/>
   2090     <field name="HS URB Entry Allocation Size" start="48" end="56" type="uint"/>
   2091     <field name="HS Number of URB Entries" start="32" end="47" type="uint"/>
   2092   </instruction>
   2093 
   2094   <instruction name="3DSTATE_URB_VS" bias="2" length="2">
   2095     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2096     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2097     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2098     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="48"/>
   2099     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2100     <field name="VS URB Starting Address" start="57" end="62" type="uint"/>
   2101     <field name="VS URB Entry Allocation Size" start="48" end="56" type="uint"/>
   2102     <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
   2103   </instruction>
   2104 
   2105   <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2">
   2106     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2107     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2108     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2109     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
   2110     <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
   2111     <group count="0" start="32" size="128">
   2112       <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
   2113     </group>
   2114   </instruction>
   2115 
   2116   <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2">
   2117     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2118     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2119     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2120     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
   2121     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2122     <group count="0" start="32" size="64">
   2123       <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
   2124     </group>
   2125   </instruction>
   2126 
   2127   <instruction name="3DSTATE_VF" bias="2" length="2">
   2128     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2129     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2130     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2131     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
   2132     <field name="Indexed Draw Cut Index Enable" start="8" end="8" type="bool"/>
   2133     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2134     <field name="Cut Index" start="32" end="63" type="uint"/>
   2135   </instruction>
   2136 
   2137   <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1">
   2138     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2139     <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
   2140     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2141     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
   2142     <field name="Statistics Enable" start="0" end="0" type="bool"/>
   2143   </instruction>
   2144 
   2145   <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2">
   2146     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2147     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2148     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2149     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="35"/>
   2150     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2151     <field name="CC Viewport Pointer" start="37" end="63" type="offset"/>
   2152   </instruction>
   2153 
   2154   <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP" bias="2" length="2">
   2155     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2156     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2157     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2158     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="33"/>
   2159     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2160     <field name="SF Clip Viewport Pointer" start="38" end="63" type="offset"/>
   2161   </instruction>
   2162 
   2163   <instruction name="3DSTATE_VS" bias="2" length="6">
   2164     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2165     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2166     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2167     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
   2168     <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
   2169     <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
   2170     <field name="Single Vertex Dispatch" start="95" end="95" type="bool"/>
   2171     <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
   2172     <field name="Sampler Count" start="91" end="93" type="uint">
   2173       <value name="No Samplers" value="0"/>
   2174       <value name="1-4 Samplers" value="1"/>
   2175       <value name="5-8 Samplers" value="2"/>
   2176       <value name="9-12 Samplers" value="3"/>
   2177       <value name="13-16 Samplers" value="4"/>
   2178     </field>
   2179     <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
   2180     <field name="Thread Priority" start="81" end="81" type="uint">
   2181       <value name="Normal Priority" value="0"/>
   2182       <value name="High Priority" value="1"/>
   2183     </field>
   2184     <field name="Floating Point Mode" start="80" end="80" type="uint">
   2185       <value name="IEEE-754" value="0"/>
   2186       <value name="Alternate" value="1"/>
   2187     </field>
   2188     <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
   2189     <field name="VS accesses UAV" start="76" end="76" type="bool"/>
   2190     <field name="Software Exception Enable" start="71" end="71" type="bool"/>
   2191     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
   2192     <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
   2193     <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
   2194     <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
   2195     <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
   2196     <field name="Maximum Number of Threads" start="183" end="191" type="uint"/>
   2197     <field name="Statistics Enable" start="170" end="170" type="bool"/>
   2198     <field name="Vertex Cache Disable" start="161" end="161" type="bool"/>
   2199     <field name="Enable" start="160" end="160" type="bool"/>
   2200   </instruction>
   2201 
   2202   <instruction name="3DSTATE_WM" bias="2" length="3">
   2203     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2204     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2205     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2206     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
   2207     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2208     <field name="Statistics Enable" start="63" end="63" type="bool"/>
   2209     <field name="Depth Buffer Clear" start="62" end="62" type="bool"/>
   2210     <field name="Thread Dispatch Enable" start="61" end="61" type="bool"/>
   2211     <field name="Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
   2212     <field name="Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
   2213     <field name="Legacy Diamond Line Rasterization" start="58" end="58" type="bool"/>
   2214     <field name="Pixel Shader Kills Pixel" start="57" end="57" type="bool"/>
   2215     <field name="Pixel Shader Computed Depth Mode" start="55" end="56" type="uint">
   2216       <value name="PSCDEPTH_OFF" value="0"/>
   2217       <value name="PSCDEPTH_ON" value="1"/>
   2218       <value name="PSCDEPTH_ON_GE" value="2"/>
   2219       <value name="PSCDEPTH_ON_LE" value="3"/>
   2220     </field>
   2221     <field name="Early Depth/Stencil Control" start="53" end="54" type="uint">
   2222       <value name="EDSC_NORMAL" value="0"/>
   2223       <value name="EDSC_PSEXEC" value="1"/>
   2224       <value name="EDSC_PREPS" value="2"/>
   2225     </field>
   2226     <field name="Pixel Shader Uses Source Depth" start="52" end="52" type="bool"/>
   2227     <field name="Pixel Shader Uses Source W" start="51" end="51" type="bool"/>
   2228     <field name="Position ZW Interpolation Mode" start="49" end="50" type="uint">
   2229       <value name="INTERP_PIXEL" value="0"/>
   2230       <value name="INTERP_CENTROID" value="2"/>
   2231       <value name="INTERP_SAMPLE" value="3"/>
   2232     </field>
   2233     <field name="Barycentric Interpolation Mode" start="43" end="48" type="uint">
   2234       <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
   2235       <value name="BIM_PERSPECTIVE_CENTROID" value ="2"/>
   2236       <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
   2237       <value name="BIM_LINEAR_PIXEL" value="8"/>
   2238       <value name="BIM_LINEAR_CENTROID" value="16"/>
   2239       <value name="BIM_LINEAR_SAMPLE" value="32"/>
   2240     </field>
   2241     <field name="Pixel Shader Uses Input Coverage Mask" start="42" end="42" type="bool"/>
   2242     <field name="Line End Cap Antialiasing Region Width" start="40" end="41" type="uint"/>
   2243     <field name="Line Antialiasing Region Width" start="38" end="39" type="uint">
   2244       <value name="0.5 pixels" value="0"/>
   2245       <value name="1.0 pixels" value="1"/>
   2246       <value name="2.0 pixels" value="2"/>
   2247       <value name="4.0 pixels" value="3"/>
   2248     </field>
   2249     <field name="RT Independent Rasterization Enable" start="37" end="37" type="bool"/>
   2250     <field name="Polygon Stipple Enable" start="36" end="36" type="bool"/>
   2251     <field name="Line Stipple Enable" start="35" end="35" type="bool"/>
   2252     <field name="Point Rasterization Rule" start="34" end="34" type="uint">
   2253       <value name="RASTRULE_UPPER_LEFT" value="0"/>
   2254       <value name="RASTRULE_UPPER_RIGHT" value="1"/>
   2255     </field>
   2256     <field name="Multisample Rasterization Mode" start="32" end="33" type="uint">
   2257       <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
   2258       <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
   2259       <value name="MSRASTMODE_ON_PIXEL" value="2"/>
   2260       <value name="MSRASTMODE_ON_PATTERN" value="3"/>
   2261     </field>
   2262     <field name="Multisample Dispatch Mode" start="95" end="95" type="uint">
   2263       <value name="MSDISPMODE_PERSAMPLE" value="0"/>
   2264       <value name="MSDISPMODE_PERPIXEL" value="1"/>
   2265     </field>
   2266     <field name="PS UAV-only" start="94" end="94" type="uint">
   2267       <value name="OFF" value="0"/>
   2268       <value name="ON" value="1"/>
   2269     </field>
   2270   </instruction>
   2271 
   2272   <instruction name="GPGPU_CSR_BASE_ADDRESS" bias="2" length="2">
   2273     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2274     <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
   2275     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   2276     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
   2277     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2278     <field name="GPGPU CSR Base Address" start="44" end="63" type="address"/>
   2279   </instruction>
   2280 
   2281   <instruction name="GPGPU_OBJECT" bias="2" length="8">
   2282     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2283     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2284     <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
   2285     <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
   2286     <field name="Predicate Enable" start="8" end="8" type="bool"/>
   2287     <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
   2288     <field name="Shared Local Memory Fixed Offset" start="39" end="39" type="uint"/>
   2289     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2290     <field name="Shared Local Memory Offset" start="92" end="95" type="uint"/>
   2291     <field name="End of Thread Group" start="88" end="88" type="uint"/>
   2292     <field name="Slice Destination Select" start="83" end="83" type="uint">
   2293       <value name="Slice 0" value="0"/>
   2294       <value name="Slice 1" value="1"/>
   2295     </field>
   2296     <field name="Half-Slice Destination Select" start="81" end="82" type="uint">
   2297       <value name="Half-Slice 1" value="2"/>
   2298       <value name="Half-Slice 0" value="1"/>
   2299       <value name="Either Half-Slice" value="0"/>
   2300     </field>
   2301     <field name="Indirect Data Length" start="64" end="80" type="uint"/>
   2302     <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
   2303     <field name="Thread Group ID X" start="128" end="159" type="uint"/>
   2304     <field name="Thread Group ID Y" start="160" end="191" type="uint"/>
   2305     <field name="Thread Group ID Z" start="192" end="223" type="uint"/>
   2306     <field name="Execution Mask" start="224" end="255" type="uint"/>
   2307   </instruction>
   2308 
   2309   <instruction name="GPGPU_WALKER" bias="2" length="11">
   2310     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2311     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2312     <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
   2313     <field name="SubOpcode A" start="16" end="23" type="uint" default="5"/>
   2314     <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
   2315     <field name="Predicate Enable" start="8" end="8" type="bool"/>
   2316     <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
   2317     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2318     <field name="SIMD Size" start="94" end="95" type="uint">
   2319       <value name="SIMD8" value="0"/>
   2320       <value name="SIMD16" value="1"/>
   2321       <value name="SIMD32" value="2"/>
   2322     </field>
   2323     <field name="Thread Depth Counter Maximum" start="80" end="85" type="uint"/>
   2324     <field name="Thread Height Counter Maximum" start="72" end="77" type="uint"/>
   2325     <field name="Thread Width Counter Maximum" start="64" end="69" type="uint"/>
   2326     <field name="Thread Group ID Starting X" start="96" end="127" type="uint"/>
   2327     <field name="Thread Group ID X Dimension" start="128" end="159" type="uint"/>
   2328     <field name="Thread Group ID Starting Y" start="160" end="191" type="uint"/>
   2329     <field name="Thread Group ID Y Dimension" start="192" end="223" type="uint"/>
   2330     <field name="Thread Group ID Starting Z" start="224" end="255" type="uint"/>
   2331     <field name="Thread Group ID Z Dimension" start="256" end="287" type="uint"/>
   2332     <field name="Right Execution Mask" start="288" end="319" type="uint"/>
   2333     <field name="Bottom Execution Mask" start="320" end="351" type="uint"/>
   2334   </instruction>
   2335 
   2336   <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4">
   2337     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2338     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2339     <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
   2340     <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
   2341     <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
   2342     <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
   2343     <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
   2344   </instruction>
   2345 
   2346   <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4">
   2347     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2348     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2349     <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
   2350     <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
   2351     <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
   2352     <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
   2353     <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
   2354   </instruction>
   2355 
   2356   <instruction name="MEDIA_OBJECT" bias="2">
   2357     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2358     <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
   2359     <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
   2360     <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
   2361     <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
   2362     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2363     <field name="Children Present" start="95" end="95" type="bool"/>
   2364     <field name="Thread Synchronization" start="88" end="88" type="uint">
   2365       <value name="No thread synchronization" value="0"/>
   2366       <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
   2367     </field>
   2368     <field name="Use Scoreboard" start="85" end="85" type="uint">
   2369       <value name="Not using scoreboard" value="0"/>
   2370       <value name="Using scoreboard" value="1"/>
   2371     </field>
   2372     <field name="Slice Destination Select" start="83" end="83" type="uint">
   2373       <value name="Slice 0" value="0"/>
   2374       <value name="Slice 1" value="1"/>
   2375       <value name="Either Slice" value="0"/>
   2376     </field>
   2377     <field name="Half-Slice Destination Select" start="81" end="82" type="uint">
   2378       <value name="Half-Slice 1" value="2"/>
   2379       <value name="Half-Slice 0" value="1"/>
   2380       <value name="Either half-slice" value="0"/>
   2381     </field>
   2382     <field name="Indirect Data Length" start="64" end="80" type="uint"/>
   2383     <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
   2384     <field name="Scoredboard Y" start="144" end="152" type="uint"/>
   2385     <field name="Scoreboard X" start="128" end="136" type="uint"/>
   2386     <field name="Scoreboard Color" start="176" end="179" type="uint"/>
   2387     <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
   2388     <group count="0" start="192" size="32">
   2389       <field name="Inline Data" start="0" end="31" type="uint"/>
   2390     </group>
   2391   </instruction>
   2392 
   2393   <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16">
   2394     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2395     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2396     <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
   2397     <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
   2398     <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
   2399     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2400     <field name="Children Present" start="95" end="95" type="bool"/>
   2401     <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
   2402     <field name="PRT_FenceType" start="86" end="86" type="uint">
   2403       <value name="Root thread queue" value="0"/>
   2404       <value name="VFE state flush" value="1"/>
   2405     </field>
   2406     <group count="12" start="128" size="32">
   2407       <field name="Inline Data" start="0" end="31" type="uint"/>
   2408     </group>
   2409   </instruction>
   2410 
   2411   <instruction name="MEDIA_OBJECT_WALKER" bias="2">
   2412     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2413     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2414     <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
   2415     <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
   2416     <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
   2417     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2418     <field name="Children Present" start="95" end="95" type="uint"/>
   2419     <field name="Thread Synchronization" start="88" end="88" type="uint">
   2420       <value name="No thread synchronization" value="0"/>
   2421       <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
   2422     </field>
   2423     <field name="Use Scoreboard" start="85" end="85" type="uint">
   2424       <value name="Not using scoreboard" value="0"/>
   2425       <value name="Using scoreboard" value="1"/>
   2426     </field>
   2427     <field name="Indirect Data Length" start="64" end="80" type="uint"/>
   2428     <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
   2429     <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
   2430     <field name="Dual Mode" start="223" end="223" type="uint"/>
   2431     <field name="Repel" start="222" end="222" type="uint"/>
   2432     <field name="Quad Mode" start="221" end="221" type="uint"/>
   2433     <field name="Color Count Minus One" start="216" end="219" type="uint"/>
   2434     <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
   2435     <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
   2436     <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
   2437     <field name="Global Loop Exec Count" start="240" end="249" type="uint"/>
   2438     <field name="Local Loop Exec Count" start="224" end="233" type="uint"/>
   2439     <field name="Block Resolution Y" start="272" end="280" type="uint"/>
   2440     <field name="Block Resolution X" start="256" end="264" type="uint"/>
   2441     <field name="Local Start Y" start="304" end="312" type="uint"/>
   2442     <field name="Local Start X" start="288" end="296" type="uint"/>
   2443     <field name="Local Outer Loop Stride Y" start="368" end="377" type="int"/>
   2444     <field name="Local Outer Loop Stride X" start="352" end="361" type="int"/>
   2445     <field name="Local Inner Loop Unit Y" start="400" end="409" type="int"/>
   2446     <field name="Local Inner Loop Unit X" start="384" end="393" type="int"/>
   2447     <field name="Global Resolution Y" start="432" end="440" type="uint"/>
   2448     <field name="Global Resolution X" start="416" end="424" type="uint"/>
   2449     <field name="Global Start Y" start="464" end="473" type="int"/>
   2450     <field name="Global Start X" start="448" end="457" type="int"/>
   2451     <field name="Global Outer Loop Stride Y" start="496" end="505" type="int"/>
   2452     <field name="Global Outer Loop Stride X" start="480" end="489" type="int"/>
   2453     <field name="Global Inner Loop Unit Y" start="528" end="537" type="int"/>
   2454     <field name="Global Inner Loop Unit X" start="512" end="521" type="int"/>
   2455     <group count="0" start="544" size="32">
   2456       <field name="Inline Data" start="0" end="31" type="uint"/>
   2457     </group>
   2458   </instruction>
   2459 
   2460   <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2">
   2461     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2462     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2463     <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
   2464     <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
   2465     <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
   2466     <field name="Disable Preemption" start="40" end="40" type="bool"/>
   2467     <field name="Flush to GO" start="39" end="39" type="bool"/>
   2468     <field name="Watermark Required" start="38" end="38" type="uint"/>
   2469     <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
   2470   </instruction>
   2471 
   2472   <instruction name="MEDIA_VFE_STATE" bias="2" length="8">
   2473     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2474     <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
   2475     <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
   2476     <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
   2477     <field name="DWord Length" start="0" end="15" type="uint" default="6"/>
   2478     <field name="Scratch Space Base Pointer" start="42" end="63" type="address"/>
   2479     <field name="Stack Size" start="36" end="39" type="uint"/>
   2480     <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
   2481     <field name="Maximum Number of Threads" start="80" end="95" type="uint"/>
   2482     <field name="Number of URB Entries" start="72" end="79" type="uint"/>
   2483     <field name="Reset Gateway Timer" start="71" end="71" type="uint">
   2484       <value name="Maintaining the existing timestamp state" value="0"/>
   2485       <value name="Resetting relative timer and latching the global timestamp" value="1"/>
   2486     </field>
   2487     <field name="Bypass Gateway Control" start="70" end="70" type="uint">
   2488       <value name="Maintaining OpenGateway/ForwardMsg/CloseGateway protocol (legacy mode)" value="0"/>
   2489       <value name="Bypassing OpenGateway/CloseGateway protocol" value="1"/>
   2490     </field>
   2491     <field name="GPGPU Mode" start="66" end="66" type="uint"/>
   2492     <field name="Half-Slice Disable" start="96" end="97" type="uint"/>
   2493     <field name="URB Entry Allocation Size" start="144" end="159" type="uint"/>
   2494     <field name="CURBE Allocation Size" start="128" end="143" type="uint"/>
   2495     <field name="Scoreboard Enable" start="191" end="191" type="uint">
   2496       <value name="Scoreboard disabled" value="0"/>
   2497       <value name="Scoreboard enabled" value="1"/>
   2498     </field>
   2499     <field name="Scoreboard Type" start="190" end="190" type="uint">
   2500       <value name="Stalling Scoreboard" value="0"/>
   2501       <value name="Non-Stalling Scoreboard" value="1"/>
   2502     </field>
   2503     <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
   2504     <field name="Scoreboard 3 Delta Y" start="220" end="223" type="int"/>
   2505     <field name="Scoreboard 3 Delta X" start="216" end="219" type="int"/>
   2506     <field name="Scoreboard 2 Delta Y" start="212" end="215" type="int"/>
   2507     <field name="Scoreboard 2 Delta X" start="208" end="211" type="int"/>
   2508     <field name="Scoreboard 1 Delta Y" start="204" end="207" type="int"/>
   2509     <field name="Scoreboard 1 Delta X" start="200" end="203" type="int"/>
   2510     <field name="Scoreboard 0 Delta Y" start="196" end="199" type="int"/>
   2511     <field name="Scoreboard 0 Delta X" start="192" end="195" type="int"/>
   2512     <field name="Scoreboard 7 Delta Y" start="252" end="255" type="int"/>
   2513     <field name="Scoreboard 7 Delta X" start="248" end="251" type="int"/>
   2514     <field name="Scoreboard 6 Delta Y" start="244" end="247" type="int"/>
   2515     <field name="Scoreboard 6 Delta X" start="240" end="243" type="int"/>
   2516     <field name="Scoreboard 5 Delta Y" start="236" end="239" type="int"/>
   2517     <field name="Scoreboard 5 Delta X" start="232" end="235" type="int"/>
   2518     <field name="Scoreboard 4 Delta Y" start="228" end="231" type="int"/>
   2519     <field name="Scoreboard 4 Delta X" start="224" end="227" type="int"/>
   2520   </instruction>
   2521 
   2522   <instruction name="MI_ARB_CHECK" bias="1" length="1">
   2523     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2524     <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
   2525   </instruction>
   2526 
   2527   <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
   2528     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2529     <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
   2530     <field name="Arbitration Enable" start="0" end="0" type="bool"/>
   2531   </instruction>
   2532 
   2533   <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
   2534     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2535     <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
   2536   </instruction>
   2537 
   2538   <instruction name="MI_BATCH_BUFFER_START" bias="2" length="2">
   2539     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2540     <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
   2541     <field name="2nd Level Batch Buffer" start="22" end="22" type="uint">
   2542       <value name="1st level batch" value="0"/>
   2543       <value name="2nd level batch" value="1"/>
   2544     </field>
   2545     <field name="Add Offset Enable" start="16" end="16" type="bool"/>
   2546     <field name="Predication Enable" start="15" end="15" type="bool"/>
   2547     <field name="Non-Privileged" start="13" end="13" type="bool"/>
   2548     <field name="Clear Command Buffer Enable" start="11" end="11" type="bool"/>
   2549     <field name="Resource Streamer Enable" start="10" end="10" type="bool"/>
   2550     <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
   2551       <value name="GGTT" value="0"/>
   2552       <value name="PPGTT" value="1"/>
   2553     </field>
   2554     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2555     <field name="Batch Buffer Start Address" start="34" end="63" type="address"/>
   2556   </instruction>
   2557 
   2558   <instruction name="MI_CLFLUSH" bias="2">
   2559     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2560     <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
   2561     <field name="Use Global GTT" start="22" end="22" type="bool"/>
   2562     <field name="DWord Length" start="0" end="9" type="uint" default="1"/>
   2563     <field name="Page Base Address" start="44" end="63" type="address"/>
   2564     <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
   2565     <field name="Page Base Address High" start="64" end="79" type="address"/>
   2566     <group count="0" start="96" size="32">
   2567       <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
   2568     </group>
   2569   </instruction>
   2570 
   2571   <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="2">
   2572     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2573     <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
   2574     <field name="Use Global GTT" start="22" end="22" type="bool"/>
   2575     <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
   2576     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2577     <field name="Compare Data Dword" start="32" end="63" type="uint"/>
   2578     <field name="Compare Address" start="67" end="95" type="address"/>
   2579   </instruction>
   2580 
   2581   <instruction name="MI_FLUSH" bias="1" length="1">
   2582     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2583     <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
   2584     <field name="Indirect State Pointers Disable" start="5" end="5" type="bool"/>
   2585     <field name="Generic Media State Clear" start="4" end="4" type="bool"/>
   2586     <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
   2587       <value name="Don't Reset" value="0"/>
   2588       <value name="Reset" value="1"/>
   2589     </field>
   2590     <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
   2591       <value name="Flush" value="0"/>
   2592       <value name="Don't Flush" value="1"/>
   2593     </field>
   2594     <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
   2595       <value name="Don't Invalidate" value="0"/>
   2596       <value name="Invalidate" value="1"/>
   2597     </field>
   2598   </instruction>
   2599 
   2600   <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
   2601     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2602     <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
   2603     <field name="Byte Write Disables" start="8" end="11" type="uint"/>
   2604     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2605     <field name="Register Offset" start="34" end="54" type="offset"/>
   2606     <field name="Data DWord" start="64" end="95" type="uint"/>
   2607   </instruction>
   2608 
   2609   <instruction name="MI_LOAD_REGISTER_MEM" bias="2" length="3">
   2610     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2611     <field name="MI Command Opcode" start="23" end="28" type="uint" default="41"/>
   2612     <field name="Use Global GTT" start="22" end="22" type="bool"/>
   2613     <field name="Async Mode Enable" start="21" end="21" type="bool"/>
   2614     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2615     <field name="Register Address" start="34" end="54" type="offset"/>
   2616     <field name="Memory Address" start="66" end="95" type="address"/>
   2617   </instruction>
   2618 
   2619   <instruction name="MI_LOAD_REGISTER_REG" bias="2" length="3">
   2620     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2621     <field name="MI Command Opcode" start="23" end="28" type="uint" default="42"/>
   2622     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2623     <field name="Source Register Address" start="34" end="54" type="offset"/>
   2624     <field name="Destination Register Address" start="66" end="86" type="offset"/>
   2625   </instruction>
   2626 
   2627   <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2">
   2628     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2629     <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
   2630     <field name="Display (Plane) Select" start="19" end="21" type="uint">
   2631       <value name="Display Plane A" value="0"/>
   2632       <value name="Display Plane B" value="1"/>
   2633       <value name="Display Plane C" value="4"/>
   2634     </field>
   2635     <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
   2636     <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
   2637     <field name="End Scan Line Number" start="32" end="44" type="uint"/>
   2638   </instruction>
   2639 
   2640   <instruction name="MI_LOAD_SCAN_LINES_INCL" bias="2" length="2">
   2641     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2642     <field name="MI Command Opcode" start="23" end="28" type="uint" default="18"/>
   2643     <field name="Display (Plane) Select" start="19" end="21" type="uint">
   2644       <value name="Display Plane A" value="0"/>
   2645       <value name="Display Plane B" value="1"/>
   2646       <value name="Display Plane C" value="4"/>
   2647     </field>
   2648     <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
   2649     <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
   2650     <field name="End Scan Line Number" start="32" end="44" type="uint"/>
   2651   </instruction>
   2652 
   2653   <instruction name="MI_LOAD_URB_MEM" bias="2" length="3">
   2654     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2655     <field name="MI Command Opcode" start="23" end="28" type="uint" default="44"/>
   2656     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2657     <field name="URB Address" start="34" end="46" type="uint"/>
   2658     <field name="Memory Address" start="70" end="95" type="address"/>
   2659   </instruction>
   2660 
   2661   <instruction name="MI_MATH" bias="2">
   2662     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2663     <field name="MI Command Opcode" start="23" end="28" type="uint" default="26"/>
   2664     <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
   2665     <group count="0" start="32" size="32">
   2666       <field name="Instruction" start="0" end="31" type="MI_MATH_ALU_INSTRUCTION"/>
   2667     </group>
   2668   </instruction>
   2669 
   2670   <instruction name="MI_NOOP" bias="1" length="1">
   2671     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2672     <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
   2673     <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
   2674     <field name="Identification Number" start="0" end="21" type="uint"/>
   2675   </instruction>
   2676 
   2677   <instruction name="MI_PREDICATE" bias="1" length="1">
   2678     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2679     <field name="MI Command Opcode" start="23" end="28" type="uint" default="12"/>
   2680     <field name="Load Operation" start="6" end="7" type="uint" prefix="LOAD">
   2681       <value name="KEEP" value="0"/>
   2682       <value name="LOAD" value="2"/>
   2683       <value name="LOADINV" value="3"/>
   2684     </field>
   2685     <field name="Combine Operation" start="3" end="4" type="uint" prefix="COMBINE">
   2686       <value name="SET" value="0"/>
   2687       <value name="AND" value="1"/>
   2688       <value name="OR" value="2"/>
   2689       <value name="XOR" value="3"/>
   2690     </field>
   2691     <field name="Compare Operation" start="0" end="1" type="uint" prefix="COMPARE">
   2692       <value name="SRCS_EQUAL" value="2"/>
   2693       <value name="DELTAS_EQUAL" value="3"/>
   2694     </field>
   2695   </instruction>
   2696 
   2697   <instruction name="MI_REPORT_HEAD" bias="1" length="1">
   2698     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2699     <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
   2700   </instruction>
   2701 
   2702   <instruction name="MI_REPORT_PERF_COUNT" bias="2" length="3">
   2703     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2704     <field name="MI Command Opcode" start="23" end="28" type="uint" default="40"/>
   2705     <field name="DWord Length" start="0" end="5" type="uint" default="1"/>
   2706     <field name="Memory Address" start="38" end="63" type="address"/>
   2707     <field name="Core Mode Enable" start="36" end="36" type="uint"/>
   2708     <field name="Use Global GTT" start="32" end="32" type="bool"/>
   2709     <field name="Report ID" start="64" end="95" type="uint"/>
   2710   </instruction>
   2711 
   2712   <instruction name="MI_RS_CONTEXT" bias="1" length="1">
   2713     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2714     <field name="MI Command Opcode" start="23" end="28" type="uint" default="15"/>
   2715     <field name="Resource Streamer Save" start="0" end="0" type="uint" prefix="RS">
   2716       <value name="Restore" value="0"/>
   2717       <value name="Save" value="1"/>
   2718     </field>
   2719   </instruction>
   2720 
   2721   <instruction name="MI_RS_CONTROL" bias="1" length="1">
   2722     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2723     <field name="MI Command Opcode" start="23" end="28" type="uint" default="6"/>
   2724     <field name="Resource Streamer Control" start="0" end="0" type="uint" prefix="RS">
   2725       <value name="Stop" value="0"/>
   2726       <value name="Start" value="1"/>
   2727     </field>
   2728   </instruction>
   2729 
   2730   <instruction name="MI_RS_STORE_DATA_IMM" bias="2" length="4">
   2731     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2732     <field name="MI Command Opcode" start="23" end="28" type="uint" default="43"/>
   2733     <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
   2734     <field name="Destination Address" start="66" end="95" type="address"/>
   2735     <field name="Core Mode Enable" start="64" end="64" type="uint"/>
   2736     <field name="Data DWord 0" start="96" end="127" type="uint"/>
   2737   </instruction>
   2738 
   2739   <instruction name="MI_SEMAPHORE_MBOX" bias="2" length="3">
   2740     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2741     <field name="MI Command Opcode" start="23" end="28" type="uint" default="22"/>
   2742     <field name="Register Select" start="16" end="17" type="uint">
   2743       <value name="RVSYNC" value="0"/>
   2744       <value name="RVESYNC" value="1"/>
   2745       <value name="RBSYNC" value="2"/>
   2746       <value name="Use General Register Select" value="3"/>
   2747     </field>
   2748     <field name="General Register Select" start="8" end="13" type="uint"/>
   2749     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2750     <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
   2751   </instruction>
   2752 
   2753   <instruction name="MI_SET_CONTEXT" bias="2" length="2">
   2754     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2755     <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
   2756     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2757     <field name="Logical Context Address" start="44" end="63" type="address"/>
   2758     <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
   2759     <field name="Core Mode Enable" start="36" end="36" type="bool"/>
   2760     <field name="Resource Streamer State Save Enable" start="35" end="35" type="bool"/>
   2761     <field name="Resource Streamer State Restore Enable" start="34" end="34" type="bool"/>
   2762     <field name="Force Restore" start="33" end="33" type="uint"/>
   2763     <field name="Restore Inhibit" start="32" end="32" type="uint"/>
   2764   </instruction>
   2765 
   2766   <instruction name="MI_SET_PREDICATE" bias="1" length="1">
   2767     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2768     <field name="MI Command Opcode" start="23" end="28" type="uint" default="1"/>
   2769     <field name="PREDICATE ENABLE" start="0" end="1" type="bool" default="6"/>
   2770   </instruction>
   2771 
   2772   <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
   2773     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2774     <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
   2775     <field name="Use Global GTT" start="22" end="22" type="bool"/>
   2776     <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
   2777     <field name="Address" start="66" end="95" type="address"/>
   2778     <field name="Core Mode Enable" start="64" end="64" type="uint"/>
   2779     <field name="Immediate Data" start="96" end="159" type="uint"/>
   2780   </instruction>
   2781 
   2782   <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
   2783     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2784     <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
   2785     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2786     <field name="Offset" start="34" end="43" type="uint"/>
   2787     <field name="Data DWord 0" start="64" end="95" type="uint"/>
   2788     <field name="Data DWord 1" start="96" end="127" type="uint"/>
   2789   </instruction>
   2790 
   2791   <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
   2792     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2793     <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
   2794     <field name="Use Global GTT" start="22" end="22" type="bool"/>
   2795     <field name="Predicate Enable" start="21" end="21" type="bool"/>
   2796     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2797     <field name="Register Address" start="34" end="54" type="offset"/>
   2798     <field name="Memory Address" start="66" end="95" type="address"/>
   2799   </instruction>
   2800 
   2801   <instruction name="MI_STORE_URB_MEM" bias="2" length="3">
   2802     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2803     <field name="MI Command Opcode" start="23" end="28" type="uint" default="45"/>
   2804     <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
   2805     <field name="URB Address" start="34" end="46" type="uint"/>
   2806     <field name="Memory Address" start="70" end="95" type="address"/>
   2807   </instruction>
   2808 
   2809   <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
   2810     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2811     <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
   2812     <field name="Suspend Flush" start="0" end="0" type="bool"/>
   2813   </instruction>
   2814 
   2815   <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
   2816     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2817     <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
   2818     <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
   2819   </instruction>
   2820 
   2821   <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1">
   2822     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2823     <field name="MI Command Opcode" start="23" end="28" type="uint" default="9"/>
   2824     <field name="URB Atomic Storage Offset" start="12" end="19" type="uint"/>
   2825     <field name="URB Atomic Storage Size" start="0" end="8" type="uint"/>
   2826   </instruction>
   2827 
   2828   <instruction name="MI_URB_CLEAR" bias="2" length="2">
   2829     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2830     <field name="MI Command Opcode" start="23" end="28" type="uint" default="25"/>
   2831     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2832     <field name="URB Clear Length" start="48" end="61" type="uint"/>
   2833     <field name="URB Address" start="32" end="46" type="offset"/>
   2834   </instruction>
   2835 
   2836   <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
   2837     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2838     <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
   2839   </instruction>
   2840 
   2841   <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1">
   2842     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
   2843     <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
   2844     <field name="Display Pipe C Horizontal Blank Wait Enable" start="22" end="22" type="bool"/>
   2845     <field name="Display Pipe C Vertical Blank Wait Enable" start="21" end="21" type="bool"/>
   2846     <field name="Display Sprite C Flip Pending Wait Enable" start="20" end="20" type="bool"/>
   2847     <field name="Condition Code Wait Select" start="16" end="19" type="uint">
   2848       <value name="Not enabled" value="0"/>
   2849     </field>
   2850     <field name="Display Plane C Flip Pending Wait Enable" start="15" end="15" type="bool"/>
   2851     <field name="Display Pipe C Scan Line Wait Enable" start="14" end="14" type="bool"/>
   2852     <field name="Display Pipe B Horizontal Blank Wait Enable" start="13" end="13" type="bool"/>
   2853     <field name="Display Pipe B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
   2854     <field name="Display Sprite B Flip Pending Wait Enable" start="10" end="10" type="bool"/>
   2855     <field name="Display Plane B Flip Pending Wait Enable" start="9" end="9" type="bool"/>
   2856     <field name="Display Pipe B Scan Line Wait Enable" start="8" end="8" type="bool"/>
   2857     <field name="Display Pipe A Horizontal Blank Wait Enable" start="5" end="5" type="bool"/>
   2858     <field name="Display Pipe A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
   2859     <field name="Display Sprite A Flip Pending Wait Enable" start="2" end="2" type="bool"/>
   2860     <field name="Display Plane A Flip Pending Wait Enable" start="1" end="1" type="bool"/>
   2861     <field name="Display Pipe A Scan Line Wait Enable" start="0" end="0" type="bool"/>
   2862   </instruction>
   2863 
   2864   <instruction name="PIPELINE_SELECT" bias="1" length="1">
   2865     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2866     <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
   2867     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   2868     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
   2869     <field name="Pipeline Selection" start="0" end="1" type="uint">
   2870       <value name="3D" value="0"/>
   2871       <value name="Media" value="1"/>
   2872       <value name="GPGPU" value="2"/>
   2873     </field>
   2874   </instruction>
   2875 
   2876   <instruction name="PIPE_CONTROL" bias="2" length="5">
   2877     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2878     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
   2879     <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
   2880     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
   2881     <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
   2882     <field name="Destination Address Type" start="56" end="56" type="uint" prefix="DAT">
   2883       <value name="PPGTT" value="0"/>
   2884       <value name="GGTT" value="1"/>
   2885     </field>
   2886     <field name="LRI Post Sync Operation" start="55" end="55" type="uint">
   2887       <value name="No LRI Operation" value="0"/>
   2888       <value name="MMIO Write Immediate Data" value="1"/>
   2889     </field>
   2890     <field name="Store Data Index" start="53" end="53" type="uint"/>
   2891     <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
   2892     <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
   2893     <field name="TLB Invalidate" start="50" end="50" type="bool"/>
   2894     <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
   2895     <field name="Post Sync Operation" start="46" end="47" type="uint">
   2896       <value name="No Write" value="0"/>
   2897       <value name="Write Immediate Data" value="1"/>
   2898       <value name="Write PS Depth Count" value="2"/>
   2899       <value name="Write Timestamp" value="3"/>
   2900     </field>
   2901     <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
   2902     <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
   2903     <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
   2904     <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
   2905     <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
   2906     <field name="Notify Enable" start="40" end="40" type="bool"/>
   2907     <field name="Pipe Control Flush Enable" start="39" end="39" type="bool"/>
   2908     <field name="DC Flush Enable" start="37" end="37" type="bool"/>
   2909     <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
   2910     <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
   2911     <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
   2912     <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
   2913     <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
   2914     <field name="Address" start="66" end="95" type="address"/>
   2915     <field name="Immediate Data" start="96" end="159" type="uint"/>
   2916   </instruction>
   2917 
   2918   <instruction name="STATE_BASE_ADDRESS" bias="2" length="10">
   2919     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2920     <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
   2921     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   2922     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
   2923     <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
   2924     <field name="General State Base Address" start="44" end="63" type="address"/>
   2925     <field name="General State Memory Object Control State" start="40" end="43" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2926     <field name="Stateless Data Port Access Memory Object Control State" start="36" end="39" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2927     <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
   2928     <field name="Surface State Base Address" start="76" end="95" type="address"/>
   2929     <field name="Surface State Memory Object Control State" start="72" end="75" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2930     <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
   2931     <field name="Dynamic State Base Address" start="108" end="127" type="address"/>
   2932     <field name="Dynamic State Memory Object Control State" start="104" end="107" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2933     <field name="Dynamic State Base Address Modify Enable" start="96" end="96" type="bool"/>
   2934     <field name="Indirect Object Base Address" start="140" end="159" type="address"/>
   2935     <field name="Indirect Object Memory Object Control State" start="136" end="139" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2936     <field name="Indirect Object Base Address Modify Enable" start="128" end="128" type="bool"/>
   2937     <field name="Instruction Base Address" start="172" end="191" type="address"/>
   2938     <field name="Instruction Memory Object Control State" start="168" end="171" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2939     <field name="Instruction Base Address Modify Enable" start="160" end="160" type="bool"/>
   2940     <field name="General State Access Upper Bound" start="204" end="223" type="address"/>
   2941     <field name="General State Access Upper Bound Modify Enable" start="192" end="192" type="bool"/>
   2942     <field name="Dynamic State Access Upper Bound" start="236" end="255" type="address"/>
   2943     <field name="Dynamic State Access Upper Bound Modify Enable" start="224" end="224" type="bool"/>
   2944     <field name="Indirect Object Access Upper Bound" start="268" end="287" type="address"/>
   2945     <field name="Indirect Object Access Upper Bound Modify Enable" start="256" end="256" type="bool"/>
   2946     <field name="Instruction Access Upper Bound" start="300" end="319" type="address"/>
   2947     <field name="Instruction Access Upper Bound Modify Enable" start="288" end="288" type="bool"/>
   2948   </instruction>
   2949 
   2950   <instruction name="STATE_PREFETCH" bias="2" length="2">
   2951     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2952     <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
   2953     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
   2954     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
   2955     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2956     <field name="Prefetch Pointer" start="38" end="63" type="address"/>
   2957     <field name="Prefetch Count" start="32" end="34" type="uint"/>
   2958   </instruction>
   2959 
   2960   <instruction name="STATE_SIP" bias="2" length="2">
   2961     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2962     <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
   2963     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   2964     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
   2965     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2966     <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
   2967   </instruction>
   2968 
   2969   <instruction name="SWTESS_BASE_ADDRESS" bias="2" length="2">
   2970     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
   2971     <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
   2972     <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
   2973     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
   2974     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
   2975     <field name="SW Tessellation Base Address" start="44" end="63" type="address"/>
   2976     <field name="SW Tessellation Memory Object Control State" start="40" end="43" type="MEMORY_OBJECT_CONTROL_STATE"/>
   2977   </instruction>
   2978 
   2979   <register name="IA_VERTICES_COUNT" length="2" num="0x2310">
   2980     <field name="IA Vertices Count Report" start="0" end="63" type="uint"/>
   2981   </register>
   2982 
   2983   <register name="IA_PRIMITIVES_COUNT" length="2" num="0x2318">
   2984     <field name="IA Primitives Count Report" start="0" end="63" type="uint"/>
   2985   </register>
   2986 
   2987   <register name="VS_INVOCATION_COUNT" length="2" num="0x2320">
   2988     <field name="VS Invocation Count Report" start="0" end="63" type="uint"/>
   2989   </register>
   2990 
   2991   <register name="HS_INVOCATION_COUNT" length="2" num="0x2300">
   2992     <field name="HS Invocation Count Report" start="0" end="63" type="uint"/>
   2993   </register>
   2994 
   2995   <register name="DS_INVOCATION_COUNT" length="2" num="0x2308">
   2996     <field name="DS Invocation Count Report" start="0" end="63" type="uint"/>
   2997   </register>
   2998 
   2999   <register name="GS_INVOCATION_COUNT" length="2" num="0x2328">
   3000     <field name="GS Invocation Count Report" start="0" end="63" type="uint"/>
   3001   </register>
   3002 
   3003   <register name="GS_PRIMITIVES_COUNT" length="2" num="0x2330">
   3004     <field name="GS Primitives Count Report" start="0" end="63" type="uint"/>
   3005   </register>
   3006 
   3007   <register name="CL_INVOCATION_COUNT" length="2" num="0x2338">
   3008     <field name="CL Invocation Count Report" start="0" end="63" type="uint"/>
   3009   </register>
   3010 
   3011   <register name="CL_PRIMITIVES_COUNT" length="2" num="0x2340">
   3012     <field name="CL Primitives Count Report" start="0" end="63" type="uint"/>
   3013   </register>
   3014 
   3015   <register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
   3016     <field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
   3017   </register>
   3018 
   3019   <register name="CS_INVOCATION_COUNT" length="2" num="0x2290">
   3020     <field name="CS Invocation Count Report" start="0" end="63" type="uint"/>
   3021   </register>
   3022 
   3023   <register name="BCS_INSTDONE" length="1" num="0x2206c">
   3024     <field name="Ring Enable" start="0" end="0" type="bool"/>
   3025     <field name="Blitter IDLE" start="1" end="1" type="bool" default="1"/>
   3026     <field name="GAB IDLE" start="2" end="2" type="bool" default="1"/>
   3027     <field name="BCS Done" start="3" end="3" type="bool" default="1"/>
   3028   </register>
   3029 
   3030   <register name="INSTDONE_1" length="1" num="0x206c">
   3031     <field name="PRB0 Ring Enable" start="0" end="0" type="bool"/>
   3032     <field name="VFG Done" start="1" end="1" type="bool"/>
   3033     <field name="VS Done" start="2" end="2" type="bool"/>
   3034     <field name="HS Done" start="3" end="3" type="bool"/>
   3035     <field name="TE Done" start="4" end="4" type="bool"/>
   3036     <field name="DS Done" start="5" end="5" type="bool"/>
   3037     <field name="GS Done" start="6" end="6" type="bool"/>
   3038     <field name="SOL Done" start="7" end="7" type="bool"/>
   3039     <field name="CL Done" start="8" end="8" type="bool"/>
   3040     <field name="SF Done" start="9" end="9" type="bool"/>
   3041     <field name="TDG Done" start="12" end="12" type="bool"/>
   3042     <field name="URBM Done" start="13" end="13" type="bool"/>
   3043     <field name="SVG Done" start="14" end="14" type="bool"/>
   3044     <field name="GAFS Done" start="15" end="15" type="bool"/>
   3045     <field name="VFE Done" start="16" end="16" type="bool"/>
   3046     <field name="TSG Done" start="17" end="17" type="bool"/>
   3047     <field name="GAFM Done" start="18" end="18" type="bool"/>
   3048     <field name="GAM Done" start="19" end="19" type="bool"/>
   3049     <field name="RS Done" start="20" end="20" type="bool"/>
   3050     <field name="CS Done" start="21" end="21" type="bool"/>
   3051     <field name="SDE Done" start="22" end="22" type="bool"/>
   3052     <field name="RCCFBC CS Done" start="23" end="23" type="bool"/>
   3053   </register>
   3054 
   3055   <register name="VCS_INSTDONE" length="1" num="0x1206c">
   3056     <field name="Ring Enable" start="0" end="0" type="bool"/>
   3057     <field name="USB Done" start="1" end="1" type="uint" default="1"/>
   3058     <field name="QRC Done" start="2" end="2" type="uint" default="1"/>
   3059     <field name="SEC Done" start="3" end="3" type="uint" default="1"/>
   3060     <field name="MPC Done" start="4" end="4" type="uint" default="1"/>
   3061     <field name="VFT Done" start="5" end="5" type="uint" default="1"/>
   3062     <field name="BSP Done" start="6" end="6" type="uint" default="1"/>
   3063     <field name="VLF Done" start="7" end="7" type="uint" default="1"/>
   3064     <field name="VOP Done" start="8" end="8" type="uint" default="1"/>
   3065     <field name="VMC Done" start="9" end="9" type="uint" default="1"/>
   3066     <field name="VIP Done" start="10" end="10" type="uint" default="1"/>
   3067     <field name="VIT Done" start="11" end="11" type="uint" default="1"/>
   3068     <field name="VDS Done" start="12" end="12" type="uint" default="1"/>
   3069     <field name="VMX Done" start="13" end="13" type="uint" default="1"/>
   3070     <field name="VCP Done" start="14" end="14" type="uint" default="1"/>
   3071     <field name="VCD Done" start="15" end="15" type="uint" default="1"/>
   3072     <field name="VAD Done" start="16" end="16" type="uint" default="1"/>
   3073     <field name="VMD Done" start="17" end="17" type="uint" default="1"/>
   3074     <field name="VIS Done" start="18" end="18" type="uint" default="1"/>
   3075     <field name="VAC Done" start="19" end="19" type="uint" default="1"/>
   3076     <field name="VAM Done" start="20" end="20" type="uint" default="1"/>
   3077     <field name="JPG Done" start="21" end="21" type="uint" default="1"/>
   3078     <field name="VBP Done" start="22" end="22" type="uint" default="1"/>
   3079     <field name="VHR Done" start="23" end="23" type="uint" default="1"/>
   3080     <field name="VCI Done" start="24" end="24" type="uint" default="1"/>
   3081     <field name="VCR Done" start="25" end="25" type="uint" default="1"/>
   3082     <field name="VIN Done" start="26" end="26" type="uint" default="1"/>
   3083     <field name="VPR Done" start="27" end="27" type="uint" default="1"/>
   3084     <field name="VTQ Done" start="28" end="28" type="uint" default="1"/>
   3085     <field name="Reserved" start="29" end="29" type="uint" default="1"/>
   3086     <field name="VCS Done" start="30" end="30" type="uint" default="1"/>
   3087     <field name="GAC Done" start="31" end="31" type="uint" default="1"/>
   3088   </register>
   3089 
   3090   <register name="VECS_INSTDONE" length="1" num="0x1a06c">
   3091     <field name="Ring Enable" start="0" end="0" type="bool"/>
   3092     <field name="VECS Done" start="30" end="30" type="uint" default="1"/>
   3093     <field name="GAM Done" start="31" end="31" type="uint" default="1"/>
   3094   </register>
   3095 
   3096   <register name="L3SQCREG1" length="1" num="0xb010">
   3097     <field name="Convert DC_UC" start="24" end="24" type="uint"/>
   3098     <field name="Convert IS_UC" start="25" end="25" type="uint"/>
   3099     <field name="Convert C_UC" start="26" end="26" type="uint"/>
   3100     <field name="Convert T_UC" start="27" end="27" type="uint"/>
   3101   </register>
   3102 
   3103   <register name="L3CNTLREG2" length="1" num="0xb020">
   3104     <field name="SLM Enable" start="0" end="0" type="uint"/>
   3105     <field name="URB Allocation" start="1" end="6" type="uint"/>
   3106     <field name="URB Low Bandwidth" start="7" end="7" type="uint"/>
   3107     <field name="RO Allocation" start="14" end="19" type="uint"/>
   3108     <field name="RO Low Bandwidth" start="20" end="20" type="uint"/>
   3109     <field name="DC Allocation" start="21" end="26" type="uint"/>
   3110     <field name="DC Low Bandwidth" start="27" end="27" type="uint"/>
   3111   </register>
   3112 
   3113   <register name="L3CNTLREG3" length="1" num="0xb024">
   3114     <field name="IS Allocation" start="1" end="6" type="uint"/>
   3115     <field name="IS Low Bandwidth" start="7" end="7" type="uint"/>
   3116     <field name="C Allocation" start="8" end="13" type="uint"/>
   3117     <field name="C Low Bandwidth" start="14" end="14" type="uint"/>
   3118     <field name="T Allocation" start="15" end="20" type="uint"/>
   3119     <field name="T Low Bandwidth" start="21" end="21" type="uint"/>
   3120   </register>
   3121 
   3122   <register name="SCRATCH1" length="1" num="0xb038">
   3123     <field name="L3 Atomic Disable" start="27" end="27" type="uint"/>
   3124   </register>
   3125 
   3126   <register name="CHICKEN3" length="1" num="0xe49c">
   3127     <field name="L3 Atomic Disable" start="6" end="6" type="uint"/>
   3128     <field name="L3 Atomic Disable Mask" start="22" end="22" type="uint"/>
   3129   </register>
   3130 
   3131   <register name="SO_WRITE_OFFSET0" length="1" num="0x5280">
   3132     <field name="Write Offset" start="2" end="31" type="offset"/>
   3133   </register>
   3134 
   3135   <register name="SO_WRITE_OFFSET1" length="1" num="0x5284">
   3136     <field name="Write Offset" start="2" end="31" type="offset"/>
   3137   </register>
   3138 
   3139   <register name="SO_WRITE_OFFSET2" length="1" num="0x5288">
   3140     <field name="Write Offset" start="2" end="31" type="offset"/>
   3141   </register>
   3142 
   3143   <register name="SO_WRITE_OFFSET3" length="1" num="0x528c">
   3144     <field name="Write Offset" start="2" end="31" type="offset"/>
   3145   </register>
   3146 
   3147   <register name="GFX_ARB_ERROR_RPT" length="1" num="0x40a0">
   3148     <field name="TLB Page Fault Error" start="0" end="0" type="bool"/>
   3149     <field name="Context Page Fault Error" start="1" end="1" type="bool"/>
   3150     <field name="Invalid Page Directory entry error" start="2" end="2" type="bool"/>
   3151     <field name="Hardware Status Page Fault Error" start="3" end="3" type="bool"/>
   3152     <field name="TLB Page VTD Translation Error" start="4" end="4" type="bool"/>
   3153     <field name="Context Page VTD Translation Error" start="5" end="5" type="bool"/>
   3154     <field name="Page Directory Entry VTD Translation Error" start="6" end="6" type="bool"/>
   3155     <field name="Hardware Status Page VTD Translation Error" start="7" end="7" type="bool"/>
   3156     <field name="Unloaded PD Error" start="8" end="8" type="bool"/>
   3157     <field name="Pending Page Faults" start="9" end="15" type="uint"/>
   3158   </register>
   3159 
   3160   <register name="ERR_INT" length="1" num="0x44040">
   3161     <field name="Primary A GTT Fault Status" start="0" end="0" type="bool"/>
   3162     <field name="Primary B GTT Fault Status" start="1" end="1" type="bool"/>
   3163     <field name="Sprite A GTT Fault Status" start="2" end="2" type="bool"/>
   3164     <field name="Sprite B GTT Fault Status" start="3" end="3" type="bool"/>
   3165     <field name="Cursor A GTT Fault Status" start="4" end="4" type="bool"/>
   3166     <field name="Cursor B GTT Fault Status" start="5" end="5" type="bool"/>
   3167     <field name="Invalid page table entry data" start="6" end="6" type="bool"/>
   3168     <field name="Invalid GTT page table entry" start="7" end="7" type="bool"/>
   3169   </register>
   3170 
   3171   <register name="BCS_FAULT_REG" length="1" num="0x4294">
   3172     <field name="Valid Bit" start="0" end="0" type="bool"/>
   3173     <field name="Fault Type" start="1" end="2" type="uint">
   3174       <value name="Page Fault" value="0"/>
   3175       <value name="Invalid PD Fault" value="1"/>
   3176       <value name="Unloaded PD Fault" value="2"/>
   3177       <value name="Invalid and Unloaded PD fault" value="3"/>
   3178     </field>
   3179     <field name= "SRCID of Fault" start="3" end="10" type="uint"/>
   3180     <field name="GTTSEL" start="11" end="1" type="uint">
   3181       <value name="PPGTT" value="0"/>
   3182       <value name="GGTT" value="1"/>
   3183     </field>
   3184     <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
   3185   </register>
   3186 
   3187   <register name="RCS_FAULT_REG" length="1" num="0x4094">
   3188     <field name="Valid Bit" start="0" end="0" type="bool"/>
   3189     <field name="Fault Type" start="1" end="2" type="uint">
   3190       <value name="Page Fault" value="0"/>
   3191       <value name="Invalid PD Fault" value="1"/>
   3192       <value name="Unloaded PD Fault" value="2"/>
   3193       <value name="Invalid and Unloaded PD fault" value="3"/>
   3194     </field>
   3195     <field name= "SRCID of Fault" start="3" end="10" type="uint"/>
   3196     <field name="GTTSEL" start="11" end="1" type="uint">
   3197       <value name="PPGTT" value="0"/>
   3198       <value name="GGTT" value="1"/>
   3199     </field>
   3200     <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
   3201   </register>
   3202 
   3203   <register name="VECS_FAULT_REG" length="1" num="0x4394">
   3204     <field name="Valid Bit" start="0" end="0" type="bool"/>
   3205     <field name="Fault Type" start="1" end="2" type="uint">
   3206       <value name="Page Fault" value="0"/>
   3207       <value name="Invalid PD Fault" value="1"/>
   3208       <value name="Unloaded PD Fault" value="2"/>
   3209       <value name="Invalid and Unloaded PD fault" value="3"/>
   3210     </field>
   3211     <field name= "SRCID of Fault" start="3" end="10" type="uint"/>
   3212     <field name="GTTSEL" start="11" end="1" type="uint">
   3213       <value name="PPGTT" value="0"/>
   3214       <value name="GGTT" value="1"/>
   3215     </field>
   3216     <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
   3217   </register>
   3218 
   3219   <register name="VCS_FAULT_REG" length="1" num="0x4194">
   3220     <field name="Valid Bit" start="0" end="0" type="bool"/>
   3221     <field name="Fault Type" start="1" end="2" type="uint">
   3222       <value name="Page Fault" value="0"/>
   3223       <value name="Invalid PD Fault" value="1"/>
   3224       <value name="Unloaded PD Fault" value="2"/>
   3225       <value name="Invalid and Unloaded PD fault" value="3"/>
   3226     </field>
   3227     <field name= "SRCID of Fault" start="3" end="10" type="uint"/>
   3228     <field name="GTTSEL" start="11" end="1" type="uint">
   3229       <value name="PPGTT" value="0"/>
   3230       <value name="GGTT" value="1"/>
   3231     </field>
   3232     <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
   3233   </register>
   3234 
   3235   <register name="BCS_RING_BUFFER_CTL" length="1" num="0x2203c">
   3236     <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
   3237     <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
   3238       <value name="MI_AUTOREPORT_OFF" value="0"/>
   3239       <value name="MI_AUTOREPORT_64KB" value="1"/>
   3240       <value name="MI_AUTOREPORT_4KB" value="2"/>
   3241       <value name="MI_AUTOREPORT_128KB" value="3"/>
   3242     </field>
   3243     <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
   3244     <field name="Semaphore Wait" start="10" end="10" type="bool"/>
   3245     <field name="RBWait" start="11" end="11" type="bool"/>
   3246     <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
   3247   </register>
   3248 
   3249   <register name="RCS_RING_BUFFER_CTL" length="1" num="0x203c">
   3250     <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
   3251     <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
   3252       <value name="MI_AUTOREPORT_OFF" value="0"/>
   3253       <value name="MI_AUTOREPORT_64KBMI_AUTOREPORT_4KB" value="1"/>
   3254       <value name="MI_AUTOREPORT_128KB" value="3"/>
   3255     </field>
   3256     <field name="Semaphore Wait" start="10" end="10" type="bool"/>
   3257     <field name="RBWait" start="11" end="11" type="bool"/>
   3258     <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
   3259   </register>
   3260 
   3261   <register name="VECS_RING_BUFFER_CTL" length="1" num="0x1A03c">
   3262     <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
   3263     <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
   3264       <value name="MI_AUTOREPORT_OFF" value="0"/>
   3265       <value name="MI_AUTOREPORT_64KB" value="1"/>
   3266       <value name="MI_AUTOREPORT_4KB" value="2"/>
   3267       <value name="MI_AUTOREPORT_128KB" value="3"/>
   3268     </field>
   3269     <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
   3270     <field name="Semaphore Wait" start="10" end="10" type="bool"/>
   3271     <field name="RBWait" start="11" end="11" type="bool"/>
   3272     <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
   3273   </register>
   3274 
   3275   <register name="VCS_RING_BUFFER_CTL" length="1" num="0x1203c">
   3276     <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
   3277     <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
   3278       <value name="MI_AUTOREPORT_OFF" value="0"/>
   3279       <value name="MI_AUTOREPORT_64KB" value="1"/>
   3280       <value name="MI_AUTOREPORT_4KB" value="2"/>
   3281       <value name="MI_AUTOREPORT_128KB" value="3"/>
   3282     </field>
   3283     <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
   3284     <field name="Semaphore Wait" start="10" end="10" type="bool"/>
   3285     <field name="RBWait" start="11" end="11" type="bool"/>
   3286     <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
   3287   </register>
   3288 
   3289 </genxml>
   3290