1bf215546Sopenharmony_ci<?xml version="1.0" ?>
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ci<!--
4bf215546Sopenharmony_ciCopyright © 2022 Imagination Technologies Ltd.
5bf215546Sopenharmony_ci
6bf215546Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining a copy
7bf215546Sopenharmony_ciof this software and associated documentation files (the "Software"), to deal
8bf215546Sopenharmony_ciin the Software without restriction, including without limitation the rights
9bf215546Sopenharmony_cito use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10bf215546Sopenharmony_cicopies of the Software, and to permit persons to whom the Software is
11bf215546Sopenharmony_cifurnished to do so, subject to the following conditions:
12bf215546Sopenharmony_ci
13bf215546Sopenharmony_ciThe above copyright notice and this permission notice (including the next
14bf215546Sopenharmony_ciparagraph) shall be included in all copies or substantial portions of the
15bf215546Sopenharmony_ciSoftware.
16bf215546Sopenharmony_ci
17bf215546Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18bf215546Sopenharmony_ciIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19bf215546Sopenharmony_ciFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20bf215546Sopenharmony_ciAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21bf215546Sopenharmony_ciLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22bf215546Sopenharmony_ciOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23bf215546Sopenharmony_ciSOFTWARE.
24bf215546Sopenharmony_ci-->
25bf215546Sopenharmony_ci
26bf215546Sopenharmony_ci<csbgen name="ROGUE" prefix="TEXSTATE">
27bf215546Sopenharmony_ci
28bf215546Sopenharmony_ci	<enum name="ADDRMODE">
29bf215546Sopenharmony_ci		<value name="REPEAT"               value="0"/>
30bf215546Sopenharmony_ci		<value name="FLIP"                 value="1"/>
31bf215546Sopenharmony_ci		<value name="CLAMP_TO_EDGE"        value="2"/>
32bf215546Sopenharmony_ci		<value name="FLIP_ONCE_THEN_CLAMP" value="3"/>
33bf215546Sopenharmony_ci		<value name="CLAMP_TO_BORDER"      value="4"/>
34bf215546Sopenharmony_ci		<value name="OGL_CLAMP"            value="5"/>
35bf215546Sopenharmony_ci	</enum>
36bf215546Sopenharmony_ci
37bf215546Sopenharmony_ci	<enum name="ANISOCTL">
38bf215546Sopenharmony_ci		<value name="DISABLED" value="0"/>
39bf215546Sopenharmony_ci		<value name="X2"       value="1"/>
40bf215546Sopenharmony_ci		<value name="X4"       value="2"/>
41bf215546Sopenharmony_ci		<value name="X8"       value="3"/>
42bf215546Sopenharmony_ci		<value name="X16"      value="4"/>
43bf215546Sopenharmony_ci	</enum>
44bf215546Sopenharmony_ci
45bf215546Sopenharmony_ci	<enum name="CLAMP">
46bf215546Sopenharmony_ci		<value name="MIN"             value="0"/>
47bf215546Sopenharmony_ci		<value name="MAX"             value="959"/>
48bf215546Sopenharmony_ci		<value name="INTEGER_BITS"    value="4"/>
49bf215546Sopenharmony_ci		<value name="FRACTIONAL_BITS" value="6"/>
50bf215546Sopenharmony_ci	</enum>
51bf215546Sopenharmony_ci
52bf215546Sopenharmony_ci	<enum name="CMP_MODE">
53bf215546Sopenharmony_ci		<value name="NEVER"        value="0"/>
54bf215546Sopenharmony_ci		<value name="LESS"         value="1"/>
55bf215546Sopenharmony_ci		<value name="EQUAL"        value="2"/>
56bf215546Sopenharmony_ci		<value name="LESSEQUAL"    value="3"/>
57bf215546Sopenharmony_ci		<value name="GREATER"      value="4"/>
58bf215546Sopenharmony_ci		<value name="NOTEQUAL"     value="5"/>
59bf215546Sopenharmony_ci		<value name="GREATEREQUAL" value="6"/>
60bf215546Sopenharmony_ci		<value name="ALWAYS"       value="7"/>
61bf215546Sopenharmony_ci	</enum>
62bf215546Sopenharmony_ci
63bf215546Sopenharmony_ci	<enum name="COMPRESSION_LEVEL">
64bf215546Sopenharmony_ci		<value name="LOSSLESS" value="0"/>
65bf215546Sopenharmony_ci		<value name="LOSSY_75" value="1"/>
66bf215546Sopenharmony_ci		<value name="LOSSY_50" value="2"/>
67bf215546Sopenharmony_ci		<value name="LOSSY_25" value="3"/>
68bf215546Sopenharmony_ci	</enum>
69bf215546Sopenharmony_ci
70bf215546Sopenharmony_ci	<enum name="COMPRESSION_MODE">
71bf215546Sopenharmony_ci		<value name="NONE"                   value="0"/>
72bf215546Sopenharmony_ci		<value name="TPU"                    value="1"/>
73bf215546Sopenharmony_ci		<value name="FB_DIRECT_8X8"          value="2"/>
74bf215546Sopenharmony_ci		<value name="FB_DIRECT_16X4"         value="3"/>
75bf215546Sopenharmony_ci		<value name="FB_INDIRECT_1TILE_8X8"  value="4"/>
76bf215546Sopenharmony_ci		<value name="FB_INDIRECT_1TILE_16X4" value="5"/>
77bf215546Sopenharmony_ci		<value name="FB_INDIRECT_4TILE_8X8"  value="6"/>
78bf215546Sopenharmony_ci		<value name="FB_INDIRECT_4TILE_16X4" value="7"/>
79bf215546Sopenharmony_ci	</enum>
80bf215546Sopenharmony_ci
81bf215546Sopenharmony_ci	<enum name="DADJUST">
82bf215546Sopenharmony_ci		<value name="MIN_UINT"        value="0"/>
83bf215546Sopenharmony_ci		<value name="ZERO_UINT"       value="4095"/>
84bf215546Sopenharmony_ci		<value name="MAX_UINT"        value="8191"/>
85bf215546Sopenharmony_ci		<value name="INTEGER_BITS"    value="5"/>
86bf215546Sopenharmony_ci		<value name="FRACTIONAL_BITS" value="8"/>
87bf215546Sopenharmony_ci	</enum>
88bf215546Sopenharmony_ci
89bf215546Sopenharmony_ci	<enum name="FILTER">
90bf215546Sopenharmony_ci		<value name="POINT"   value="0"/>
91bf215546Sopenharmony_ci		<value name="LINEAR"  value="1"/>
92bf215546Sopenharmony_ci		<value name="BICUBIC" value="2"/>
93bf215546Sopenharmony_ci	</enum>
94bf215546Sopenharmony_ci
95bf215546Sopenharmony_ci	<enum name="FORMAT">
96bf215546Sopenharmony_ci		<value name="U8"                            value="0"/>
97bf215546Sopenharmony_ci		<value name="S8"                            value="1"/>
98bf215546Sopenharmony_ci		<value name="A4R4G4B4"                      value="2"/>
99bf215546Sopenharmony_ci		<value name="A8R3G3B2"                      value="3"/>
100bf215546Sopenharmony_ci		<value name="A1R5G5B5"                      value="4"/>
101bf215546Sopenharmony_ci		<value name="R5G6B5"                        value="5"/>
102bf215546Sopenharmony_ci		<value name="R5sG5sB6"                      value="6"/>
103bf215546Sopenharmony_ci		<value name="U8U8"                          value="7"/>
104bf215546Sopenharmony_ci		<value name="S8S8"                          value="8"/>
105bf215546Sopenharmony_ci		<value name="U16"                           value="9"/>
106bf215546Sopenharmony_ci		<value name="S16"                           value="10"/>
107bf215546Sopenharmony_ci		<value name="F16"                           value="11"/>
108bf215546Sopenharmony_ci		<value name="U8U8U8U8"                      value="12"/>
109bf215546Sopenharmony_ci		<value name="S8S8S8S8"                      value="13"/>
110bf215546Sopenharmony_ci		<value name="A2R10B10G10"                   value="14"/>
111bf215546Sopenharmony_ci		<value name="U16U16"                        value="15"/>
112bf215546Sopenharmony_ci		<value name="S16S16"                        value="16"/>
113bf215546Sopenharmony_ci		<value name="F16F16"                        value="17"/>
114bf215546Sopenharmony_ci		<value name="F32"                           value="18"/>
115bf215546Sopenharmony_ci		<value name="F32_SIGNMASK"                  value="19"/>
116bf215546Sopenharmony_ci		<value name="X8U8S8S8"                      value="20"/>
117bf215546Sopenharmony_ci		<value name="X8U24"                         value="21"/>
118bf215546Sopenharmony_ci		<value name="ST8U24"                        value="22"/>
119bf215546Sopenharmony_ci		<value name="U8X24"                         value="23"/>
120bf215546Sopenharmony_ci		<value name="U32"                           value="24"/>
121bf215546Sopenharmony_ci		<value name="S32"                           value="25"/>
122bf215546Sopenharmony_ci		<value name="SE9995"                        value="26"/>
123bf215546Sopenharmony_ci		<value name="F11F11F10"                     value="27"/>
124bf215546Sopenharmony_ci		<value name="F16F16F16F16"                  value="28"/>
125bf215546Sopenharmony_ci		<value name="U16U16U16U16"                  value="29"/>
126bf215546Sopenharmony_ci		<value name="S16S16S16S16"                  value="30"/>
127bf215546Sopenharmony_ci		<value name="F16F16F16"                     value="31"/>
128bf215546Sopenharmony_ci		<value name="U16U16U16"                     value="32"/>
129bf215546Sopenharmony_ci		<value name="S16S16S16"                     value="33"/>
130bf215546Sopenharmony_ci		<value name="F32F32"                        value="34"/>
131bf215546Sopenharmony_ci		<value name="U32U32"                        value="35"/>
132bf215546Sopenharmony_ci		<value name="S32S32"                        value="36"/>
133bf215546Sopenharmony_ci		<value name="X24U8F32"                      value="37"/>
134bf215546Sopenharmony_ci		<value name="X24X8F32"                      value="38"/>
135bf215546Sopenharmony_ci		<value name="X24G8X32"                      value="39"/>
136bf215546Sopenharmony_ci		<value name="YUV420_2PLANE"                 value="54"/>
137bf215546Sopenharmony_ci		<value name="YVU420_2PLANE"                 value="55"/>
138bf215546Sopenharmony_ci		<value name="YUV420_3PLANE"                 value="56"/>
139bf215546Sopenharmony_ci		<value name="YVU420_3PLANE"                 value="57"/>
140bf215546Sopenharmony_ci		<value name="U8U8U8"                        value="58"/>
141bf215546Sopenharmony_ci		<value name="S8S8S8"                        value="59"/>
142bf215546Sopenharmony_ci		<value name="A2F10F10F10"                   value="60"/>
143bf215546Sopenharmony_ci		<value name="F32F32F32F32"                  value="61"/>
144bf215546Sopenharmony_ci		<value name="U32U32U32U32"                  value="62"/>
145bf215546Sopenharmony_ci		<value name="S32S32S32S32"                  value="63"/>
146bf215546Sopenharmony_ci		<value name="F32F32F32"                     value="64"/>
147bf215546Sopenharmony_ci		<value name="U32U32U32"                     value="65"/>
148bf215546Sopenharmony_ci		<value name="S32S32S32"                     value="66"/>
149bf215546Sopenharmony_ci		<value name="A2_XRBIAS_U10U10U10"           value="67"/>
150bf215546Sopenharmony_ci		<value name="O8"                            value="81"/>
151bf215546Sopenharmony_ci		<value name="O8O8"                          value="82"/>
152bf215546Sopenharmony_ci		<value name="R5G5B5A1"                      value="83"/>
153bf215546Sopenharmony_ci		<value name="B6G5sR5s"                      value="84"/>
154bf215546Sopenharmony_ci		<value name="R10B10G10A2"                   value="85"/>
155bf215546Sopenharmony_ci		<value name="X8S8S8U8"                      value="86"/>
156bf215546Sopenharmony_ci		<value name="U24ST8"                        value="87"/>
157bf215546Sopenharmony_ci		<value name="F10F11F11"                     value="88"/>
158bf215546Sopenharmony_ci		<value name="VYUY"                          value="89"/>
159bf215546Sopenharmony_ci		<value name="UYVY"                          value="90"/>
160bf215546Sopenharmony_ci		<value name="YVYU"                          value="91"/>
161bf215546Sopenharmony_ci		<value name="YUYV"                          value="92"/>
162bf215546Sopenharmony_ci		<value name="F10F10F10A2"                   value="93"/>
163bf215546Sopenharmony_ci		<value name="YUV420_2PLANE_MACRO_BLOCK"     value="94"/>
164bf215546Sopenharmony_ci		<value name="YVU420_2PLANE_MACRO_BLOCK"     value="95"/>
165bf215546Sopenharmony_ci		<value name="ARGBV16_XR10"                  value="96"/>
166bf215546Sopenharmony_ci		<value name="YVU8_422_2PLANE_PACK8"         value="97"/>
167bf215546Sopenharmony_ci		<value name="YVU8_444_2PLANE_PACK8"         value="98"/>
168bf215546Sopenharmony_ci		<value name="YVU10_444_1PLANE_PACK10"       value="99"/>
169bf215546Sopenharmony_ci		<value name="YVU10_422_2PLANE_PACK16"       value="100"/>
170bf215546Sopenharmony_ci		<value name="YVU10_420_2PLANE_PACK16"       value="101"/>
171bf215546Sopenharmony_ci		<value name="YVU10_444_2PLANE_PACK16"       value="102"/>
172bf215546Sopenharmony_ci		<value name="YUV8_422_2PLANE_PACK8"         value="103"/>
173bf215546Sopenharmony_ci		<value name="YUV8_444_3PLANE_PACK8"         value="104"/>
174bf215546Sopenharmony_ci		<value name="YUV10_444_3PLANE_PACK16"       value="105"/>
175bf215546Sopenharmony_ci		<value name="YVU10_420_2PLANE_PACK10"       value="106"/>
176bf215546Sopenharmony_ci		<value name="YUV10_420_2PLANE_PACK10"       value="107"/>
177bf215546Sopenharmony_ci		<value name="YVU10_422_2PLANE_PACK10"       value="108"/>
178bf215546Sopenharmony_ci		<value name="YUV10_422_2PLANE_PACK10"       value="109"/>
179bf215546Sopenharmony_ci		<value name="YUV10_444_3PLANE_PACK10"       value="110"/>
180bf215546Sopenharmony_ci		<value name="R8G8_B8G8"                     value="111"/>
181bf215546Sopenharmony_ci		<value name="G8R8_G8B8"                     value="112"/>
182bf215546Sopenharmony_ci		<value name="YVYU_IMPLIED_CSC"              value="113"/>
183bf215546Sopenharmony_ci		<value name="VYUY_IMPLIED_CSC"              value="114"/>
184bf215546Sopenharmony_ci		<value name="YUV10_420_2PLANE_PACK10_R"     value="115"/>
185bf215546Sopenharmony_ci		<value name="YVU10_420_2PLANE_PACK10_R"     value="116"/>
186bf215546Sopenharmony_ci		<value name="YUV10_420_2PLANE_PACK10_T"     value="117"/>
187bf215546Sopenharmony_ci		<value name="YVU10_420_2PLANE_PACK10_T"     value="118"/>
188bf215546Sopenharmony_ci		<value name="YUV8_420_2PLANE_PACK8_P"       value="119"/>
189bf215546Sopenharmony_ci		<value name="YVU8_420_2PLANE_PACK8_P"       value="120"/>
190bf215546Sopenharmony_ci		<value name="YUV8_420_2PLANE_PACK8_F"       value="121"/>
191bf215546Sopenharmony_ci		<value name="YVU8_420_2PLANE_PACK8_F"       value="122"/>
192bf215546Sopenharmony_ci		<value name="INVALID"                       value="0xFFFFFFFF"/>
193bf215546Sopenharmony_ci	</enum>
194bf215546Sopenharmony_ci
195bf215546Sopenharmony_ci	<enum name="FORMAT_COMPRESSED">
196bf215546Sopenharmony_ci		<value name="ASTC_4x4"           value="0"/>
197bf215546Sopenharmony_ci		<value name="ASTC_5x4"           value="1"/>
198bf215546Sopenharmony_ci		<value name="ASTC_5x5"           value="2"/>
199bf215546Sopenharmony_ci		<value name="ASTC_6x5"           value="3"/>
200bf215546Sopenharmony_ci		<value name="ASTC_6x6"           value="4"/>
201bf215546Sopenharmony_ci		<value name="ASTC_8x5"           value="5"/>
202bf215546Sopenharmony_ci		<value name="ASTC_8x6"           value="6"/>
203bf215546Sopenharmony_ci		<value name="ASTC_8x8"           value="7"/>
204bf215546Sopenharmony_ci		<value name="ASTC_10x5"          value="8"/>
205bf215546Sopenharmony_ci		<value name="ASTC_10x6"          value="9"/>
206bf215546Sopenharmony_ci		<value name="ASTC_10x8"          value="10"/>
207bf215546Sopenharmony_ci		<value name="ASTC_10x10"         value="11"/>
208bf215546Sopenharmony_ci		<value name="ASTC_12x10"         value="12"/>
209bf215546Sopenharmony_ci		<value name="ASTC_12x12"         value="13"/>
210bf215546Sopenharmony_ci		<value name="PVRT2BPP"           value="40"/>
211bf215546Sopenharmony_ci		<value name="PVRT4BPP"           value="41"/>
212bf215546Sopenharmony_ci		<value name="PVRTII2BPP"         value="42"/>
213bf215546Sopenharmony_ci		<value name="PVRTII4BPP"         value="43"/>
214bf215546Sopenharmony_ci		<value name="UBC1"               value="44"/>
215bf215546Sopenharmony_ci		<value name="UBC2"               value="45"/>
216bf215546Sopenharmony_ci		<value name="UBC3"               value="46"/>
217bf215546Sopenharmony_ci		<value name="UBC4"               value="47"/>
218bf215546Sopenharmony_ci		<value name="SBC4"               value="48"/>
219bf215546Sopenharmony_ci		<value name="UBC5"               value="49"/>
220bf215546Sopenharmony_ci		<value name="SBC5"               value="50"/>
221bf215546Sopenharmony_ci		<value name="UBC6"               value="51"/>
222bf215546Sopenharmony_ci		<value name="SBC6"               value="52"/>
223bf215546Sopenharmony_ci		<value name="UBC7"               value="53"/>
224bf215546Sopenharmony_ci		<value name="ETC2_RGB"           value="68"/>
225bf215546Sopenharmony_ci		<value name="ETC2A_RGBA"         value="69"/>
226bf215546Sopenharmony_ci		<value name="ETC2_PUNCHTHROUGHA" value="70"/>
227bf215546Sopenharmony_ci		<value name="EAC_R11_UNSIGNED"   value="71"/>
228bf215546Sopenharmony_ci		<value name="EAC_R11_SIGNED"     value="72"/>
229bf215546Sopenharmony_ci		<value name="EAC_RG11_UNSIGNED"  value="73"/>
230bf215546Sopenharmony_ci		<value name="EAC_RG11_SIGNED"    value="74"/>
231bf215546Sopenharmony_ci		<value name="INVALID"            value="0xFFFFFFFF"/>
232bf215546Sopenharmony_ci	</enum>
233bf215546Sopenharmony_ci
234bf215546Sopenharmony_ci	<enum name="GAMMA">
235bf215546Sopenharmony_ci		<value name="OFF" value="0"/>
236bf215546Sopenharmony_ci		<value name="ON"  value="1"/>
237bf215546Sopenharmony_ci	</enum>
238bf215546Sopenharmony_ci
239bf215546Sopenharmony_ci	<enum name="SWIZ">
240bf215546Sopenharmony_ci		<value name="SRCCHAN_0" value="0"/>
241bf215546Sopenharmony_ci		<value name="SRCCHAN_1" value="1"/>
242bf215546Sopenharmony_ci		<value name="SRCCHAN_2" value="2"/>
243bf215546Sopenharmony_ci		<value name="SRCCHAN_3" value="3"/>
244bf215546Sopenharmony_ci		<value name="SRC_ONE"   value="4"/>
245bf215546Sopenharmony_ci		<value name="SRC_ZERO"  value="5"/>
246bf215546Sopenharmony_ci	</enum>
247bf215546Sopenharmony_ci
248bf215546Sopenharmony_ci	<enum name="TEXTYPE">
249bf215546Sopenharmony_ci		<value name="1D"            value="0"/>
250bf215546Sopenharmony_ci		<value name="2D"            value="1"/>
251bf215546Sopenharmony_ci		<value name="3D"            value="2"/>
252bf215546Sopenharmony_ci		<value name="CUBE"          value="3"/>
253bf215546Sopenharmony_ci		<value name="STRIDE"        value="4"/>
254bf215546Sopenharmony_ci		<value name="PAGETILE"      value="5"/>
255bf215546Sopenharmony_ci		<value name="BUFFER_LOOKUP" value="6"/>
256bf215546Sopenharmony_ci	</enum>
257bf215546Sopenharmony_ci
258bf215546Sopenharmony_ci	<enum name="TWOCOMP_GAMMA">
259bf215546Sopenharmony_ci		<value name="OFF" value="0"/>
260bf215546Sopenharmony_ci		<value name="R"   value="1"/>
261bf215546Sopenharmony_ci		<value name="RG"  value="3"/>
262bf215546Sopenharmony_ci	</enum>
263bf215546Sopenharmony_ci
264bf215546Sopenharmony_ci	<struct name="IMAGE_WORD0" length="2">
265bf215546Sopenharmony_ci		<field name="smpcnt" start="62" end="63" type="uint"/>
266bf215546Sopenharmony_ci		<field name="height" start="48" end="61" type="uint"/>
267bf215546Sopenharmony_ci		<field name="width" start="34" end="47" type="uint"/>
268bf215546Sopenharmony_ci		<field name="texformat" start="27" end="33" type="FORMAT"/>
269bf215546Sopenharmony_ci		<field name="texformat_compressed" start="27" end="33" type="FORMAT_COMPRESSED"/>
270bf215546Sopenharmony_ci		<field name="minlod" start="17" end="26" type="uint"/>
271bf215546Sopenharmony_ci		<field name="swiz0" start="14" end="16" type="SWIZ"/>
272bf215546Sopenharmony_ci		<field name="swiz1" start="11" end="13" type="SWIZ"/>
273bf215546Sopenharmony_ci		<field name="swiz2" start="8" end="10" type="SWIZ"/>
274bf215546Sopenharmony_ci		<field name="swiz3" start="5" end="7" type="SWIZ"/>
275bf215546Sopenharmony_ci		<field name="twocomp_gamma" start="3" end="4" type="TWOCOMP_GAMMA"/>
276bf215546Sopenharmony_ci		<field name="gamma" start="3" end="3" type="GAMMA"/>
277bf215546Sopenharmony_ci		<field name="textype" start="0" end="2" type="TEXTYPE"/>
278bf215546Sopenharmony_ci	</struct>
279bf215546Sopenharmony_ci
280bf215546Sopenharmony_ci	<struct name="IMAGE_WORD1" length="2">
281bf215546Sopenharmony_ci		<field name="baselevel" start="60" end="63" type="uint"/>
282bf215546Sopenharmony_ci		<field name="alpha_msb" start="59" end="59" type="bool"/>
283bf215546Sopenharmony_ci		<field name="border" start="58" end="58" type="bool"/>
284bf215546Sopenharmony_ci		<condition type="if" check="TPU_IMAGE_STATE_V2"/>
285bf215546Sopenharmony_ci			<condition type="if" check="TFBC"/>
286bf215546Sopenharmony_ci				<field name="lossy_compression_mode" start="56" end="57" type="COMPRESSION_LEVEL"/>
287bf215546Sopenharmony_ci			<condition type="endif" check="TFBC"/>
288bf215546Sopenharmony_ci			<field name="tpu_image_state_v2_compression_mode" start="54" end="56" type="COMPRESSION_MODE"/>
289bf215546Sopenharmony_ci		<condition type="else" check="TPU_IMAGE_STATE_V2"/>
290bf215546Sopenharmony_ci			<field name="tile_size" start="57" end="57" type="bool"/>
291bf215546Sopenharmony_ci			<field name="index_lookup" start="56" end="56" type="bool"/>
292bf215546Sopenharmony_ci			<field name="frame_buffer_compression" start="55" end="55" type="bool"/>
293bf215546Sopenharmony_ci			<field name="frame_buffer_compression_addressing_mode" start="54" end="54" type="bool"/>
294bf215546Sopenharmony_ci		<condition type="endif" check="TPU_IMAGE_STATE_V2"/>
295bf215546Sopenharmony_ci		<field name="texaddr" start="16" end="53" shift="2" type="address"/>
296bf215546Sopenharmony_ci		<field name="mipmaps_present" start="15" end="15" type="bool"/>
297bf215546Sopenharmony_ci		<field name="depth" start="4" end="14" type="uint"/>
298bf215546Sopenharmony_ci		<field name="num_mip_levels" start="0" end="3" type="uint"/>
299bf215546Sopenharmony_ci	</struct>
300bf215546Sopenharmony_ci
301bf215546Sopenharmony_ci	<struct name="STRIDE_IMAGE_WORD1" length="2">
302bf215546Sopenharmony_ci		<field name="num_mip_levels" start="60" end="63" type="uint"/>
303bf215546Sopenharmony_ci		<field name="alpha_msb" start="59" end="59" type="bool"/>
304bf215546Sopenharmony_ci		<condition type="if" check="TPU_IMAGE_STATE_V2"/>
305bf215546Sopenharmony_ci			<condition type="if" check="TFBC"/>
306bf215546Sopenharmony_ci				<field name="lossy_compression_mode" start="56" end="57" type="COMPRESSION_LEVEL"/>
307bf215546Sopenharmony_ci			<condition type="endif" check="TFBC"/>
308bf215546Sopenharmony_ci			<field name="tpu_image_state_v2_compression_mode" start="54" end="56" type="COMPRESSION_MODE"/>
309bf215546Sopenharmony_ci		<condition type="else" check="TPU_IMAGE_STATE_V2"/>
310bf215546Sopenharmony_ci			<field name="tile_size" start="57" end="57" type="bool"/>
311bf215546Sopenharmony_ci			<field name="index_lookup" start="56" end="56" type="bool"/>
312bf215546Sopenharmony_ci			<field name="frame_buffer_compression" start="55" end="55" type="bool"/>
313bf215546Sopenharmony_ci			<field name="frame_buffer_compression_addressing_mode" start="54" end="54" type="bool"/>
314bf215546Sopenharmony_ci		<condition type="endif" check="TPU_IMAGE_STATE_V2"/>
315bf215546Sopenharmony_ci		<field name="texaddr" start="16" end="53" shift="2" type="address"/>
316bf215546Sopenharmony_ci		<field name="mipmaps_present" start="15" end="15" type="bool"/>
317bf215546Sopenharmony_ci		<field name="stride" start="0" end="14" type="uint"/>
318bf215546Sopenharmony_ci	</struct>
319bf215546Sopenharmony_ci
320bf215546Sopenharmony_ci	<struct name="SAMPLER" length="2">
321bf215546Sopenharmony_ci		<field name="texaddr_plane2_lo" start="50" end="63" shift="2" type="address"/>
322bf215546Sopenharmony_ci		<field name="cmp_mode" start="59" end="61" type="CMP_MODE"/>
323bf215546Sopenharmony_ci		<field name="addrmode_w" start="56" end="58" type="ADDRMODE"/>
324bf215546Sopenharmony_ci		<field name="bordercolor_index" start="50" end="55" type="uint"/>
325bf215546Sopenharmony_ci		<field name="non_normalized_coords" start="49" end="49" type="bool"/>
326bf215546Sopenharmony_ci		<field name="lumakey_alphamult" start="48" end="48" type="bool"/>
327bf215546Sopenharmony_ci		<field name="lumakey" start="47" end="47" type="bool"/>
328bf215546Sopenharmony_ci		<field name="addrmode_v" start="44" end="46" type="ADDRMODE"/>
329bf215546Sopenharmony_ci		<field name="addrmode_u" start="41" end="43" type="ADDRMODE"/>
330bf215546Sopenharmony_ci		<field name="mipfilter" start="40" end="40" type="bool"/>
331bf215546Sopenharmony_ci		<field name="minfilter" start="38" end="39" type="FILTER"/>
332bf215546Sopenharmony_ci		<field name="magfilter" start="36" end="37" type="FILTER"/>
333bf215546Sopenharmony_ci		<field name="anisoctl" start="33" end="35" type="ANISOCTL"/>
334bf215546Sopenharmony_ci		<field name="maxlod" start="23" end="32" type="CLAMP"/>
335bf215546Sopenharmony_ci		<field name="minlod" start="13" end="22" type="CLAMP"/>
336bf215546Sopenharmony_ci		<field name="dadjust" start="0" end="12" type="DADJUST"/>
337bf215546Sopenharmony_ci	</struct>
338bf215546Sopenharmony_ci
339bf215546Sopenharmony_ci	<struct name="SAMPLER_WORD1" length="2">
340bf215546Sopenharmony_ci		<field name="cemedge_dontfilter" start="63" end="63" type="bool"/>
341bf215546Sopenharmony_ci		<field name="texaddr_plane3" start="24" end="61" shift="2" type="address"/>
342bf215546Sopenharmony_ci		<field name="texaddr_plane2_hi" start="0" end="23" shift="16" type="address"/>
343bf215546Sopenharmony_ci	</struct>
344bf215546Sopenharmony_ci
345bf215546Sopenharmony_ci</csbgen>
346