summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml/gen5.xml
blob: 97c1369967373a661d9d7101fc56d375757b5044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" ?>
<genxml name="ILK" gen="5">
  <struct name="RENDER_SURFACE_STATE" length="6">
    <field name="Surface Type" start="29" end="31" type="uint">
      <value name="SURFTYPE_1D" value="0"/>
      <value name="SURFTYPE_2D" value="1"/>
      <value name="SURFTYPE_3D" value="2"/>
      <value name="SURFTYPE_CUBE" value="3"/>
      <value name="SURFTYPE_BUFFER" value="4"/>
      <value name="SURFTYPE_NULL" value="7"/>
    </field>
    <field name="Data Return Format" start="27" end="27" type="uint">
      <value name="DATA_RETURN_FLOAT32" value="0"/>
      <value name="DATA_RETURN_S1.14" value="1"/>
    </field>
    <field name="Surface Format" start="18" end="26" type="uint"/>
    <field name="Color Buffer Component Write Disables" start="14" end="17" type="uint">
      <value name="WRITEDISABLE_ALPHA" value="8"/>
      <value name="WRITEDISABLE_RED" value="4"/>
      <value name="WRITEDISABLE_GREEN" value="2"/>
      <value name="WRITEDISABLE_BLUE" value="1"/>
    </field>
    <field name="Color Blend Enable" start="13" end="13" type="bool"/>
    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
    <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
      <value name="MIPLAYOUT_BELOW" value="0"/>
      <value name="MIPLAYOUT_RIGHT" value="1"/>
    </field>
    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
      <value name="WRITE_ONLY" value="0"/>
      <value name="READ_WRITE" value="1"/>
    </field>
    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
      <value name="NORMAL_MODE" value="0"/>
      <value name="PROGRESSIVE_FRAME" value="2"/>
      <value name="INTERLACED_FRAME" value="3"/>
    </field>
    <field name="Cube Face Enables" start="0" end="5" type="uint"/>
    <field name="Surface Base Address" start="32" end="63" type="address"/>
    <field name="Height" start="83" end="95" type="uint"/>
    <field name="Width" start="70" end="82" type="uint"/>
    <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
    <field name="Depth" start="117" end="127" type="uint"/>
    <field name="Surface Pitch" start="99" end="115" type="uint"/>
    <field name="Tiled Surface" start="97" end="97" type="uint"/>
    <field name="Tile Walk" start="96" end="96" type="uint">
      <value name="TILEWALK_XMAJOR" value="0"/>
      <value name="TILEWALK_YMAJOR" value="1"/>
    </field>
    <field name="Surface Min LOD" start="156" end="159" type="uint"/>
    <field name="Minimum Array Element" start="145" end="155" type="uint"/>
    <field name="Render Target View Extent" start="136" end="144" type="uint"/>
    <field name="X Offset" start="185" end="191" type="uint"/>
    <field name="Y Offset" start="180" end="183" type="uint"/>
  </struct>

  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="5">
    <!-- The hardware docs incorrectly say length is 6. The actual length is 5. -->
    <!-- DWord 0 -->
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
    <!-- DWord 1 -->
    <field name="Surface Type" start="61" end="63" type="uint">
      <value name="SURFTYPE_1D" value="0"/>
      <value name="SURFTYPE_2D" value="1"/>
      <value name="SURFTYPE_3D" value="2"/>
      <value name="SURFTYPE_CUBE" value="3"/>
      <value name="SURFTYPE_NULL" value="7"/>
    </field>
    <field name="Tiled Surface" start="59" end="59" type="bool"/>
    <field name="Tile Walk" start="58" end="58" type="uint">
      <value name="TILEWALK_YMAJOR" value="1"/>
    </field>
    <field name="Software Tiled Rendering Mode" start="55" end="56" type="uint">
      <value name="NORMAL" value="0"/>
      <value name="STR1" value="1"/>
      <value name="STR2" value="3"/>
    </field>
    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
    <field name="Separate Stencil Buffer Enable" start="53" end="53" type="bool"/>
    <field name="Surface Format" start="50" end="52" type="uint">
      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
      <value name="D32_FLOAT" value="1"/>
      <value name="D24_UNORM_S8_UINT" value="2"/>
      <value name="D24_UNORM_X8_UINT" value="3"/>
      <value name="D16_UNORM" value="5"/>
    </field>
    <field name="Surface Pitch" start="32" end="48" type="uint"/>
    <!-- DWord 2 -->
    <field name="Surface Base Address" start="64" end="95" type="address"/>
    <!-- DWord 3 -->
    <field name="Height" start="115" end="127" type="uint"/>
    <field name="Width" start="102" end="114" type="uint"/>
    <field name="LOD" start="98" end="101" type="uint"/>
    <field name="MIP Map Layout Mode" start="97" end="97" type="uint">
      <value name="MIPLAYOUT_BELOW" value="0"/>
      <value name="MIPLAYOUT_RIGHT" value="1"/>
    </field>
    <!-- DWord 4 -->
    <field name="Depth" start="149" end="159" type="uint"/>
    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
    <field name="Render Target View Extent" start="129" end="137" type="uint"/>
    <!-- DWord 5 -->
    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
    <!-- DWord 6 -->
    <!-- The hardware docs lie. There is no dword 6. -->
  </instruction>
</genxml>