panfrost: Pass alignments explicitly
[mesa.git] / src / panfrost / lib / midgard.xml
1 <panxml>
2
3 <enum name="Attribute Type">
4 <value name="1D" value="1"/>
5 <value name="1D POT Divisor" value="2"/>
6 <value name="1D Modulus" value="3"/>
7 <value name="1D NPOT Divisor" value="4"/>
8 <value name="Continuation" value="32"/>
9 </enum>
10
11 <enum name="Attribute Special">
12 <value name="Vertex ID" value="34"/>
13 <value name="Instance ID" value="36"/>
14 <value name="Frag Coord" value="37"/>
15 <value name="Front Facing" value="38"/>
16 <value name="Point Coord" value="97"/>
17 </enum>
18
19 <enum name="Channel">
20 <value name="R" value="0"/>
21 <value name="G" value="1"/>
22 <value name="B" value="2"/>
23 <value name="A" value="3"/>
24 <value name="0" value="4"/>
25 <value name="1" value="5"/>
26 </enum>
27
28 <enum name="Job Type">
29 <value name="Not started" value="0"/>
30 <value name="Null" value="1"/>
31 <value name="Write value" value="2"/>
32 <value name="Cache flush" value="3"/>
33 <value name="Compute" value="4"/>
34 <value name="Vertex" value="5"/>
35 <value name="Geometry" value="6"/>
36 <value name="Tiler" value="7"/>
37 <value name="Fused" value="8"/>
38 <value name="Fragment" value="9"/>
39 </enum>
40
41 <enum name="Draw Mode">
42 <value name="None" value="0"/>
43 <value name="Points" value="1"/>
44 <value name="Lines" value="2"/>
45 <value name="Line strip" value="4"/>
46 <value name="Line loop" value="6"/>
47 <value name="Triangles" value="8"/>
48 <value name="Triangle strip" value="10"/>
49 <value name="Triangle fan" value="12"/>
50 <value name="Polygon" value="13"/>
51 <value name="Quads" value="14"/>
52 <value name="Quad strip" value="15"/>
53 </enum>
54
55 <enum name="Exception Access">
56 <value name="None" value="0"/>
57 <value name="Execute" value="2"/>
58 <value name="Read" value="1"/>
59 <value name="Write" value="3"/>
60 </enum>
61
62 <enum name="Func">
63 <value name="Never" value="0"/>
64 <value name="Less" value="1"/>
65 <value name="Equal" value="2"/>
66 <value name="Lequal" value="3"/>
67 <value name="Greater" value="4"/>
68 <value name="Not Equal" value="5"/>
69 <value name="Gequal" value="6"/>
70 <value name="Always" value="7"/>
71 </enum>
72
73 <enum name="Format">
74 <value name="ETC2 RGB8" value="1"/>
75 <value name="ETC2 R11 UNORM" value="2"/>
76 <value name="ETC2 RGBA8" value="3"/>
77 <value name="ETC2 RG11 UNORM" value="4"/>
78 <value name="BC1 UNORM" value="7"/>
79 <value name="BC2 UNORM" value="8"/>
80 <value name="BC3 UNORM" value="9"/>
81 <value name="BC4 UNORM" value="10"/>
82 <value name="BC4 SNORM" value="11"/>
83 <value name="BC5 UNORM" value="12"/>
84 <value name="BC5 SNORM" value="13"/>
85 <value name="BC6H UF16" value="14"/>
86 <value name="BC6H SF16" value="15"/>
87 <value name="BC7 UNORM" value="16"/>
88 <value name="ETC2 R11 SNORM" value="17"/>
89 <value name="ETC2 RG11 SNORM" value="18"/>
90 <value name="ETC2 RGB8A1" value="19"/>
91 <value name="ASTC 3D LDR" value="20"/>
92 <value name="ASTC 3D HDR" value="21"/>
93 <value name="ASTC 2D LDR" value="22"/>
94 <value name="ASTC 2D HDR" value="23"/>
95 <value name="RGB565" value="64"/>
96 <value name="RGB5 X1 UNORM" value="65"/>
97 <value name="RGB5 A1 UNORM" value="66"/>
98 <value name="RGB10 A2 UNORM" value="67"/>
99 <value name="RGB10 A2 SNORM" value="69"/>
100 <value name="RGB10 A2UI" value="71"/>
101 <value name="RGB10 A2I" value="73"/>
102 <value name="RGB332 UNORM" value="75"/>
103 <value name="RGB233 UNORM" value="76"/>
104 <value name="Z24X8 UNORM" value="77"/>
105 <value name="R32 FIXED" value="81"/>
106 <value name="RG32 FIXED" value="82"/>
107 <value name="RGB32 FIXED" value="83"/>
108 <value name="RGBA32 FIXED" value="84"/>
109 <value name="R11F G11F B10F" value="89"/>
110 <value name="R9F G9F B9F E5F" value="91"/>
111 <value name="VARYING POS" value="94"/>
112 <value name="VARYING DISCARD" value="95"/>
113 <value name="R8 SNORM" value="99"/>
114 <value name="R16 SNORM" value="100"/>
115 <value name="R32 SNORM" value="101"/>
116 <value name="RG8 SNORM" value="107"/>
117 <value name="RG16 SNORM" value="108"/>
118 <value name="RG32 SNORM" value="109"/>
119 <value name="RGB8 SNORM" value="115"/>
120 <value name="RGB16 SNORM" value="116"/>
121 <value name="RGB32 SNORM" value="117"/>
122 <value name="RGBA8 SNORM" value="123"/>
123 <value name="RGBA16 SNORM" value="124"/>
124 <value name="RGBA32 SNORM" value="125"/>
125 <value name="R8UI" value="131"/>
126 <value name="R16UI" value="132"/>
127 <value name="R32UI" value="133"/>
128 <value name="RG8UI" value="139"/>
129 <value name="RG16UI" value="140"/>
130 <value name="RG32UI" value="141"/>
131 <value name="RGB8UI" value="147"/>
132 <value name="RGB16UI" value="148"/>
133 <value name="RGB32UI" value="149"/>
134 <value name="RGBA8UI" value="155"/>
135 <value name="RGBA16UI" value="156"/>
136 <value name="RGBA32UI" value="157"/>
137 <value name="R8 UNORM" value="163"/>
138 <value name="R16 UNORM" value="164"/>
139 <value name="R32 UNORM" value="165"/>
140 <value name="R32F" value="167"/>
141 <value name="RG8 UNORM" value="171"/>
142 <value name="RG16 UNORM" value="172"/>
143 <value name="RG32 UNORM" value="173"/>
144 <value name="RG32F" value="175"/>
145 <value name="RGB8 UNORM" value="179"/>
146 <value name="RGB16 UNORM" value="180"/>
147 <value name="RGB32 UNORM" value="181"/>
148 <value name="RGB32F" value="183"/>
149 <value name="RGBA4 UNORM" value="186"/>
150 <value name="RGBA8 UNORM" value="187"/>
151 <value name="RGBA16 UNORM" value="188"/>
152 <value name="RGBA32 UNORM" value="189"/>
153 <value name="RGBA32F" value="191"/>
154 <value name="R8I" value="195"/>
155 <value name="R16I" value="196"/>
156 <value name="R32I" value="197"/>
157 <value name="R16F" value="199"/>
158 <value name="RG8I" value="203"/>
159 <value name="RG16I" value="204"/>
160 <value name="RG32I" value="205"/>
161 <value name="RG16F" value="207"/>
162 <value name="RGB8I" value="211"/>
163 <value name="RGB16I" value="212"/>
164 <value name="RGB32I" value="213"/>
165 <value name="RGB16F" value="215"/>
166 <value name="RGBA8I" value="219"/>
167 <value name="RGBA16I" value="220"/>
168 <value name="RGBA32I" value="221"/>
169 <value name="RGBA16F" value="223"/>
170 <value name="RGBA4" value="232"/>
171 <value name="RGBA8 2" value="237"/>
172 <value name="RGB10 A2 2" value="238"/>
173 </enum>
174
175 <enum name="Block Format">
176 <!--- 16x16 block u-interleaved -->
177 <value name="Tiled" value="0"/>
178 <value name="Linear" value="2"/>
179 <value name="AFBC" value="3"/>
180 </enum>
181
182 <enum name="Mipmap Mode">
183 <value name="Nearest" value="0"/>
184 <value name="None" value="1"/>
185 <value name="Trilinear" value="3"/>
186 </enum>
187
188 <enum name="MSAA">
189 <value name="Single" value="0"/>
190 <!-- N samples, 1 surface, resolved -->
191 <value name="Average" value="1"/>
192 <!-- N samples, 1 surface, unresolved -->
193 <value name="Multiple" value="2"/>
194 <!-- N samples, N surfaces -->
195 <value name="Layered" value="3"/>
196 </enum>
197
198 <enum name="Stencil Op">
199 <value name="Keep" value="0"/>
200 <value name="Replace" value="1"/>
201 <value name="Zero" value="2"/>
202 <value name="Invert" value="3"/>
203 <value name="Incr Wrap" value="4"/>
204 <value name="Decr Wrap" value="5"/>
205 <value name="Incr Sat" value="6"/>
206 <value name="Decr Sat" value="7"/>
207 </enum>
208
209 <enum name="Texture Dimension">
210 <value name="Cube" value="0"/>
211 <value name="1D" value="1"/>
212 <value name="2D" value="2"/>
213 <value name="3D" value="3"/>
214 </enum>
215
216 <enum name="Texture Layout">
217 <!--- 16x16 block u-interleaved -->
218 <value name="Tiled" value="1"/>
219 <value name="Linear" value="2"/>
220 <value name="AFBC" value="12"/>
221 </enum>
222
223 <enum name="Wrap Mode">
224 <value name="Repeat" value="8"/>
225 <value name="Clamp to Edge" value="9"/>
226 <value name="Clamp" value="10"/>
227 <value name="Clamp to Border" value="11"/>
228 <value name="Mirrored Repeat" value="12"/>
229 <value name="Mirrored Clamp to Edge" value="13"/>
230 <value name="Mirrored Clamp" value="14"/>
231 <value name="Mirrored Clamp to Border" value="15"/>
232 </enum>
233
234 <struct name="Attribute">
235 <field name="Buffer index" size="9" start="0" type="uint"/>
236 <field name="Unknown" size="1" start="9" type="bool" default="true"/>
237 <field name="Format" size="22" start="10" type="uint"/>
238 <field name="Offset" size="32" start="32" type="int"/>
239 </struct>
240
241 <struct name="Attribute Buffer">
242 <field name="Special" size="8" start="0" type="Attribute Special"/>
243 <field name="Type" size="6" start="0" type="Attribute Type" default="1D"/>
244 <field name="Pointer" size="50" start="6" type="address" modifier="shr(6)"/>
245 <field name="Stride" size="32" start="64" type="uint"/>
246 <field name="Size" size="32" start="96" type="uint"/>
247
248 <field name="Divisor R" size="5" start="56" type="uint"/>
249 <field name="Divisor P" size="3" start="61" type="uint"/>
250 <field name="Divisor E" size="1" start="61" type="uint"/>
251 </struct>
252
253 <struct name="Attribute Buffer Continuation NPOT">
254 <field name="Type" size="6" start="0:0" type="Attribute Type" default="Continuation"/>
255 <field name="Divisor Numerator" size="32" start="1:0" type="uint"/>
256 <field name="Divisor" size="32" start="3:0" type="uint"/>
257 </struct>
258
259 <struct name="Midgard Sampler">
260 <field name="Magnify Nearest" size="1" start="0" type="bool" default="true"/>
261 <field name="Minify Nearest" size="1" start="1" type="bool" default="true"/>
262 <field name="Mipmap Mode" size="2" start="3" type="Mipmap Mode" default="Nearest"/>
263 <field name="Normalized Coordinates" size="1" start="5" type="bool" default="true"/>
264 <field name="LOD Bias" size="16" start="0:16" type="int" default="0"/>
265 <field name="Minimum LOD" size="16" start="1:0" type="uint" default="0"/>
266 <field name="Maximum LOD" size="16" start="1:16" type="uint" default="1"/>
267 <field name="Wrap Mode S" size="4" start="2:0" type="Wrap Mode" default="Clamp to Edge"/>
268 <field name="Wrap Mode T" size="4" start="2:4" type="Wrap Mode" default="Clamp to Edge"/>
269 <field name="Wrap Mode R" size="4" start="2:8" type="Wrap Mode" default="Clamp to Edge"/>
270 <field name="Compare Function" size="3" start="2:12" type="Func" default="Never"/>
271 <field name="Seamless Cube Map" size="1" start="2:15" type="bool" default="true"/>
272 <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/>
273 <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/>
274 <field name="Border Color B" size="32" start="6:0" type="float" default="0.0"/>
275 <field name="Border Color A" size="32" start="7:0" type="float" default="0.0"/>
276 </struct>
277
278 <struct name="Midgard Texture" size="8">
279 <field name="Width" size="16" start="0:0" type="uint" modifier="minus(1)"/>
280 <field name="Height" size="16" start="0:16" type="uint" modifier="minus(1)"/>
281 <field name="Depth" size="16" start="1:0" type="uint" modifier="minus(1)"/>
282 <field name="Array size" size="16" start="1:16" type="uint" modifier="minus(1)"/>
283 <field name="Format" size="22" start="2:0" type="uint"/>
284 <field name="Dimension" size="2" start="2:22" type="Texture Dimension"/>
285 <field name="Texel ordering" size="4" start="2:24" type="Texture Layout"/>
286 <field name="Unknown" size="1" start="2:28" type="bool" default="true"/>
287 <field name="Manual stride" size="1" start="2:29" type="bool" default="false"/>
288 <field name="Levels" size="8" start="3:24" type="uint"/>
289 <field name="Swizzle" size="12" start="4:0" type="uint"/>
290 </struct>
291
292 <struct name="Bifrost Sampler" size="8">
293 <field name="Type" size="4" start="0:0" type="uint" default="1"/>
294 <field name="Wrap Mode R" size="4" start="0:8" type="Wrap Mode" default="Clamp to Edge"/>
295 <field name="Wrap Mode T" size="4" start="0:12" type="Wrap Mode" default="Clamp to Edge"/>
296 <field name="Wrap Mode S" size="4" start="0:16" type="Wrap Mode" default="Clamp to Edge"/>
297 <field name="Seamless Cube Map" size="1" start="0:23" type="bool" default="true"/>
298 <field name="Normalized Coordinates" size="1" start="0:25" type="bool" default="true"/>
299 <field name="Minify Linear" size="1" start="0:27" type="bool" default="false"/>
300 <field name="Magnify Linear" size="1" start="0:28" type="bool" default="false"/>
301 <field name="Mipmap Mode" size="2" start="0:30" type="Mipmap Mode" default="Nearest"/>
302 <field name="Minimum LOD" size="13" start="1:0" type="uint" default="0"/>
303 <field name="Compare Function" size="3" start="1:13" type="Func" default="Never"/>
304 <field name="Maximum LOD" size="13" start="1:16" type="uint" default="0"/>
305 <field name="LOD bias" size="16" start="2:0" type="uint" default="0"/>
306 </struct>
307
308 <struct name="Bifrost Texture" size="8">
309 <field name="Type" size="4" start="0:0" type="uint" default="2"/>
310 <field name="Dimension" size="2" start="0:4" type="Texture Dimension"/>
311 <field name="Format" size="22" start="0:10" type="uint"/>
312 <field name="Width" size="16" start="1:0" type="uint" modifier="minus(1)"/>
313 <field name="Height" size="16" start="1:16" type="uint" modifier="minus(1)"/>
314 <field name="Swizzle" size="12" start="2:0" type="uint"/>
315 <field name="Texel ordering" size="4" start="2:12" type="Texture Layout"/>
316 <field name="Levels" size="5" start="2:16" type="uint"/>
317 <field name="Minimum LOD" size="13" start="3:0" type="uint" default="0"/>
318 <field name="Maximum LOD" size="13" start="3:16" type="uint" default="0"/>
319 <field name="Surfaces" size="64" start="4:0" type="address"/>
320 </struct>
321
322 <struct name="Stencil">
323 <field name="Reference Value" size="8" start="0" type="uint"/>
324 <field name="Mask" size="8" start="8" type="uint" default="0xFF"/>
325 <field name="Compare Function" size="3" start="16" type="Func"/>
326 <field name="Stencil Fail" size="3" start="19" type="Stencil Op"/>
327 <field name="Depth Fail" size="3" start="22" type="Stencil Op"/>
328 <field name="Depth Pass" size="3" start="25" type="Stencil Op"/>
329 </struct>
330
331 <struct name="Uniform Buffer">
332 <field name="Entries" size="12" start="0" type="uint" modifier="minus(1)"/>
333 <field name="Pointer" size="52" start="12" type="address" modifier="shr(4)" element="16" count="Entries"/>
334 </struct>
335
336 <struct name="Viewport">
337 <field name="Minimum X" size="32" start="0:0" default="-INFINITY" type="float"/>
338 <field name="Minimum Y" size="32" start="1:0" default="-INFINITY" type="float"/>
339 <field name="Maximum X" size="32" start="2:0" default="+INFINITY" type="float"/>
340 <field name="Maximum Y" size="32" start="3:0" default="+INFINITY" type="float"/>
341 <field name="Minimum Z" size="32" start="4:0" default="0.0" type="float"/>
342 <field name="Maximum Z" size="32" start="5:0" default="1.0" type="float"/>
343 <field name="Scissor Minimum X" size="16" start="6:0" default="0" type="uint"/>
344 <field name="Scissor Minimum Y" size="16" start="6:16" default="0" type="uint"/>
345 <field name="Scissor Maximum X" size="16" start="7:0" type="uint"/>
346 <field name="Scissor Maximum Y" size="16" start="7:16" type="uint"/>
347 </struct>
348
349 </panxml>