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 ( 18940 bytes, from 2016-09-06 14:14:12) 12 - common.xml ( 20583 bytes, from 2016-09-06 14:14:12) 13 - state_hi.xml ( 25653 bytes, from 2016-09-06 14:45:17) 14 - copyright.xml ( 1597 bytes, from 2016-09-06 14:44:16) 15 - state_2d.xml ( 51552 bytes, from 2016-09-06 14:44:16) 16 - state_3d.xml ( 54603 bytes, from 2016-09-06 14:44:16) 17 - state_vg.xml ( 5975 bytes, from 2016-09-06 14:44:16) 18 19 Copyright (C) 2012-2016 by the following authors: 20 - Wladimir J. van der Laan <laanwj@gmail.com> 21 - Christian Gmeiner <christian.gmeiner@gmail.com> 22 - Lucas Stach <l.stach@pengutronix.de> 23 - Russell King <rmk@arm.linux.org.uk> 24 25 Permission is hereby granted, free of charge, to any person obtaining a 26 copy of this software and associated documentation files (the "Software"), 27 to deal in the Software without restriction, including without limitation 28 the rights to use, copy, modify, merge, publish, distribute, sub license, 29 and/or sell copies of the Software, and to permit persons to whom the 30 Software is furnished to do so, subject to the following conditions: 31 32 The above copyright notice and this permission notice (including the 33 next paragraph) shall be included in all copies or substantial portions 34 of the Software. 35 36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 37 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 38 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 39 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 40 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 42 DEALINGS IN THE SOFTWARE. 43 */ 44 45 46 #define VARYING_COMPONENT_USE_UNUSED 0x00000000 47 #define VARYING_COMPONENT_USE_USED 0x00000001 48 #define VARYING_COMPONENT_USE_POINTCOORD_X 0x00000002 49 #define VARYING_COMPONENT_USE_POINTCOORD_Y 0x00000003 50 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__MASK 0x000000ff 51 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__SHIFT 0 52 #define FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE(x) (((x) << FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__SHIFT) & FE_VERTEX_STREAM_CONTROL_VERTEX_STRIDE__MASK) 53 #define VIVS_FE 0x00000000 54 55 #define VIVS_FE_VERTEX_ELEMENT_CONFIG(i0) (0x00000600 + 0x4*(i0)) 56 #define VIVS_FE_VERTEX_ELEMENT_CONFIG__ESIZE 0x00000004 57 #define VIVS_FE_VERTEX_ELEMENT_CONFIG__LEN 0x00000010 58 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__MASK 0x0000000f 59 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE__SHIFT 0 60 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_BYTE 0x00000000 61 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_UNSIGNED_BYTE 0x00000001 62 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_SHORT 0x00000002 63 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_UNSIGNED_SHORT 0x00000003 64 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_INT 0x00000004 65 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_UNSIGNED_INT 0x00000005 66 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_FLOAT 0x00000008 67 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_HALF_FLOAT 0x00000009 68 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_FIXED 0x0000000b 69 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_INT_10_10_10_2 0x0000000c 70 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_TYPE_UNSIGNED_INT_10_10_10_2 0x0000000d 71 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__MASK 0x00000030 72 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__SHIFT 4 73 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN(x) (((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_ENDIAN__MASK) 74 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NONCONSECUTIVE 0x00000080 75 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__MASK 0x00000700 76 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__SHIFT 8 77 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM(x) (((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM__MASK) 78 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__MASK 0x00003000 79 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__SHIFT 12 80 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM(x) (((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_NUM__MASK) 81 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE__MASK 0x0000c000 82 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE__SHIFT 14 83 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_OFF 0x00000000 84 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_NORMALIZE_ON 0x00008000 85 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START__MASK 0x00ff0000 86 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START__SHIFT 16 87 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_START(x) (((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_START__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_START__MASK) 88 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END__MASK 0xff000000 89 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END__SHIFT 24 90 #define VIVS_FE_VERTEX_ELEMENT_CONFIG_END(x) (((x) << VIVS_FE_VERTEX_ELEMENT_CONFIG_END__SHIFT) & VIVS_FE_VERTEX_ELEMENT_CONFIG_END__MASK) 91 92 #define VIVS_FE_CMD_STREAM_BASE_ADDR 0x00000640 93 94 #define VIVS_FE_INDEX_STREAM_BASE_ADDR 0x00000644 95 96 #define VIVS_FE_INDEX_STREAM_CONTROL 0x00000648 97 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE__MASK 0x00000003 98 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE__SHIFT 0 99 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_CHAR 0x00000000 100 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_SHORT 0x00000001 101 #define VIVS_FE_INDEX_STREAM_CONTROL_TYPE_UNSIGNED_INT 0x00000002 102 103 #define VIVS_FE_VERTEX_STREAM_BASE_ADDR 0x0000064c 104 105 #define VIVS_FE_VERTEX_STREAM_CONTROL 0x00000650 106 107 #define VIVS_FE_COMMAND_ADDRESS 0x00000654 108 109 #define VIVS_FE_COMMAND_CONTROL 0x00000658 110 #define VIVS_FE_COMMAND_CONTROL_PREFETCH__MASK 0x0000ffff 111 #define VIVS_FE_COMMAND_CONTROL_PREFETCH__SHIFT 0 112 #define VIVS_FE_COMMAND_CONTROL_PREFETCH(x) (((x) << VIVS_FE_COMMAND_CONTROL_PREFETCH__SHIFT) & VIVS_FE_COMMAND_CONTROL_PREFETCH__MASK) 113 #define VIVS_FE_COMMAND_CONTROL_ENABLE 0x00010000 114 115 #define VIVS_FE_DMA_STATUS 0x0000065c 116 117 #define VIVS_FE_DMA_DEBUG_STATE 0x00000660 118 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE__MASK 0x0000001f 119 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE__SHIFT 0 120 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_IDLE 0x00000000 121 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DEC 0x00000001 122 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_ADR0 0x00000002 123 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LOAD0 0x00000003 124 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_ADR1 0x00000004 125 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LOAD1 0x00000005 126 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DADR 0x00000006 127 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DCMD 0x00000007 128 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DCNTL 0x00000008 129 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_3DIDXCNTL 0x00000009 130 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_INITREQDMA 0x0000000a 131 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DRAWIDX 0x0000000b 132 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_DRAW 0x0000000c 133 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DRECT0 0x0000000d 134 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DRECT1 0x0000000e 135 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DDATA0 0x0000000f 136 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_2DDATA1 0x00000010 137 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_WAITFIFO 0x00000011 138 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_WAIT 0x00000012 139 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_LINK 0x00000013 140 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_END 0x00000014 141 #define VIVS_FE_DMA_DEBUG_STATE_CMD_STATE_STALL 0x00000015 142 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE__MASK 0x00000300 143 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE__SHIFT 8 144 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_IDLE 0x00000000 145 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_START 0x00000100 146 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_REQ 0x00000200 147 #define VIVS_FE_DMA_DEBUG_STATE_CMD_DMA_STATE_END 0x00000300 148 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE__MASK 0x00000c00 149 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE__SHIFT 10 150 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_IDLE 0x00000000 151 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_RAMVALID 0x00000400 152 #define VIVS_FE_DMA_DEBUG_STATE_CMD_FETCH_STATE_VALID 0x00000800 153 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE__MASK 0x00003000 154 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE__SHIFT 12 155 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_IDLE 0x00000000 156 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_WAITIDX 0x00001000 157 #define VIVS_FE_DMA_DEBUG_STATE_REQ_DMA_STATE_CAL 0x00002000 158 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE__MASK 0x0000c000 159 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE__SHIFT 14 160 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_IDLE 0x00000000 161 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_LDADR 0x00004000 162 #define VIVS_FE_DMA_DEBUG_STATE_CAL_STATE_IDXCALC 0x00008000 163 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE__MASK 0x00030000 164 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE__SHIFT 16 165 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_IDLE 0x00000000 166 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_CKCACHE 0x00010000 167 #define VIVS_FE_DMA_DEBUG_STATE_VE_REQ_STATE_MISS 0x00020000 168 169 #define VIVS_FE_DMA_ADDRESS 0x00000664 170 171 #define VIVS_FE_DMA_LOW 0x00000668 172 173 #define VIVS_FE_DMA_HIGH 0x0000066c 174 175 #define VIVS_FE_AUTO_FLUSH 0x00000670 176 177 #define VIVS_FE_UNK00678 0x00000678 178 179 #define VIVS_FE_UNK0067C 0x0000067c 180 181 #define VIVS_FE_VERTEX_STREAMS(i0) (0x00000000 + 0x4*(i0)) 182 #define VIVS_FE_VERTEX_STREAMS__ESIZE 0x00000004 183 #define VIVS_FE_VERTEX_STREAMS__LEN 0x00000008 184 185 #define VIVS_FE_VERTEX_STREAMS_BASE_ADDR(i0) (0x00000680 + 0x4*(i0)) 186 187 #define VIVS_FE_VERTEX_STREAMS_CONTROL(i0) (0x000006a0 + 0x4*(i0)) 188 189 #define VIVS_FE_UNK00700(i0) (0x00000700 + 0x4*(i0)) 190 #define VIVS_FE_UNK00700__ESIZE 0x00000004 191 #define VIVS_FE_UNK00700__LEN 0x00000010 192 193 #define VIVS_FE_UNK00740(i0) (0x00000740 + 0x4*(i0)) 194 #define VIVS_FE_UNK00740__ESIZE 0x00000004 195 #define VIVS_FE_UNK00740__LEN 0x00000010 196 197 #define VIVS_FE_UNK00780(i0) (0x00000780 + 0x4*(i0)) 198 #define VIVS_FE_UNK00780__ESIZE 0x00000004 199 #define VIVS_FE_UNK00780__LEN 0x00000010 200 201 #define VIVS_GL 0x00000000 202 203 #define VIVS_GL_PIPE_SELECT 0x00003800 204 #define VIVS_GL_PIPE_SELECT_PIPE__MASK 0x00000001 205 #define VIVS_GL_PIPE_SELECT_PIPE__SHIFT 0 206 #define VIVS_GL_PIPE_SELECT_PIPE(x) (((x) << VIVS_GL_PIPE_SELECT_PIPE__SHIFT) & VIVS_GL_PIPE_SELECT_PIPE__MASK) 207 208 #define VIVS_GL_EVENT 0x00003804 209 #define VIVS_GL_EVENT_EVENT_ID__MASK 0x0000001f 210 #define VIVS_GL_EVENT_EVENT_ID__SHIFT 0 211 #define VIVS_GL_EVENT_EVENT_ID(x) (((x) << VIVS_GL_EVENT_EVENT_ID__SHIFT) & VIVS_GL_EVENT_EVENT_ID__MASK) 212 #define VIVS_GL_EVENT_FROM_FE 0x00000020 213 #define VIVS_GL_EVENT_FROM_PE 0x00000040 214 #define VIVS_GL_EVENT_SOURCE__MASK 0x00001f00 215 #define VIVS_GL_EVENT_SOURCE__SHIFT 8 216 #define VIVS_GL_EVENT_SOURCE(x) (((x) << VIVS_GL_EVENT_SOURCE__SHIFT) & VIVS_GL_EVENT_SOURCE__MASK) 217 218 #define VIVS_GL_SEMAPHORE_TOKEN 0x00003808 219 #define VIVS_GL_SEMAPHORE_TOKEN_FROM__MASK 0x0000001f 220 #define VIVS_GL_SEMAPHORE_TOKEN_FROM__SHIFT 0 221 #define VIVS_GL_SEMAPHORE_TOKEN_FROM(x) (((x) << VIVS_GL_SEMAPHORE_TOKEN_FROM__SHIFT) & VIVS_GL_SEMAPHORE_TOKEN_FROM__MASK) 222 #define VIVS_GL_SEMAPHORE_TOKEN_TO__MASK 0x00001f00 223 #define VIVS_GL_SEMAPHORE_TOKEN_TO__SHIFT 8 224 #define VIVS_GL_SEMAPHORE_TOKEN_TO(x) (((x) << VIVS_GL_SEMAPHORE_TOKEN_TO__SHIFT) & VIVS_GL_SEMAPHORE_TOKEN_TO__MASK) 225 226 #define VIVS_GL_FLUSH_CACHE 0x0000380c 227 #define VIVS_GL_FLUSH_CACHE_DEPTH 0x00000001 228 #define VIVS_GL_FLUSH_CACHE_COLOR 0x00000002 229 #define VIVS_GL_FLUSH_CACHE_TEXTURE 0x00000004 230 #define VIVS_GL_FLUSH_CACHE_PE2D 0x00000008 231 #define VIVS_GL_FLUSH_CACHE_TEXTUREVS 0x00000010 232 #define VIVS_GL_FLUSH_CACHE_SHADER_L1 0x00000020 233 #define VIVS_GL_FLUSH_CACHE_SHADER_L2 0x00000040 234 235 #define VIVS_GL_FLUSH_MMU 0x00003810 236 #define VIVS_GL_FLUSH_MMU_FLUSH_FEMMU 0x00000001 237 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK1 0x00000002 238 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK2 0x00000004 239 #define VIVS_GL_FLUSH_MMU_FLUSH_PEMMU 0x00000008 240 #define VIVS_GL_FLUSH_MMU_FLUSH_UNK4 0x00000010 241 242 #define VIVS_GL_VERTEX_ELEMENT_CONFIG 0x00003814 243 244 #define VIVS_GL_MULTI_SAMPLE_CONFIG 0x00003818 245 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES__MASK 0x00000003 246 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES__SHIFT 0 247 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_NONE 0x00000000 248 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_2X 0x00000001 249 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_4X 0x00000002 250 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_SAMPLES_MASK 0x00000008 251 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__MASK 0x000000f0 252 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES__SHIFT 4 253 #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) 254 #define VIVS_GL_MULTI_SAMPLE_CONFIG_MSAA_ENABLES_MASK 0x00000100 255 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__MASK 0x00007000 256 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__SHIFT 12 257 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12(x) (((x) << VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__SHIFT) & VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12__MASK) 258 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK12_MASK 0x00008000 259 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__MASK 0x00030000 260 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__SHIFT 16 261 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16(x) (((x) << VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__SHIFT) & VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16__MASK) 262 #define VIVS_GL_MULTI_SAMPLE_CONFIG_UNK16_MASK 0x00080000 263 264 #define VIVS_GL_VARYING_TOTAL_COMPONENTS 0x0000381c 265 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__MASK 0x000000ff 266 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__SHIFT 0 267 #define VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM(x) (((x) << VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__SHIFT) & VIVS_GL_VARYING_TOTAL_COMPONENTS_NUM__MASK) 268 269 #define VIVS_GL_VARYING_NUM_COMPONENTS 0x00003820 270 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR0__MASK 0x00000007 271 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR0__SHIFT 0 272 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR0(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR0__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR0__MASK) 273 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR1__MASK 0x00000070 274 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR1__SHIFT 4 275 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR1(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR1__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR1__MASK) 276 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR2__MASK 0x00000700 277 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR2__SHIFT 8 278 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR2(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR2__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR2__MASK) 279 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR3__MASK 0x00007000 280 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR3__SHIFT 12 281 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR3(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR3__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR3__MASK) 282 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR4__MASK 0x00070000 283 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR4__SHIFT 16 284 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR4(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR4__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR4__MASK) 285 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR5__MASK 0x00700000 286 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR5__SHIFT 20 287 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR5(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR5__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR5__MASK) 288 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR6__MASK 0x07000000 289 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR6__SHIFT 24 290 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR6(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR6__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR6__MASK) 291 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR7__MASK 0x70000000 292 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR7__SHIFT 28 293 #define VIVS_GL_VARYING_NUM_COMPONENTS_VAR7(x) (((x) << VIVS_GL_VARYING_NUM_COMPONENTS_VAR7__SHIFT) & VIVS_GL_VARYING_NUM_COMPONENTS_VAR7__MASK) 294 295 #define VIVS_GL_VARYING_COMPONENT_USE(i0) (0x00003828 + 0x4*(i0)) 296 #define VIVS_GL_VARYING_COMPONENT_USE__ESIZE 0x00000004 297 #define VIVS_GL_VARYING_COMPONENT_USE__LEN 0x00000002 298 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0__MASK 0x00000003 299 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0__SHIFT 0 300 #define VIVS_GL_VARYING_COMPONENT_USE_COMP0(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP0__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP0__MASK) 301 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1__MASK 0x0000000c 302 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1__SHIFT 2 303 #define VIVS_GL_VARYING_COMPONENT_USE_COMP1(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP1__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP1__MASK) 304 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2__MASK 0x00000030 305 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2__SHIFT 4 306 #define VIVS_GL_VARYING_COMPONENT_USE_COMP2(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP2__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP2__MASK) 307 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3__MASK 0x000000c0 308 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3__SHIFT 6 309 #define VIVS_GL_VARYING_COMPONENT_USE_COMP3(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP3__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP3__MASK) 310 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4__MASK 0x00000300 311 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4__SHIFT 8 312 #define VIVS_GL_VARYING_COMPONENT_USE_COMP4(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP4__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP4__MASK) 313 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5__MASK 0x00000c00 314 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5__SHIFT 10 315 #define VIVS_GL_VARYING_COMPONENT_USE_COMP5(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP5__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP5__MASK) 316 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6__MASK 0x00003000 317 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6__SHIFT 12 318 #define VIVS_GL_VARYING_COMPONENT_USE_COMP6(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP6__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP6__MASK) 319 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7__MASK 0x0000c000 320 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7__SHIFT 14 321 #define VIVS_GL_VARYING_COMPONENT_USE_COMP7(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP7__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP7__MASK) 322 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8__MASK 0x00030000 323 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8__SHIFT 16 324 #define VIVS_GL_VARYING_COMPONENT_USE_COMP8(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP8__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP8__MASK) 325 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9__MASK 0x000c0000 326 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9__SHIFT 18 327 #define VIVS_GL_VARYING_COMPONENT_USE_COMP9(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP9__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP9__MASK) 328 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10__MASK 0x00300000 329 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10__SHIFT 20 330 #define VIVS_GL_VARYING_COMPONENT_USE_COMP10(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP10__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP10__MASK) 331 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11__MASK 0x00c00000 332 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11__SHIFT 22 333 #define VIVS_GL_VARYING_COMPONENT_USE_COMP11(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP11__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP11__MASK) 334 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12__MASK 0x03000000 335 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12__SHIFT 24 336 #define VIVS_GL_VARYING_COMPONENT_USE_COMP12(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP12__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP12__MASK) 337 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13__MASK 0x0c000000 338 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13__SHIFT 26 339 #define VIVS_GL_VARYING_COMPONENT_USE_COMP13(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP13__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP13__MASK) 340 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14__MASK 0x30000000 341 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14__SHIFT 28 342 #define VIVS_GL_VARYING_COMPONENT_USE_COMP14(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP14__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP14__MASK) 343 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15__MASK 0xc0000000 344 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15__SHIFT 30 345 #define VIVS_GL_VARYING_COMPONENT_USE_COMP15(x) (((x) << VIVS_GL_VARYING_COMPONENT_USE_COMP15__SHIFT) & VIVS_GL_VARYING_COMPONENT_USE_COMP15__MASK) 346 347 #define VIVS_GL_UNK03834 0x00003834 348 349 #define VIVS_GL_UNK03838 0x00003838 350 351 #define VIVS_GL_API_MODE 0x0000384c 352 #define VIVS_GL_API_MODE_OPENGL 0x00000000 353 #define VIVS_GL_API_MODE_OPENVG 0x00000001 354 #define VIVS_GL_API_MODE_OPENCL 0x00000002 355 356 #define VIVS_GL_CONTEXT_POINTER 0x00003850 357 358 #define VIVS_GL_UNK03A00 0x00003a00 359 360 #define VIVS_GL_STALL_TOKEN 0x00003c00 361 #define VIVS_GL_STALL_TOKEN_FROM__MASK 0x0000001f 362 #define VIVS_GL_STALL_TOKEN_FROM__SHIFT 0 363 #define VIVS_GL_STALL_TOKEN_FROM(x) (((x) << VIVS_GL_STALL_TOKEN_FROM__SHIFT) & VIVS_GL_STALL_TOKEN_FROM__MASK) 364 #define VIVS_GL_STALL_TOKEN_TO__MASK 0x00001f00 365 #define VIVS_GL_STALL_TOKEN_TO__SHIFT 8 366 #define VIVS_GL_STALL_TOKEN_TO(x) (((x) << VIVS_GL_STALL_TOKEN_TO__SHIFT) & VIVS_GL_STALL_TOKEN_TO__MASK) 367 #define VIVS_GL_STALL_TOKEN_FLIP0 0x40000000 368 #define VIVS_GL_STALL_TOKEN_FLIP1 0x80000000 369 370 #define VIVS_DUMMY 0x00000000 371 372 #define VIVS_DUMMY_DUMMY 0x0003fffc 373 374 375 #endif /* STATE_XML */ 376