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