• 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 2017-10-31 19:05:01)
12 - copyright.xml  (   1597 bytes, from 2016-10-29 07:29:22)
13 - common.xml     (  26187 bytes, from 2017-10-31 19:05:01)
14 - common_3d.xml  (  14615 bytes, from 2017-11-04 14:03:35)
15 
16 Copyright (C) 2012-2017 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_ENDIAN__MASK				0x00c00000
71 #define TEXDESC_CONFIG0_ENDIAN__SHIFT				22
72 #define TEXDESC_CONFIG0_ENDIAN(x)				(((x) << TEXDESC_CONFIG0_ENDIAN__SHIFT) & TEXDESC_CONFIG0_ENDIAN__MASK)
73 #define TEXDESC_CONFIG0_ANISOTROPY__MASK			0xff000000
74 #define TEXDESC_CONFIG0_ANISOTROPY__SHIFT			24
75 #define TEXDESC_CONFIG0_ANISOTROPY(x)				(((x) << TEXDESC_CONFIG0_ANISOTROPY__SHIFT) & TEXDESC_CONFIG0_ANISOTROPY__MASK)
76 
77 #define TEXDESC_SIZE						0x00000044
78 #define TEXDESC_SIZE_WIDTH__MASK				0x0000ffff
79 #define TEXDESC_SIZE_WIDTH__SHIFT				0
80 #define TEXDESC_SIZE_WIDTH(x)					(((x) << TEXDESC_SIZE_WIDTH__SHIFT) & TEXDESC_SIZE_WIDTH__MASK)
81 #define TEXDESC_SIZE_HEIGHT__MASK				0xffff0000
82 #define TEXDESC_SIZE_HEIGHT__SHIFT				16
83 #define TEXDESC_SIZE_HEIGHT(x)					(((x) << TEXDESC_SIZE_HEIGHT__SHIFT) & TEXDESC_SIZE_HEIGHT__MASK)
84 
85 #define TEXDESC_LINEAR_STRIDE					0x00000048
86 
87 #define TEXDESC_CONFIG1						0x0000004c
88 #define TEXDESC_CONFIG1_FORMAT_EXT__MASK			0x0000003f
89 #define TEXDESC_CONFIG1_FORMAT_EXT__SHIFT			0
90 #define TEXDESC_CONFIG1_FORMAT_EXT(x)				(((x) << TEXDESC_CONFIG1_FORMAT_EXT__SHIFT) & TEXDESC_CONFIG1_FORMAT_EXT__MASK)
91 #define TEXDESC_CONFIG1_SWIZZLE_R__MASK				0x00000700
92 #define TEXDESC_CONFIG1_SWIZZLE_R__SHIFT			8
93 #define TEXDESC_CONFIG1_SWIZZLE_R(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_R__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_R__MASK)
94 #define TEXDESC_CONFIG1_SWIZZLE_G__MASK				0x00007000
95 #define TEXDESC_CONFIG1_SWIZZLE_G__SHIFT			12
96 #define TEXDESC_CONFIG1_SWIZZLE_G(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_G__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_G__MASK)
97 #define TEXDESC_CONFIG1_SWIZZLE_B__MASK				0x00070000
98 #define TEXDESC_CONFIG1_SWIZZLE_B__SHIFT			16
99 #define TEXDESC_CONFIG1_SWIZZLE_B(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_B__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_B__MASK)
100 #define TEXDESC_CONFIG1_SWIZZLE_A__MASK				0x00700000
101 #define TEXDESC_CONFIG1_SWIZZLE_A__SHIFT			20
102 #define TEXDESC_CONFIG1_SWIZZLE_A(x)				(((x) << TEXDESC_CONFIG1_SWIZZLE_A__SHIFT) & TEXDESC_CONFIG1_SWIZZLE_A__MASK)
103 #define TEXDESC_CONFIG1_CACHE_MODE__MASK			0x00800000
104 #define TEXDESC_CONFIG1_CACHE_MODE__SHIFT			23
105 #define TEXDESC_CONFIG1_CACHE_MODE(x)				(((x) << TEXDESC_CONFIG1_CACHE_MODE__SHIFT) & TEXDESC_CONFIG1_CACHE_MODE__MASK)
106 #define TEXDESC_CONFIG1_TEXTURE_ARRAY				0x01000000
107 #define TEXDESC_CONFIG1_UNK25					0x02000000
108 #define TEXDESC_CONFIG1_HALIGN__MASK				0x1c000000
109 #define TEXDESC_CONFIG1_HALIGN__SHIFT				26
110 #define TEXDESC_CONFIG1_HALIGN(x)				(((x) << TEXDESC_CONFIG1_HALIGN__SHIFT) & TEXDESC_CONFIG1_HALIGN__MASK)
111 #define TEXDESC_CONFIG1_USE_TS					0x40000000
112 
113 #define TEXDESC_CONTROL_YUV					0x00000050
114 
115 #define TEXDESC_STRIDE_YUV					0x00000054
116 
117 #define TEXDESC_ASTC0						0x00000058
118 #define TEXDESC_ASTC0_ASTC_FORMAT__MASK				0x000000ff
119 #define TEXDESC_ASTC0_ASTC_FORMAT__SHIFT			0
120 #define TEXDESC_ASTC0_ASTC_FORMAT(x)				(((x) << TEXDESC_ASTC0_ASTC_FORMAT__SHIFT) & TEXDESC_ASTC0_ASTC_FORMAT__MASK)
121 #define TEXDESC_ASTC0_UNK8__MASK				0x0000ff00
122 #define TEXDESC_ASTC0_UNK8__SHIFT				8
123 #define TEXDESC_ASTC0_UNK8(x)					(((x) << TEXDESC_ASTC0_UNK8__SHIFT) & TEXDESC_ASTC0_UNK8__MASK)
124 #define TEXDESC_ASTC0_UNK16__MASK				0x00ff0000
125 #define TEXDESC_ASTC0_UNK16__SHIFT				16
126 #define TEXDESC_ASTC0_UNK16(x)					(((x) << TEXDESC_ASTC0_UNK16__SHIFT) & TEXDESC_ASTC0_UNK16__MASK)
127 #define TEXDESC_ASTC0_UNK24__MASK				0xff000000
128 #define TEXDESC_ASTC0_UNK24__SHIFT				24
129 #define TEXDESC_ASTC0_UNK24(x)					(((x) << TEXDESC_ASTC0_UNK24__SHIFT) & TEXDESC_ASTC0_UNK24__MASK)
130 
131 #define TEXDESC_ASTC1						0x0000005c
132 
133 #define TEXDESC_ASTC2						0x00000060
134 
135 #define TEXDESC_ASTC3						0x00000064
136 
137 #define TEXDESC_BASELOD						0x00000068
138 #define TEXDESC_BASELOD_UNK23					0x00800000
139 #define TEXDESC_BASELOD_BASELOD__MASK				0x0000000f
140 #define TEXDESC_BASELOD_BASELOD__SHIFT				0
141 #define TEXDESC_BASELOD_BASELOD(x)				(((x) << TEXDESC_BASELOD_BASELOD__SHIFT) & TEXDESC_BASELOD_BASELOD__MASK)
142 #define TEXDESC_BASELOD_MAXLOD__MASK				0x00000f00
143 #define TEXDESC_BASELOD_MAXLOD__SHIFT				8
144 #define TEXDESC_BASELOD_MAXLOD(x)				(((x) << TEXDESC_BASELOD_MAXLOD__SHIFT) & TEXDESC_BASELOD_MAXLOD__MASK)
145 
146 #define TEXDESC_CONFIG2						0x0000006c
147 
148 #define TEXDESC_CONFIG3						0x00000070
149 
150 #define TEXDESC_LOG_SIZE_EXT					0x00000074
151 #define TEXDESC_LOG_SIZE_EXT_WIDTH__MASK			0x0000ffff
152 #define TEXDESC_LOG_SIZE_EXT_WIDTH__SHIFT			0
153 #define TEXDESC_LOG_SIZE_EXT_WIDTH(x)				(((x) << TEXDESC_LOG_SIZE_EXT_WIDTH__SHIFT) & TEXDESC_LOG_SIZE_EXT_WIDTH__MASK)
154 #define TEXDESC_LOG_SIZE_EXT_HEIGHT__MASK			0xffff0000
155 #define TEXDESC_LOG_SIZE_EXT_HEIGHT__SHIFT			16
156 #define TEXDESC_LOG_SIZE_EXT_HEIGHT(x)				(((x) << TEXDESC_LOG_SIZE_EXT_HEIGHT__SHIFT) & TEXDESC_LOG_SIZE_EXT_HEIGHT__MASK)
157 
158 #define TEXDESC_VOLUME						0x00000078
159 
160 #define TEXDESC_SLICE						0x0000007c
161 
162 #define TEXDESC_BORDER_COLOR					0x00000080
163 
164 #define TEXDESC_3D_CONFIG					0x00000084
165 #define TEXDESC_3D_CONFIG_DEPTH__MASK				0x00003fff
166 #define TEXDESC_3D_CONFIG_DEPTH__SHIFT				0
167 #define TEXDESC_3D_CONFIG_DEPTH(x)				(((x) << TEXDESC_3D_CONFIG_DEPTH__SHIFT) & TEXDESC_3D_CONFIG_DEPTH__MASK)
168 #define TEXDESC_3D_CONFIG_LOG_DEPTH__MASK			0x03ff0000
169 #define TEXDESC_3D_CONFIG_LOG_DEPTH__SHIFT			16
170 #define TEXDESC_3D_CONFIG_LOG_DEPTH(x)				(((x) << TEXDESC_3D_CONFIG_LOG_DEPTH__SHIFT) & TEXDESC_3D_CONFIG_LOG_DEPTH__MASK)
171 #define TEXDESC_3D_CONFIG_WRAP__MASK				0x30000000
172 #define TEXDESC_3D_CONFIG_WRAP__SHIFT				28
173 #define TEXDESC_3D_CONFIG_WRAP(x)				(((x) << TEXDESC_3D_CONFIG_WRAP__SHIFT) & TEXDESC_3D_CONFIG_WRAP__MASK)
174 
175 #define TEXDESC_LOG_SIZE					0x00000088
176 #define TEXDESC_LOG_SIZE_WIDTH__MASK				0x000003ff
177 #define TEXDESC_LOG_SIZE_WIDTH__SHIFT				0
178 #define TEXDESC_LOG_SIZE_WIDTH(x)				(((x) << TEXDESC_LOG_SIZE_WIDTH__SHIFT) & TEXDESC_LOG_SIZE_WIDTH__MASK)
179 #define TEXDESC_LOG_SIZE_HEIGHT__MASK				0x000ffc00
180 #define TEXDESC_LOG_SIZE_HEIGHT__SHIFT				10
181 #define TEXDESC_LOG_SIZE_HEIGHT(x)				(((x) << TEXDESC_LOG_SIZE_HEIGHT__SHIFT) & TEXDESC_LOG_SIZE_HEIGHT__MASK)
182 #define TEXDESC_LOG_SIZE_ASTC					0x10000000
183 #define TEXDESC_LOG_SIZE_RGB					0x20000000
184 #define TEXDESC_LOG_SIZE_SRGB					0x80000000
185 
186 #define TEXDESC_BORDER_COLOR_R					0x0000008c
187 
188 #define TEXDESC_BORDER_COLOR_G					0x00000090
189 
190 #define TEXDESC_BORDER_COLOR_B					0x00000094
191 
192 #define TEXDESC_BORDER_COLOR_A					0x00000098
193 
194 
195 #endif /* TEXDESC_3D_XML */
196