57de518972a67eb2607eb4551b2b5833836c72af
[mesa.git] / src / panfrost / lib / midgard.xml
1 <panxml>
2
3 <enum name="Job Type">
4 <value name="Not started" value="0"/>
5 <value name="Null" value="1"/>
6 <value name="Write value" value="2"/>
7 <value name="Cache flush" value="3"/>
8 <value name="Compute" value="4"/>
9 <value name="Vertex" value="5"/>
10 <value name="Geometry" value="6"/>
11 <value name="Tiler" value="7"/>
12 <value name="Fused" value="8"/>
13 <value name="Fragment" value="9"/>
14 </enum>
15
16 <enum name="Draw Mode">
17 <value name="None" value="0"/>
18 <value name="Points" value="1"/>
19 <value name="Lines" value="2"/>
20 <value name="Line strip" value="4"/>
21 <value name="Line loop" value="6"/>
22 <value name="Triangles" value="8"/>
23 <value name="Triangle strip" value="10"/>
24 <value name="Triangle fan" value="12"/>
25 <value name="Polygon" value="13"/>
26 <value name="Quads" value="14"/>
27 <value name="Quad strip" value="15"/>
28 </enum>
29
30 <enum name="Func">
31 <value name="Never" value="0"/>
32 <value name="Less" value="1"/>
33 <value name="Equal" value="2"/>
34 <value name="Lequal" value="3"/>
35 <value name="Greater" value="4"/>
36 <value name="Not Equal" value="5"/>
37 <value name="Gequal" value="6"/>
38 <value name="Always" value="7"/>
39 </enum>
40
41 <enum name="Block Format">
42 <!--- 16x16 block u-interleaved -->
43 <value name="Tiled" value="0"/>
44 <value name="Linear" value="2"/>
45 <value name="AFBC" value="3"/>
46 </enum>
47
48 <enum name="Mipmap Mode">
49 <value name="Nearest" value="0"/>
50 <value name="None" value="1"/>
51 <value name="Trilinear" value="3"/>
52 </enum>
53
54 <enum name="Stencil Op">
55 <value name="Keep" value="0"/>
56 <value name="Replace" value="1"/>
57 <value name="Zero" value="2"/>
58 <value name="Invert" value="3"/>
59 <value name="Incr Wrap" value="4"/>
60 <value name="Decr Wrap" value="5"/>
61 <value name="Incr Sat" value="6"/>
62 <value name="Decr Sat" value="7"/>
63 </enum>
64
65 <enum name="Texture Dimension">
66 <value name="Cube" value="0"/>
67 <value name="1D" value="1"/>
68 <value name="2D" value="2"/>
69 <value name="3D" value="3"/>
70 </enum>
71
72 <enum name="Texture Layout">
73 <!--- 16x16 block u-interleaved -->
74 <value name="Tiled" value="1"/>
75 <value name="Linear" value="2"/>
76 <value name="AFBC" value="12"/>
77 </enum>
78
79 <enum name="Wrap Mode">
80 <value name="Repeat" value="8"/>
81 <value name="Clamp to Edge" value="9"/>
82 <value name="Clamp" value="10"/>
83 <value name="Clamp to Border" value="11"/>
84 <value name="Mirrored Repeat" value="12"/>
85 <value name="Mirrored Clamp to Edge" value="13"/>
86 <value name="Mirrored Clamp" value="14"/>
87 <value name="Mirrored Clamp to Border" value="15"/>
88 </enum>
89
90 <struct name="Midgard Sampler">
91 <field name="Magnify Nearest" size="1" start="0" type="bool" default="true"/>
92 <field name="Minify Nearest" size="1" start="1" type="bool" default="true"/>
93 <field name="Mipmap Mode" size="2" start="3" type="Mipmap Mode" default="Nearest"/>
94 <field name="Normalized Coordinates" size="1" start="5" type="bool" default="true"/>
95 <field name="LOD Bias" size="16" start="0:16" type="int" default="0"/>
96 <field name="Minimum LOD" size="16" start="1:0" type="uint" default="0"/>
97 <field name="Maximum LOD" size="16" start="1:16" type="uint" default="1"/>
98 <field name="Wrap Mode S" size="4" start="2:0" type="Wrap Mode" default="Clamp to Edge"/>
99 <field name="Wrap Mode T" size="4" start="2:4" type="Wrap Mode" default="Clamp to Edge"/>
100 <field name="Wrap Mode R" size="4" start="2:8" type="Wrap Mode" default="Clamp to Edge"/>
101 <field name="Compare Function" size="3" start="2:12" type="Func" default="Never"/>
102 <field name="Seamless Cube Map" size="1" start="2:15" type="bool" default="true"/>
103 <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/>
104 <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/>
105 <field name="Border Color B" size="32" start="6:0" type="float" default="0.0"/>
106 <field name="Border Color A" size="32" start="7:0" type="float" default="0.0"/>
107 </struct>
108
109 <struct name="Midgard Texture" size="8">
110 <field name="Width" size="16" start="0:0" type="uint" modifier="minus(1)"/>
111 <field name="Height" size="16" start="0:16" type="uint" modifier="minus(1)"/>
112 <field name="Depth" size="16" start="1:0" type="uint" modifier="minus(1)"/>
113 <field name="Array size" size="16" start="1:16" type="uint" modifier="minus(1)"/>
114 <field name="Format" size="22" start="2:0" type="uint"/>
115 <field name="Dimension" size="2" start="2:22" type="Texture Dimension"/>
116 <field name="Texel ordering" size="4" start="2:24" type="Texture Layout"/>
117 <field name="Unknown" size="1" start="2:28" type="bool" default="true"/>
118 <field name="Manual stride" size="1" start="2:29" type="bool" default="false"/>
119 <field name="Levels" size="8" start="3:24" type="uint"/>
120 <field name="Swizzle" size="12" start="4:0" type="uint"/>
121 </struct>
122
123 <struct name="Bifrost Sampler" size="8">
124 <field name="Type" size="4" start="0:0" type="uint" default="1"/>
125 <field name="Wrap Mode R" size="4" start="0:8" type="Wrap Mode" default="Clamp to Edge"/>
126 <field name="Wrap Mode T" size="4" start="0:12" type="Wrap Mode" default="Clamp to Edge"/>
127 <field name="Wrap Mode S" size="4" start="0:16" type="Wrap Mode" default="Clamp to Edge"/>
128 <field name="Seamless Cube Map" size="1" start="0:23" type="bool" default="true"/>
129 <field name="Normalized Coordinates" size="1" start="0:25" type="bool" default="true"/>
130 <field name="Minify Linear" size="1" start="0:27" type="bool" default="false"/>
131 <field name="Magnify Linear" size="1" start="0:28" type="bool" default="false"/>
132 <field name="Mipmap Mode" size="2" start="0:30" type="Mipmap Mode" default="Nearest"/>
133 <field name="Minimum LOD" size="13" start="1:0" type="uint" default="0"/>
134 <field name="Compare Function" size="3" start="1:13" type="Func" default="Never"/>
135 <field name="Maximum LOD" size="13" start="1:16" type="uint" default="0"/>
136 <field name="LOD bias" size="16" start="2:0" type="uint" default="0"/>
137 </struct>
138
139 <struct name="Bifrost Texture" size="8">
140 <field name="Type" size="4" start="0:0" type="uint" default="2"/>
141 <field name="Dimension" size="2" start="0:4" type="Texture Dimension"/>
142 <field name="Format" size="22" start="0:10" type="uint"/>
143 <field name="Width" size="16" start="1:0" type="uint" modifier="minus(1)"/>
144 <field name="Height" size="16" start="1:16" type="uint" modifier="minus(1)"/>
145 <field name="Swizzle" size="12" start="2:0" type="uint"/>
146 <field name="Texel ordering" size="4" start="2:12" type="Texture Layout"/>
147 <field name="Levels" size="5" start="2:16" type="uint"/>
148 <field name="Minimum LOD" size="13" start="3:0" type="uint" default="0"/>
149 <field name="Maximum LOD" size="13" start="3:16" type="uint" default="0"/>
150 <field name="Surfaces" size="64" start="4:0" type="address"/>
151 </struct>
152
153 <struct name="Stencil">
154 <field name="Reference Value" size="8" start="0" type="uint"/>
155 <field name="Mask" size="8" start="8" type="uint" default="0xFF"/>
156 <field name="Compare Function" size="3" start="16" type="Func"/>
157 <field name="Stencil Fail" size="3" start="19" type="Stencil Op"/>
158 <field name="Depth Fail" size="3" start="22" type="Stencil Op"/>
159 <field name="Depth Pass" size="3" start="25" type="Stencil Op"/>
160 </struct>
161
162 <struct name="Uniform Buffer">
163 <field name="Entries" size="12" start="0" type="uint" modifier="minus(1)"/>
164 <field name="Pointer" size="52" start="12" type="address" modifier="shr(4)" element="16" count="Entries"/>
165 </struct>
166
167 <struct name="Viewport">
168 <field name="Minimum X" size="32" start="0:0" default="-INFINITY" type="float"/>
169 <field name="Minimum Y" size="32" start="1:0" default="-INFINITY" type="float"/>
170 <field name="Maximum X" size="32" start="2:0" default="+INFINITY" type="float"/>
171 <field name="Maximum Y" size="32" start="3:0" default="+INFINITY" type="float"/>
172 <field name="Minimum Z" size="32" start="4:0" default="0.0" type="float"/>
173 <field name="Maximum Z" size="32" start="5:0" default="1.0" type="float"/>
174 <field name="Scissor Minimum X" size="16" start="6:0" default="0" type="uint"/>
175 <field name="Scissor Minimum Y" size="16" start="6:16" default="0" type="uint"/>
176 <field name="Scissor Maximum X" size="16" start="7:0" type="uint"/>
177 <field name="Scissor Maximum Y" size="16" start="7:16" type="uint"/>
178 </struct>
179
180 </panxml>