xref: /linux/drivers/gpu/drm/etnaviv/state.xml.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 #ifndef STATE_XML
2 #define STATE_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 - state.xml     (  29355 bytes, from 2024-01-19 10:18:54)
12 - common.xml    (  35664 bytes, from 2023-12-06 10:55:32)
13 - common_3d.xml (  15069 bytes, from 2023-11-22 10:05:24)
14 - state_hi.xml  (  35854 bytes, from 2023-12-11 15:50:17)
15 - copyright.xml (   1597 bytes, from 2016-11-10 13:58:32)
16 - state_2d.xml  (  52271 bytes, from 2023-06-02 12:35:03)
17 - state_3d.xml  (  89522 bytes, from 2024-01-19 10:18:54)
18 - state_blt.xml (  14592 bytes, from 2023-11-22 10:05:09)
19 - state_vg.xml  (   5975 bytes, from 2016-11-10 13:58:32)
20 
21 Copyright (C) 2012-2024 by the following authors:
22 - Wladimir J. van der Laan <laanwj@gmail.com>
23 - Christian Gmeiner <christian.gmeiner@gmail.com>
24 - Lucas Stach <l.stach@pengutronix.de>
25 - Russell King <rmk@arm.linux.org.uk>
26 
27 Permission is hereby granted, free of charge, to any person obtaining a
28 copy of this software and associated documentation files (the "Software"),
29 to deal in the Software without restriction, including without limitation
30 the rights to use, copy, modify, merge, publish, distribute, sub license,
31 and/or sell copies of the Software, and to permit persons to whom the
32 Software is furnished to do so, subject to the following conditions:
33 
34 The above copyright notice and this permission notice (including the
35 next paragraph) shall be included in all copies or substantial portions
36 of the Software.
37 
38 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
41 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
44 DEALINGS IN THE SOFTWARE.
45 */
46 
47 
48 #define VARYING_COMPONENT_USE_UNUSED				0x00000000
49 #define VARYING_COMPONENT_USE_USED				0x00000001
50 #define VARYING_COMPONENT_USE_POINTCOORD_X			0x00000002
51 #define VARYING_COMPONENT_USE_POINTCOORD_Y			0x00000003
52 #define FE_DATA_TYPE_BYTE					0x00000000
53 #define FE_DATA_TYPE_UNSIGNED_BYTE				0x00000001
54 #define FE_DATA_TYPE_SHORT					0x00000002
55 #define FE_DATA_TYPE_UNSIGNED_SHORT				0x00000003
56 #define FE_DATA_TYPE_INT					0x00000004
57 #define FE_DATA_TYPE_UNSIGNED_INT				0x00000005
58 #define FE_DATA_TYPE_INT_2_10_10_10_REV				0x00000006
59 #define FE_DATA_TYPE_UNSIGNED_INT_2_10_10_10_REV		0x00000007
60 #define FE_DATA_TYPE_FLOAT					0x00000008
61 #define FE_DATA_TYPE_HALF_FLOAT					0x00000009
62 #define FE_DATA_TYPE_FIXED					0x0000000b
63 #define FE_DATA_TYPE_INT_10_10_10_2				0x0000000c
64 #define FE_DATA_TYPE_UNSIGNED_INT_10_10_10_2			0x0000000d
65 #define FE_DATA_TYPE_BYTE_I					0x0000000e
66 #define FE_DATA_TYPE_SHORT_I					0x0000000f
67 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__MASK		0x000000ff
68 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__SHIFT		0
69 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE(x)		(((x) << FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__SHIFT) & FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__MASK)
70 #define FE_VERTEX_STREAM_CONTROL_VERTEX_DIVISOR__MASK		0x00ff0000
71 #define FE_VERTEX_STREAM_CONTROL_VERTEX_DIVISOR__SHIFT		16
72 #define FE_VERTEX_STREAM_CONTROL_VERTEX_DIVISOR(x)		(((x) << FE_VERTEX_STREAM_CONTROL_VERTEX_DIVISOR__SHIFT) & FE_VERTEX_STREAM_CONTROL_VERTEX_DIVISOR__MASK)
73 #define VIVS_FE							0x00000000
74 
75 #define VIVS_FE_VERTEX_ELEMENT_CONFIG(i0)		       (0x00000600 + 0x4*(i0))
76 #define VIVS_FE_VERTEX_ELEMENT_CONFIG__ESIZE			0x00000004
77 #define VIVS_FE_VERTEX_ELEMENT_CONFIG__LEN			0x00000010
78 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__MASK		0x0000000f
79 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__SHIFT		0
80 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__MASK)
81 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__MASK		0x00000030
82 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__SHIFT		4
83 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__MASK)
84 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NONCONSECUTIVE		0x00000080
85 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__MASK		0x00000700
86 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__SHIFT		8
87 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__MASK)
88 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__MASK			0x00003000
89 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__SHIFT		12
90 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__MASK)
91 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE__MASK		0x0000c000
92 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE__SHIFT		14
93 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_OFF		0x00000000
94 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_SIGN_EXTEND	0x00004000
95 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_ON		0x00008000
96 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START__MASK		0x00ff0000
97 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START__SHIFT		16
98 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_START__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_START__MASK)
99 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END__MASK			0xff000000
100 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END__SHIFT		24
101 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END(x)			(((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_END__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_END__MASK)
102 
103 #define VIVS_FE_CMD_STREAM_BASE_ADDR				0x00000640
104 
105 #define VIVS_FE_INDEX_STREAM_BASE_ADDR				0x00000644
106 
107 #define VIVS_FE_INDEX_STREAM_CONTROL				0x00000648
108 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE__MASK			0x00000003
109 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE__SHIFT		0
110 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_CHAR		0x00000000
111 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_SHORT	0x00000001
112 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_INT		0x00000002
113 #define VIVS_FE_INDEX_STREAM_CONTROL_PRIMITIVE_RESTART		0x00000100
114 
115 #define VIVS_FE_VERTEX_STREAM_BASE_ADDR				0x0000064c
116 
117 #define VIVS_FE_VERTEX_STREAM_CONTROL				0x00000650
118 
119 #define VIVS_FE_COMMAND_ADDRESS					0x00000654
120 
121 #define VIVS_FE_COMMAND_CONTROL					0x00000658
122 #define VIVS_FE_COMMAND_CONTROL_PREFETCH__MASK			0x0000ffff
123 #define VIVS_FE_COMMAND_CONTROL_PREFETCH__SHIFT			0
124 #define VIVS_FE_COMMAND_CONTROL_PREFETCH(x)			(((x) << VIVS_FE_COMMAND_CONTROL_PREFETCH__SHIFT) & VIVS_FE_COMMAND_CONTROL_PREFETCH__MASK)
125 #define VIVS_FE_COMMAND_CONTROL_ENABLE				0x00010000
126 
127 #define VIVS_FE_DMA_STATUS					0x0000065c
128 
129 #define VIVS_FE_DMA_DEBUG_STATE					0x00000660
130 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE__MASK			0x0000001f
131 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE__SHIFT		0
132 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_IDLE			0x00000000
133 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DEC			0x00000001
134 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_ADR0			0x00000002
135 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LOAD0			0x00000003
136 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_ADR1			0x00000004
137 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LOAD1			0x00000005
138 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DADR			0x00000006
139 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DCMD			0x00000007
140 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DCNTL		0x00000008
141 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DIDXCNTL		0x00000009
142 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_INITREQDMA		0x0000000a
143 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DRAWIDX		0x0000000b
144 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DRAW			0x0000000c
145 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DRECT0		0x0000000d
146 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DRECT1		0x0000000e
147 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DDATA0		0x0000000f
148 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DDATA1		0x00000010
149 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_WAITFIFO		0x00000011
150 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_WAIT			0x00000012
151 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LINK			0x00000013
152 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_END			0x00000014
153 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_STALL			0x00000015
154 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE__MASK		0x00000300
155 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE__SHIFT		8
156 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_IDLE		0x00000000
157 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_START		0x00000100
158 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_REQ		0x00000200
159 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_END		0x00000300
160 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE__MASK		0x00000c00
161 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE__SHIFT		10
162 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_IDLE		0x00000000
163 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_RAMVALID	0x00000400
164 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_VALID		0x00000800
165 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE__MASK		0x00003000
166 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE__SHIFT		12
167 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_IDLE		0x00000000
168 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_WAITIDX		0x00001000
169 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_CAL		0x00002000
170 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE__MASK			0x0000c000
171 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE__SHIFT		14
172 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_IDLE			0x00000000
173 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_LDADR			0x00004000
174 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_IDXCALC		0x00008000
175 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE__MASK		0x00030000
176 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE__SHIFT		16
177 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_IDLE		0x00000000
178 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_CKCACHE		0x00010000
179 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_MISS		0x00020000
180 
181 #define VIVS_FE_DMA_ADDRESS					0x00000664
182 
183 #define VIVS_FE_DMA_LOW						0x00000668
184 
185 #define VIVS_FE_DMA_HIGH					0x0000066c
186 
187 #define VIVS_FE_AUTO_FLUSH					0x00000670
188 
189 #define VIVS_FE_PRIMITIVE_RESTART_INDEX				0x00000674
190 
191 #define VIVS_FE_UNK00678					0x00000678
192 
193 #define VIVS_FE_UNK0067C					0x0000067c
194 
195 #define VIVS_FE_VERTEX_STREAMS(i0)			       (0x00000000 + 0x4*(i0))
196 #define VIVS_FE_VERTEX_STREAMS__ESIZE				0x00000004
197 #define VIVS_FE_VERTEX_STREAMS__LEN				0x00000008
198 
199 #define VIVS_FE_VERTEX_STREAMS_BASE_ADDR(i0)		       (0x00000680 + 0x4*(i0))
200 
201 #define VIVS_FE_VERTEX_STREAMS_CONTROL(i0)		       (0x000006a0 + 0x4*(i0))
202 
203 #define VIVS_FE_GENERIC_ATTRIB(i0)			       (0x00000000 + 0x4*(i0))
204 #define VIVS_FE_GENERIC_ATTRIB__ESIZE				0x00000004
205 #define VIVS_FE_GENERIC_ATTRIB__LEN				0x00000010
206 
207 #define VIVS_FE_GENERIC_ATTRIB_UNK006C0(i0)		       (0x000006c0 + 0x4*(i0))
208 
209 #define VIVS_FE_GENERIC_ATTRIB_UNK00700(i0)		       (0x00000700 + 0x4*(i0))
210 
211 #define VIVS_FE_GENERIC_ATTRIB_UNK00740(i0)		       (0x00000740 + 0x4*(i0))
212 
213 #define VIVS_FE_GENERIC_ATTRIB_SCALE(i0)		       (0x00000780 + 0x4*(i0))
214 
215 #define VIVS_FE_HALTI5_ID_CONFIG				0x000007c4
216 #define VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_ENABLE		0x00000001
217 #define VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_ENABLE		0x00000002
218 #define VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_REG__MASK		0x0000ff00
219 #define VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_REG__SHIFT		8
220 #define VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_REG(x)		(((x) << VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_REG__SHIFT) & VIVS_FE_HALTI5_ID_CONFIG_VERTEX_ID_REG__MASK)
221 #define VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_REG__MASK		0x00ff0000
222 #define VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_REG__SHIFT		16
223 #define VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_REG(x)		(((x) << VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_REG__SHIFT) & VIVS_FE_HALTI5_ID_CONFIG_INSTANCE_ID_REG__MASK)
224 
225 #define VIVS_FE_HALTI5_UNK007D0(i0)			       (0x000007d0 + 0x4*(i0))
226 #define VIVS_FE_HALTI5_UNK007D0__ESIZE				0x00000004
227 #define VIVS_FE_HALTI5_UNK007D0__LEN				0x00000002
228 
229 #define VIVS_FE_HALTI5_UNK007D8					0x000007d8
230 
231 #define VIVS_FE_DESC_START					0x000007dc
232 
233 #define VIVS_FE_DESC_END					0x000007e0
234 
235 #define VIVS_FE_DESC_AVAIL					0x000007e4
236 #define VIVS_FE_DESC_AVAIL_COUNT__MASK				0x0000007f
237 #define VIVS_FE_DESC_AVAIL_COUNT__SHIFT				0
238 #define VIVS_FE_DESC_AVAIL_COUNT(x)				(((x) << VIVS_FE_DESC_AVAIL_COUNT__SHIFT) & VIVS_FE_DESC_AVAIL_COUNT__MASK)
239 
240 #define VIVS_FE_FENCE_WAIT_DATA_LOW				0x000007e8
241 
242 #define VIVS_FE_FENCE_WAIT_DATA_HIGH				0x000007f4
243 
244 #define VIVS_FE_ROBUSTNESS_UNK007F8				0x000007f8
245 
246 #define VIVS_FE_MULTI_CLUSTER_UNK007FC				0x000007fc
247 
248 #define VIVS_GL							0x00000000
249 
250 #define VIVS_GL_PIPE_SELECT					0x00003800
251 #define VIVS_GL_PIPE_SELECT_PIPE__MASK				0x00000001
252 #define VIVS_GL_PIPE_SELECT_PIPE__SHIFT				0
253 #define VIVS_GL_PIPE_SELECT_PIPE(x)				(((x) << VIVS_GL_PIPE_SELECT_PIPE__SHIFT) & VIVS_GL_PIPE_SELECT_PIPE__MASK)
254 
255 #define VIVS_GL_EVENT						0x00003804
256 #define VIVS_GL_EVENT_EVENT_ID__MASK				0x0000001f
257 #define VIVS_GL_EVENT_EVENT_ID__SHIFT				0
258 #define VIVS_GL_EVENT_EVENT_ID(x)				(((x) << VIVS_GL_EVENT_EVENT_ID__SHIFT) & VIVS_GL_EVENT_EVENT_ID__MASK)
259 #define VIVS_GL_EVENT_FROM_FE					0x00000020
260 #define VIVS_GL_EVENT_FROM_PE					0x00000040
261 #define VIVS_GL_EVENT_FROM_BLT					0x00000080
262 #define VIVS_GL_EVENT_SOURCE__MASK				0x00001f00
263 #define VIVS_GL_EVENT_SOURCE__SHIFT				8
264 #define VIVS_GL_EVENT_SOURCE(x)					(((x) << VIVS_GL_EVENT_SOURCE__SHIFT) & VIVS_GL_EVENT_SOURCE__MASK)
265 
266 #define VIVS_GL_SEMAPHORE_TOKEN					0x00003808
267 #define VIVS_GL_SEMAPHORE_TOKEN_FROM__MASK			0x0000001f
268 #define VIVS_GL_SEMAPHORE_TOKEN_FROM__SHIFT			0
269 #define VIVS_GL_SEMAPHORE_TOKEN_FROM(x)				(((x) << VIVS_GL_SEMAPHORE_TOKEN_FROM__SHIFT) & VIVS_GL_SEMAPHORE_TOKEN_FROM__MASK)
270 #define VIVS_GL_SEMAPHORE_TOKEN_TO__MASK			0x00001f00
271 #define VIVS_GL_SEMAPHORE_TOKEN_TO__SHIFT			8
272 #define VIVS_GL_SEMAPHORE_TOKEN_TO(x)				(((x) << VIVS_GL_SEMAPHORE_TOKEN_TO__SHIFT) & VIVS_GL_SEMAPHORE_TOKEN_TO__MASK)
273 #define VIVS_GL_SEMAPHORE_TOKEN_UNK28__MASK			0x30000000
274 #define VIVS_GL_SEMAPHORE_TOKEN_UNK28__SHIFT			28
275 #define VIVS_GL_SEMAPHORE_TOKEN_UNK28(x)			(((x) << VIVS_GL_SEMAPHORE_TOKEN_UNK28__SHIFT) & VIVS_GL_SEMAPHORE_TOKEN_UNK28__MASK)
276 
277 #define VIVS_GL_FLUSH_CACHE					0x0000380c
278 #define VIVS_GL_FLUSH_CACHE_DEPTH				0x00000001
279 #define VIVS_GL_FLUSH_CACHE_COLOR				0x00000002
280 #define VIVS_GL_FLUSH_CACHE_TEXTURE				0x00000004
281 #define VIVS_GL_FLUSH_CACHE_PE2D				0x00000008
282 #define VIVS_GL_FLUSH_CACHE_TEXTUREVS				0x00000010
283 #define VIVS_GL_FLUSH_CACHE_SHADER_L1				0x00000020
284 #define VIVS_GL_FLUSH_CACHE_SHADER_L2				0x00000040
285 #define VIVS_GL_FLUSH_CACHE_UNK10				0x00000400
286 #define VIVS_GL_FLUSH_CACHE_UNK11				0x00000800
287 #define VIVS_GL_FLUSH_CACHE_DESCRIPTOR_UNK12			0x00001000
288 #define VIVS_GL_FLUSH_CACHE_DESCRIPTOR_UNK13			0x00002000
289 #define VIVS_GL_FLUSH_CACHE_UNK14				0x00004000
290 
291 #define VIVS_GL_FLUSH_MMU					0x00003810
292 #define VIVS_GL_FLUSH_MMU_FLUSH_FEMMU				0x00000001
293 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK1				0x00000002
294 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK2				0x00000004
295 #define VIVS_GL_FLUSH_MMU_FLUSH_PEMMU				0x00000008
296 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK4				0x00000010
297 
298 #define VIVS_GL_VERTEX_ELEMENT_CONFIG				0x00003814
299 #define VIVS_GL_VERTEX_ELEMENT_CONFIG_UNK0			0x00000001
300 #define VIVS_GL_VERTEX_ELEMENT_CONFIG_REUSE			0x00000010
301 
302 #define VIVS_GL_MULTI_SAMPLE_CONFIG				0x00003818
303 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES__MASK		0x00000003
304 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES__SHIFT		0
305 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_NONE		0x00000000
306 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_2X		0x00000001
307 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_4X		0x00000002
308 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_MASK		0x00000008
309 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__MASK		0x000000f0
310 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__SHIFT		4
311 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES(x)		(((x) << VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__SHIFT) & VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__MASK)
312 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES_MASK		0x00000100
313 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__MASK			0x00007000
314 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__SHIFT		12
315 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12(x)			(((x) << VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__SHIFT) & VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__MASK)
316 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12_MASK			0x00008000
317 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__MASK			0x00030000
318 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__SHIFT		16
319 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16(x)			(((x) << VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__SHIFT) & VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__MASK)
320 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16_MASK			0x00080000
321 
322 #define VIVS_GL_VARYING_TOTAL_COMPONENTS			0x0000381c
323 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__MASK		0x000000ff
324 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__SHIFT		0
325 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM(x)			(((x) << VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__SHIFT) & VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__MASK)
326 
327 #define VIVS_GL_VARYING_NUM_COMPONENTS				0x00003820
328 
329 #define VIVS_GL_OCCLUSION_QUERY_ADDR				0x00003824
330 
331 #define VIVS_GL_VARYING_COMPONENT_USE(i0)		       (0x00003828 + 0x4*(i0))
332 #define VIVS_GL_VARYING_COMPONENT_USE__ESIZE			0x00000004
333 #define VIVS_GL_VARYING_COMPONENT_USE__LEN			0x00000002
334 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0__MASK		0x00000003
335 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0__SHIFT		0
336 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP0__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP0__MASK)
337 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1__MASK		0x0000000c
338 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1__SHIFT		2
339 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP1__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP1__MASK)
340 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2__MASK		0x00000030
341 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2__SHIFT		4
342 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP2__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP2__MASK)
343 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3__MASK		0x000000c0
344 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3__SHIFT		6
345 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP3__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP3__MASK)
346 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4__MASK		0x00000300
347 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4__SHIFT		8
348 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP4__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP4__MASK)
349 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5__MASK		0x00000c00
350 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5__SHIFT		10
351 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP5__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP5__MASK)
352 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6__MASK		0x00003000
353 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6__SHIFT		12
354 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP6__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP6__MASK)
355 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7__MASK		0x0000c000
356 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7__SHIFT		14
357 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP7__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP7__MASK)
358 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8__MASK		0x00030000
359 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8__SHIFT		16
360 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP8__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP8__MASK)
361 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9__MASK		0x000c0000
362 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9__SHIFT		18
363 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP9__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP9__MASK)
364 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10__MASK		0x00300000
365 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10__SHIFT		20
366 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP10__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP10__MASK)
367 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11__MASK		0x00c00000
368 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11__SHIFT		22
369 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP11__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP11__MASK)
370 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12__MASK		0x03000000
371 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12__SHIFT		24
372 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP12__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP12__MASK)
373 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13__MASK		0x0c000000
374 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13__SHIFT		26
375 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP13__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP13__MASK)
376 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14__MASK		0x30000000
377 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14__SHIFT		28
378 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP14__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP14__MASK)
379 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15__MASK		0xc0000000
380 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15__SHIFT		30
381 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15(x)			(((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP15__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP15__MASK)
382 
383 #define VIVS_GL_UNK0382C					0x0000382c
384 
385 #define VIVS_GL_OCCLUSION_QUERY_CONTROL				0x00003830
386 
387 #define VIVS_GL_VARYING_NUM_COMPONENTS2				0x00003834
388 
389 #define VIVS_GL_UNK03838					0x00003838
390 
391 #define VIVS_GL_API_MODE					0x0000384c
392 #define VIVS_GL_API_MODE_OPENGL					0x00000000
393 #define VIVS_GL_API_MODE_OPENVG					0x00000001
394 #define VIVS_GL_API_MODE_OPENCL					0x00000002
395 
396 #define VIVS_GL_CONTEXT_POINTER					0x00003850
397 
398 #define VIVS_GL_UNK03854					0x00003854
399 
400 #define VIVS_GL_BUG_FIXES					0x00003860
401 
402 #define VIVS_GL_FENCE_OUT_ADDRESS				0x00003868
403 
404 #define VIVS_GL_FENCE_OUT_DATA_LOW				0x0000386c
405 
406 #define VIVS_GL_USC_CONTROL					0x00003884
407 #define VIVS_GL_USC_CONTROL_L1_CACHE_RATIO__MASK		0x00000007
408 #define VIVS_GL_USC_CONTROL_L1_CACHE_RATIO__SHIFT		0
409 #define VIVS_GL_USC_CONTROL_L1_CACHE_RATIO(x)			(((x) << VIVS_GL_USC_CONTROL_L1_CACHE_RATIO__SHIFT) & VIVS_GL_USC_CONTROL_L1_CACHE_RATIO__MASK)
410 #define VIVS_GL_USC_CONTROL_ATTRIB_CACHE_RATIO__MASK		0x00000f00
411 #define VIVS_GL_USC_CONTROL_ATTRIB_CACHE_RATIO__SHIFT		8
412 #define VIVS_GL_USC_CONTROL_ATTRIB_CACHE_RATIO(x)		(((x) << VIVS_GL_USC_CONTROL_ATTRIB_CACHE_RATIO__SHIFT) & VIVS_GL_USC_CONTROL_ATTRIB_CACHE_RATIO__MASK)
413 #define VIVS_GL_USC_CONTROL_UNK16__MASK				0x001f0000
414 #define VIVS_GL_USC_CONTROL_UNK16__SHIFT			16
415 #define VIVS_GL_USC_CONTROL_UNK16(x)				(((x) << VIVS_GL_USC_CONTROL_UNK16__SHIFT) & VIVS_GL_USC_CONTROL_UNK16__MASK)
416 
417 #define VIVS_GL_HALTI5_SH_SPECIALS				0x00003888
418 #define VIVS_GL_HALTI5_SH_SPECIALS_VS_PSIZE_OUT__MASK		0x0000007f
419 #define VIVS_GL_HALTI5_SH_SPECIALS_VS_PSIZE_OUT__SHIFT		0
420 #define VIVS_GL_HALTI5_SH_SPECIALS_VS_PSIZE_OUT(x)		(((x) << VIVS_GL_HALTI5_SH_SPECIALS_VS_PSIZE_OUT__SHIFT) & VIVS_GL_HALTI5_SH_SPECIALS_VS_PSIZE_OUT__MASK)
421 #define VIVS_GL_HALTI5_SH_SPECIALS_PS_PCOORD_IN__MASK		0x00007f00
422 #define VIVS_GL_HALTI5_SH_SPECIALS_PS_PCOORD_IN__SHIFT		8
423 #define VIVS_GL_HALTI5_SH_SPECIALS_PS_PCOORD_IN(x)		(((x) << VIVS_GL_HALTI5_SH_SPECIALS_PS_PCOORD_IN__SHIFT) & VIVS_GL_HALTI5_SH_SPECIALS_PS_PCOORD_IN__MASK)
424 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK16__MASK			0x007f0000
425 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK16__SHIFT			16
426 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK16(x)			(((x) << VIVS_GL_HALTI5_SH_SPECIALS_UNK16__SHIFT) & VIVS_GL_HALTI5_SH_SPECIALS_UNK16__MASK)
427 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK24__MASK			0xff000000
428 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK24__SHIFT			24
429 #define VIVS_GL_HALTI5_SH_SPECIALS_UNK24(x)			(((x) << VIVS_GL_HALTI5_SH_SPECIALS_UNK24__SHIFT) & VIVS_GL_HALTI5_SH_SPECIALS_UNK24__MASK)
430 
431 #define VIVS_GL_GS_UNK0388C					0x0000388c
432 
433 #define VIVS_GL_FENCE_OUT_DATA_HIGH				0x00003898
434 
435 #define VIVS_GL_SHADER_INDEX					0x0000389c
436 
437 #define VIVS_GL_GS_UNK038A0(i0)				       (0x000038a0 + 0x4*(i0))
438 #define VIVS_GL_GS_UNK038A0__ESIZE				0x00000004
439 #define VIVS_GL_GS_UNK038A0__LEN				0x00000008
440 
441 #define VIVS_GL_HALTI5_UNK038C0(i0)			       (0x000038c0 + 0x4*(i0))
442 #define VIVS_GL_HALTI5_UNK038C0__ESIZE				0x00000004
443 #define VIVS_GL_HALTI5_UNK038C0__LEN				0x00000010
444 
445 #define VIVS_GL_SECURITY_UNK3900				0x00003900
446 
447 #define VIVS_GL_SECURITY_UNK3904				0x00003904
448 
449 #define VIVS_GL_MULTI_CLUSTER_UNK3908				0x00003908
450 #define VIVS_GL_MULTI_CLUSTER_UNK3908_UNK0__MASK		0x00000007
451 #define VIVS_GL_MULTI_CLUSTER_UNK3908_UNK0__SHIFT		0
452 #define VIVS_GL_MULTI_CLUSTER_UNK3908_UNK0(x)			(((x) << VIVS_GL_MULTI_CLUSTER_UNK3908_UNK0__SHIFT) & VIVS_GL_MULTI_CLUSTER_UNK3908_UNK0__MASK)
453 
454 #define VIVS_GL_MULTI_CLUSTER_UNK3910(i0)		       (0x00003910 + 0x4*(i0))
455 #define VIVS_GL_MULTI_CLUSTER_UNK3910__ESIZE			0x00000004
456 #define VIVS_GL_MULTI_CLUSTER_UNK3910__LEN			0x00000004
457 #define VIVS_GL_MULTI_CLUSTER_UNK3910_CLUSTER_ALIVE_MASK__MASK	0x000000ff
458 #define VIVS_GL_MULTI_CLUSTER_UNK3910_CLUSTER_ALIVE_MASK__SHIFT	0
459 #define VIVS_GL_MULTI_CLUSTER_UNK3910_CLUSTER_ALIVE_MASK(x)	(((x) << VIVS_GL_MULTI_CLUSTER_UNK3910_CLUSTER_ALIVE_MASK__SHIFT) & VIVS_GL_MULTI_CLUSTER_UNK3910_CLUSTER_ALIVE_MASK__MASK)
460 
461 #define VIVS_GL_NN_CONFIG					0x00003930
462 #define VIVS_GL_NN_CONFIG_UNK0__MASK				0x00000003
463 #define VIVS_GL_NN_CONFIG_UNK0__SHIFT				0
464 #define VIVS_GL_NN_CONFIG_UNK0(x)				(((x) << VIVS_GL_NN_CONFIG_UNK0__SHIFT) & VIVS_GL_NN_CONFIG_UNK0__MASK)
465 #define VIVS_GL_NN_CONFIG_DISABLE_ZDPN				0x00000004
466 #define VIVS_GL_NN_CONFIG_DISABLE_SWTILING			0x00000008
467 #define VIVS_GL_NN_CONFIG_SMALL_BATCH				0x00000010
468 #define VIVS_GL_NN_CONFIG_DDR_BURST_SIZE__MASK			0x00000060
469 #define VIVS_GL_NN_CONFIG_DDR_BURST_SIZE__SHIFT			5
470 #define VIVS_GL_NN_CONFIG_DDR_BURST_SIZE(x)			(((x) << VIVS_GL_NN_CONFIG_DDR_BURST_SIZE__SHIFT) & VIVS_GL_NN_CONFIG_DDR_BURST_SIZE__MASK)
471 #define VIVS_GL_NN_CONFIG_UNK7					0x00000080
472 #define VIVS_GL_NN_CONFIG_NN_CORE_COUNT__MASK			0x00000f00
473 #define VIVS_GL_NN_CONFIG_NN_CORE_COUNT__SHIFT			8
474 #define VIVS_GL_NN_CONFIG_NN_CORE_COUNT(x)			(((x) << VIVS_GL_NN_CONFIG_NN_CORE_COUNT__SHIFT) & VIVS_GL_NN_CONFIG_NN_CORE_COUNT__MASK)
475 #define VIVS_GL_NN_CONFIG_UNK12					0x00001000
476 
477 #define VIVS_GL_SRAM_REMAP_ADDRESS				0x00003938
478 
479 #define VIVS_GL_OCB_REMAP_START					0x0000393c
480 
481 #define VIVS_GL_OCB_REMAP_END					0x00003940
482 
483 #define VIVS_GL_TP_CONFIG					0x0000394c
484 
485 #define VIVS_GL_UNK03950					0x00003950
486 
487 #define VIVS_GL_UNK03A00					0x00003a00
488 #define VIVS_GL_UNK03A00_UNK0__MASK				0x00000007
489 #define VIVS_GL_UNK03A00_UNK0__SHIFT				0
490 #define VIVS_GL_UNK03A00_UNK0(x)				(((x) << VIVS_GL_UNK03A00_UNK0__SHIFT) & VIVS_GL_UNK03A00_UNK0__MASK)
491 
492 #define VIVS_GL_UNK03A04					0x00003a04
493 
494 #define VIVS_GL_UNK03A08					0x00003a08
495 
496 #define VIVS_GL_UNK03A0C					0x00003a0c
497 
498 #define VIVS_GL_UNK03A10					0x00003a10
499 
500 #define VIVS_GL_STALL_TOKEN					0x00003c00
501 #define VIVS_GL_STALL_TOKEN_FROM__MASK				0x0000001f
502 #define VIVS_GL_STALL_TOKEN_FROM__SHIFT				0
503 #define VIVS_GL_STALL_TOKEN_FROM(x)				(((x) << VIVS_GL_STALL_TOKEN_FROM__SHIFT) & VIVS_GL_STALL_TOKEN_FROM__MASK)
504 #define VIVS_GL_STALL_TOKEN_TO__MASK				0x00001f00
505 #define VIVS_GL_STALL_TOKEN_TO__SHIFT				8
506 #define VIVS_GL_STALL_TOKEN_TO(x)				(((x) << VIVS_GL_STALL_TOKEN_TO__SHIFT) & VIVS_GL_STALL_TOKEN_TO__MASK)
507 #define VIVS_GL_STALL_TOKEN_FLIP0				0x40000000
508 #define VIVS_GL_STALL_TOKEN_FLIP1				0x80000000
509 
510 #define VIVS_NFE						0x00000000
511 
512 #define VIVS_NFE_VERTEX_STREAMS(i0)			       (0x00000000 + 0x4*(i0))
513 #define VIVS_NFE_VERTEX_STREAMS__ESIZE				0x00000004
514 #define VIVS_NFE_VERTEX_STREAMS__LEN				0x00000010
515 
516 #define VIVS_NFE_VERTEX_STREAMS_BASE_ADDR(i0)		       (0x00014600 + 0x4*(i0))
517 
518 #define VIVS_NFE_VERTEX_STREAMS_CONTROL(i0)		       (0x00014640 + 0x4*(i0))
519 
520 #define VIVS_NFE_VERTEX_STREAMS_VERTEX_DIVISOR(i0)	       (0x00014680 + 0x4*(i0))
521 
522 #define VIVS_NFE_VERTEX_STREAMS_ROBUSTNESS_UNK146C0(i0)	       (0x000146c0 + 0x4*(i0))
523 
524 #define VIVS_NFE_GENERIC_ATTRIB(i0)			       (0x00000000 + 0x4*(i0))
525 #define VIVS_NFE_GENERIC_ATTRIB__ESIZE				0x00000004
526 #define VIVS_NFE_GENERIC_ATTRIB__LEN				0x00000020
527 
528 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0(i0)		       (0x00017800 + 0x4*(i0))
529 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_TYPE__MASK		0x0000000f
530 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_TYPE__SHIFT		0
531 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_TYPE(x)			(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG0_TYPE__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG0_TYPE__MASK)
532 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_ENDIAN__MASK		0x00000030
533 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_ENDIAN__SHIFT		4
534 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_ENDIAN(x)		(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG0_ENDIAN__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG0_ENDIAN__MASK)
535 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_STREAM__MASK		0x00000700
536 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_STREAM__SHIFT		8
537 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_STREAM(x)		(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG0_STREAM__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG0_STREAM__MASK)
538 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NUM__MASK		0x00003000
539 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NUM__SHIFT		12
540 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NUM(x)			(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NUM__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NUM__MASK)
541 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NORMALIZE__MASK		0x0000c000
542 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NORMALIZE__SHIFT	14
543 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NORMALIZE_OFF		0x00000000
544 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_NORMALIZE_ON		0x00008000
545 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_START__MASK		0x00ff0000
546 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_START__SHIFT		16
547 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG0_START(x)		(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG0_START__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG0_START__MASK)
548 
549 #define VIVS_NFE_GENERIC_ATTRIB_UNK17880(i0)		       (0x00017880 + 0x4*(i0))
550 
551 #define VIVS_NFE_GENERIC_ATTRIB_UNK17900(i0)		       (0x00017900 + 0x4*(i0))
552 
553 #define VIVS_NFE_GENERIC_ATTRIB_UNK17980(i0)		       (0x00017980 + 0x4*(i0))
554 
555 #define VIVS_NFE_GENERIC_ATTRIB_SCALE(i0)		       (0x00017a00 + 0x4*(i0))
556 
557 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG1(i0)		       (0x00017a80 + 0x4*(i0))
558 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END__MASK		0x000000ff
559 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END__SHIFT		0
560 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END(x)			(((x) << VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END__SHIFT) & VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END__MASK)
561 #define VIVS_NFE_GENERIC_ATTRIB_CONFIG1_NONCONSECUTIVE		0x00000800
562 
563 #define VIVS_DUMMY						0x00000000
564 
565 #define VIVS_DUMMY_DUMMY					0x0003fffc
566 
567 #define VIVS_WD							0x00000000
568 
569 #define VIVS_WD_UNK18404					0x00018404
570 #define VIVS_WD_UNK18404_UNK0__MASK				0x00000003
571 #define VIVS_WD_UNK18404_UNK0__SHIFT				0
572 #define VIVS_WD_UNK18404_UNK0(x)				(((x) << VIVS_WD_UNK18404_UNK0__SHIFT) & VIVS_WD_UNK18404_UNK0__MASK)
573 
574 
575 #endif /* STATE_XML */
576