• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef TEXDESC_3D_XML
2 #define TEXDESC_3D_XML
3 
4 /* Autogenerated file, DO NOT EDIT manually!
5 
6 This file was generated by the rules-ng-ng headergen tool in this git repository:
7 http://0x04.net/cgit/index.cgi/rules-ng-ng
8 git clone git://0x04.net/rules-ng-ng
9 
10 The rules-ng-ng source files this header was generated from are:
11 - texdesc_3d.xml (   3183 bytes, from 2018-02-10 13:09:26)
12 - copyright.xml  (   1597 bytes, from 2018-02-10 13:09:26)
13 - common.xml     (  35468 bytes, from 2020-01-04 20:02:31)
14 - common_3d.xml  (  15058 bytes, from 2020-04-17 16:31:50)
15 
16 Copyright (C) 2012-2018 by the following authors:
17 - Wladimir J. van der Laan <laanwj@gmail.com>
18 - Christian Gmeiner <christian.gmeiner@gmail.com>
19 - Lucas Stach <l.stach@pengutronix.de>
20 - Russell King <rmk@arm.linux.org.uk>
21 
22 Permission is hereby granted, free of charge, to any person obtaining a
23 copy of this software and associated documentation files (the "Software"),
24 to deal in the Software without restriction, including without limitation
25 the rights to use, copy, modify, merge, publish, distribute, sub license,
26 and/or sell copies of the Software, and to permit persons to whom the
27 Software is furnished to do so, subject to the following conditions:
28 
29 The above copyright notice and this permission notice (including the
30 next paragraph) shall be included in all copies or substantial portions
31 of the Software.
32 
33 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
36 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
39 DEALINGS IN THE SOFTWARE.
40 */
41 
42 
43 #define TEXDESC_LOD_ADDR(i0)				       (0x00000000 + 0x4*(i0))
44 #define TEXDESC_LOD_ADDR__ESIZE					0x00000004
45 #define TEXDESC_LOD_ADDR__LEN					0x00000010
46 
47 #define TEXDESC_CONFIG0						0x00000040
48 #define TEXDESC_CONFIG0_TYPE__MASK				0x00000007
49 #define TEXDESC_CONFIG0_TYPE__SHIFT				0
50 #define TEXDESC_CONFIG0_TYPE(x)					(((x) << TEXDESC_CONFIG0_TYPE__SHIFT) & TEXDESC_CONFIG0_TYPE__MASK)
51 #define TEXDESC_CONFIG0_UWRAP__MASK				0x00000018
52 #define TEXDESC_CONFIG0_UWRAP__SHIFT				3
53 #define TEXDESC_CONFIG0_UWRAP(x)				(((x) << TEXDESC_CONFIG0_UWRAP__SHIFT) & TEXDESC_CONFIG0_UWRAP__MASK)
54 #define TEXDESC_CONFIG0_VWRAP__MASK				0x00000060
55 #define TEXDESC_CONFIG0_VWRAP__SHIFT				5
56 #define TEXDESC_CONFIG0_VWRAP(x)				(((x) << TEXDESC_CONFIG0_VWRAP__SHIFT) & TEXDESC_CONFIG0_VWRAP__MASK)
57 #define TEXDESC_CONFIG0_MIN__MASK				0x00000180
58 #define TEXDESC_CONFIG0_MIN__SHIFT				7
59 #define TEXDESC_CONFIG0_MIN(x)					(((x) << TEXDESC_CONFIG0_MIN__SHIFT) & TEXDESC_CONFIG0_MIN__MASK)
60 #define TEXDESC_CONFIG0_MIP__MASK				0x00000600
61 #define TEXDESC_CONFIG0_MIP__SHIFT				9
62 #define TEXDESC_CONFIG0_MIP(x)					(((x) << TEXDESC_CONFIG0_MIP__SHIFT) & TEXDESC_CONFIG0_MIP__MASK)
63 #define TEXDESC_CONFIG0_MAG__MASK				0x00001800
64 #define TEXDESC_CONFIG0_MAG__SHIFT				11
65 #define TEXDESC_CONFIG0_MAG(x)					(((x) << TEXDESC_CONFIG0_MAG__SHIFT) & TEXDESC_CONFIG0_MAG__MASK)
66 #define TEXDESC_CONFIG0_FORMAT__MASK				0x0003e000
67 #define TEXDESC_CONFIG0_FORMAT__SHIFT				13
68 #define TEXDESC_CONFIG0_FORMAT(x)				(((x) << TEXDESC_CONFIG0_FORMAT__SHIFT) & TEXDESC_CONFIG0_FORMAT__MASK)
69 #define TEXDESC_CONFIG0_ROUND_UV				0x00080000
70 #define TEXDESC_CONFIG0_ADDRESSING_MODE__MASK			0x00300000
71 #define TEXDESC_CONFIG0_ADDRESSING_MODE__SHIFT			20
72 #define TEXDESC_CONFIG0_ADDRESSING_MODE(x)			(((x) << TEXDESC_CONFIG0_ADDRESSING_MODE__SHIFT) & TEXDESC_CONFIG0_ADDRESSING_MODE__MASK)
73 #define TEXDESC_CONFIG0_ENDIAN__MASK				0x00c00000
74 #define TEXDESC_CONFIG0_ENDIAN__SHIFT				22
75 #define TEXDESC_CONFIG0_ENDIAN(x)				(((x) << TEXDESC_CONFIG0_ENDIAN__SHIFT) & TEXDESC_CONFIG0_ENDIAN__MASK)
76 #define TEXDESC_CONFIG0_ANISOTROPY__MASK			0xff000000
77 #define TEXDESC_CONFIG0_ANISOTROPY__SHIFT			24
78 #define TEXDESC_CONFIG0_ANISOTROPY(x)				(((x) << TEXDESC_CONFIG0_ANISOTROPY__SHIFT) & TEXDESC_CONFIG0_ANISOTROPY__MASK)
79 
80 #define TEXDESC_SIZE						0x00000044
81 #define TEXDESC_SIZE_WIDTH__MASK				0x0000ffff
82 #define TEXDESC_SIZE_WIDTH__SHIFT				0
83 #define TEXDESC_SIZE_WIDTH(x)					(((x) << TEXDESC_SIZE_WIDTH__SHIFT) & TEXDESC_SIZE_WIDTH__MASK)
84 #define TEXDESC_SIZE_HEIGHT__MASK				0xffff0000
85 #define TEXDESC_SIZE_HEIGHT__SHIFT				16
86 #define TEXDESC_SIZE_HEIGHT(x)					(((x) << TEXDESC_SIZE_HEIGHT__SHIFT) & TEXDESC_SIZE_HEIGHT__MASK)
87 
88 #define TEXDESC_LINEAR_STRIDE					0x00000048
89 
90 #define TEXDESC_CONFIG1						0x0000004c
91 #define TEXDESC_CONFIG1_FORMAT_EXT__MASK			0x0000003f
92 #define TEXDESC_CONFIG1_FORMAT_EXT__SHIFT			0
93 #define TEXDESC_CONFIG1_FORMAT_EXT(x)				(((x) << TEXDESC_CONFIG1_FORMAT_EXT__SHIFT) & TEXDESC_CONFIG1_FORMAT_EXT__MASK)
94 #define TEXDESC_CONFIG1_SWIZZLE_R__MASK				0x00000700
95 #define TEXDESC_CONFIG1_SWIZZLE_R__SHIFT			8
96 #define TEXDESC_CONFIG1_SWIZZLE_R(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_R__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_R__MASK)
97 #define TEXDESC_CONFIG1_SWIZZLE_G__MASK				0x00007000
98 #define TEXDESC_CONFIG1_SWIZZLE_G__SHIFT			12
99 #define TEXDESC_CONFIG1_SWIZZLE_G(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_G__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_G__MASK)
100 #define TEXDESC_CONFIG1_SWIZZLE_B__MASK				0x00070000
101 #define TEXDESC_CONFIG1_SWIZZLE_B__SHIFT			16
102 #define TEXDESC_CONFIG1_SWIZZLE_B(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_B__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_B__MASK)
103 #define TEXDESC_CONFIG1_SWIZZLE_A__MASK				0x00700000
104 #define TEXDESC_CONFIG1_SWIZZLE_A__SHIFT			20
105 #define TEXDESC_CONFIG1_SWIZZLE_A(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_A__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_A__MASK)
106 #define TEXDESC_CONFIG1_TS_MODE__MASK				0x00800000
107 #define TEXDESC_CONFIG1_TS_MODE__SHIFT				23
108 #define TEXDESC_CONFIG1_TS_MODE(x)				(((x) << TEXDESC_CONFIG1_TS_MODE__SHIFT) & TEXDESC_CONFIG1_TS_MODE__MASK)
109 #define TEXDESC_CONFIG1_TEXTURE_ARRAY				0x01000000
110 #define TEXDESC_CONFIG1_SEAMLESS_CUBE_MAP			0x02000000
111 #define TEXDESC_CONFIG1_HALIGN__MASK				0x1c000000
112 #define TEXDESC_CONFIG1_HALIGN__SHIFT				26
113 #define TEXDESC_CONFIG1_HALIGN(x)				(((x) << TEXDESC_CONFIG1_HALIGN__SHIFT) & TEXDESC_CONFIG1_HALIGN__MASK)
114 #define TEXDESC_CONFIG1_USE_TS					0x40000000
115 
116 #define TEXDESC_CONTROL_YUV					0x00000050
117 
118 #define TEXDESC_STRIDE_YUV					0x00000054
119 
120 #define TEXDESC_ASTC0						0x00000058
121 #define TEXDESC_ASTC0_ASTC_FORMAT__MASK				0x0000000f
122 #define TEXDESC_ASTC0_ASTC_FORMAT__SHIFT			0
123 #define TEXDESC_ASTC0_ASTC_FORMAT(x)				(((x) << TEXDESC_ASTC0_ASTC_FORMAT__SHIFT) & TEXDESC_ASTC0_ASTC_FORMAT__MASK)
124 #define TEXDESC_ASTC0_ASTC_SRGB					0x00000010
125 #define TEXDESC_ASTC0_UNK8__MASK				0x0000ff00
126 #define TEXDESC_ASTC0_UNK8__SHIFT				8
127 #define TEXDESC_ASTC0_UNK8(x)					(((x) << TEXDESC_ASTC0_UNK8__SHIFT) & TEXDESC_ASTC0_UNK8__MASK)
128 #define TEXDESC_ASTC0_UNK16__MASK				0x00ff0000
129 #define TEXDESC_ASTC0_UNK16__SHIFT				16
130 #define TEXDESC_ASTC0_UNK16(x)					(((x) << TEXDESC_ASTC0_UNK16__SHIFT) & TEXDESC_ASTC0_UNK16__MASK)
131 #define TEXDESC_ASTC0_UNK24__MASK				0xff000000
132 #define TEXDESC_ASTC0_UNK24__SHIFT				24
133 #define TEXDESC_ASTC0_UNK24(x)					(((x) << TEXDESC_ASTC0_UNK24__SHIFT) & TEXDESC_ASTC0_UNK24__MASK)
134 
135 #define TEXDESC_ASTC1						0x0000005c
136 
137 #define TEXDESC_ASTC2						0x00000060
138 
139 #define TEXDESC_ASTC3						0x00000064
140 
141 #define TEXDESC_BASELOD						0x00000068
142 #define TEXDESC_BASELOD_BASELOD__MASK				0x0000000f
143 #define TEXDESC_BASELOD_BASELOD__SHIFT				0
144 #define TEXDESC_BASELOD_BASELOD(x)				(((x) << TEXDESC_BASELOD_BASELOD__SHIFT) & TEXDESC_BASELOD_BASELOD__MASK)
145 #define TEXDESC_BASELOD_MAXLOD__MASK				0x00000f00
146 #define TEXDESC_BASELOD_MAXLOD__SHIFT				8
147 #define TEXDESC_BASELOD_MAXLOD(x)				(((x) << TEXDESC_BASELOD_MAXLOD__SHIFT) & TEXDESC_BASELOD_MAXLOD__MASK)
148 #define TEXDESC_BASELOD_COMPARE_ENABLE				0x00010000
149 #define TEXDESC_BASELOD_COMPARE_FUNC__MASK			0x00700000
150 #define TEXDESC_BASELOD_COMPARE_FUNC__SHIFT			20
151 #define TEXDESC_BASELOD_COMPARE_FUNC(x)				(((x) << TEXDESC_BASELOD_COMPARE_FUNC__SHIFT) & TEXDESC_BASELOD_COMPARE_FUNC__MASK)
152 #define TEXDESC_BASELOD_BASELOD_ENABLE				0x00800000
153 
154 #define TEXDESC_CONFIG2						0x0000006c
155 
156 #define TEXDESC_CONFIG3						0x00000070
157 
158 #define TEXDESC_LOG_SIZE_EXT					0x00000074
159 #define TEXDESC_LOG_SIZE_EXT_WIDTH__MASK			0x0000ffff
160 #define TEXDESC_LOG_SIZE_EXT_WIDTH__SHIFT			0
161 #define TEXDESC_LOG_SIZE_EXT_WIDTH(x)				(((x) << TEXDESC_LOG_SIZE_EXT_WIDTH__SHIFT) & TEXDESC_LOG_SIZE_EXT_WIDTH__MASK)
162 #define TEXDESC_LOG_SIZE_EXT_HEIGHT__MASK			0xffff0000
163 #define TEXDESC_LOG_SIZE_EXT_HEIGHT__SHIFT			16
164 #define TEXDESC_LOG_SIZE_EXT_HEIGHT(x)				(((x) << TEXDESC_LOG_SIZE_EXT_HEIGHT__SHIFT) & TEXDESC_LOG_SIZE_EXT_HEIGHT__MASK)
165 
166 #define TEXDESC_VOLUME						0x00000078
167 
168 #define TEXDESC_SLICE						0x0000007c
169 
170 #define TEXDESC_BORDER_COLOR					0x00000080
171 
172 #define TEXDESC_3D_CONFIG					0x00000084
173 #define TEXDESC_3D_CONFIG_DEPTH__MASK				0x00003fff
174 #define TEXDESC_3D_CONFIG_DEPTH__SHIFT				0
175 #define TEXDESC_3D_CONFIG_DEPTH(x)				(((x) << TEXDESC_3D_CONFIG_DEPTH__SHIFT) & TEXDESC_3D_CONFIG_DEPTH__MASK)
176 #define TEXDESC_3D_CONFIG_LOG_DEPTH__MASK			0x03ff0000
177 #define TEXDESC_3D_CONFIG_LOG_DEPTH__SHIFT			16
178 #define TEXDESC_3D_CONFIG_LOG_DEPTH(x)				(((x) << TEXDESC_3D_CONFIG_LOG_DEPTH__SHIFT) & TEXDESC_3D_CONFIG_LOG_DEPTH__MASK)
179 #define TEXDESC_3D_CONFIG_WRAP__MASK				0x30000000
180 #define TEXDESC_3D_CONFIG_WRAP__SHIFT				28
181 #define TEXDESC_3D_CONFIG_WRAP(x)				(((x) << TEXDESC_3D_CONFIG_WRAP__SHIFT) & TEXDESC_3D_CONFIG_WRAP__MASK)
182 
183 #define TEXDESC_LOG_SIZE					0x00000088
184 #define TEXDESC_LOG_SIZE_WIDTH__MASK				0x000003ff
185 #define TEXDESC_LOG_SIZE_WIDTH__SHIFT				0
186 #define TEXDESC_LOG_SIZE_WIDTH(x)				(((x) << TEXDESC_LOG_SIZE_WIDTH__SHIFT) & TEXDESC_LOG_SIZE_WIDTH__MASK)
187 #define TEXDESC_LOG_SIZE_HEIGHT__MASK				0x000ffc00
188 #define TEXDESC_LOG_SIZE_HEIGHT__SHIFT				10
189 #define TEXDESC_LOG_SIZE_HEIGHT(x)				(((x) << TEXDESC_LOG_SIZE_HEIGHT__SHIFT) & TEXDESC_LOG_SIZE_HEIGHT__MASK)
190 #define TEXDESC_LOG_SIZE_ASTC					0x10000000
191 #define TEXDESC_LOG_SIZE_INT_FILTER				0x20000000
192 #define TEXDESC_LOG_SIZE_SRGB					0x80000000
193 
194 #define TEXDESC_BORDER_COLOR_R					0x0000008c
195 
196 #define TEXDESC_BORDER_COLOR_G					0x00000090
197 
198 #define TEXDESC_BORDER_COLOR_B					0x00000094
199 
200 #define TEXDESC_BORDER_COLOR_A					0x00000098
201 
202 
203 #endif /* TEXDESC_3D_XML */
204