4 /* Autogenerated file, DO NOT EDIT manually!
6 This file was generated by the rules-ng-ng headergen tool in this git repository:
7 http://github.com/freedreno/envytools/
8 git clone https://github.com/freedreno/envytools.git
10 The rules-ng-ng source files this header was generated from are:
11 - /home/robclark/src/freedreno/envytools/rnndb/adreno.xml ( 398 bytes, from 2015-09-24 17:25:31)
12 - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1572 bytes, from 2016-02-10 17:07:21)
13 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a2xx.xml ( 32901 bytes, from 2015-05-20 20:03:14)
14 - /home/robclark/src/freedreno/envytools/rnndb/adreno/adreno_common.xml ( 11518 bytes, from 2016-02-10 21:03:25)
15 - /home/robclark/src/freedreno/envytools/rnndb/adreno/adreno_pm4.xml ( 16166 bytes, from 2016-02-11 21:20:31)
16 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a3xx.xml ( 83967 bytes, from 2016-02-10 17:07:21)
17 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a4xx.xml ( 109916 bytes, from 2016-02-20 18:44:48)
18 - /home/robclark/src/freedreno/envytools/rnndb/adreno/ocmem.xml ( 1773 bytes, from 2015-09-24 17:30:00)
20 Copyright (C) 2013-2016 by the following authors:
21 - Rob Clark <robdclark@gmail.com> (robclark)
22 - Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
24 Permission is hereby granted, free of charge, to any person obtaining
25 a copy of this software and associated documentation files (the
26 "Software"), to deal in the Software without restriction, including
27 without limitation the rights to use, copy, modify, merge, publish,
28 distribute, sublicense, and/or sell copies of the Software, and to
29 permit persons to whom the Software is furnished to do so, subject to
30 the following conditions:
32 The above copyright notice and this permission notice (including the
33 next paragraph) shall be included in all copies or substantial
34 portions of the Software.
36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
40 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
41 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
42 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49 RB4_R4G4B4A4_UNORM = 8,
50 RB4_R5G5B5A1_UNORM = 10,
51 RB4_R5G6B5_UNORM = 14,
61 RB4_R8G8B8_UNORM = 25,
62 RB4_R8G8B8A8_UNORM = 26,
63 RB4_R8G8B8A8_SNORM = 28,
64 RB4_R8G8B8A8_UINT = 29,
65 RB4_R8G8B8A8_SINT = 30,
66 RB4_R10G10B10A2_UNORM = 31,
67 RB4_R10G10B10A2_UINT = 34,
68 RB4_R11G11B10_FLOAT = 39,
69 RB4_R16G16_UNORM = 40,
70 RB4_R16G16_SNORM = 41,
71 RB4_R16G16_FLOAT = 42,
77 RB4_R16G16B16A16_UNORM = 52,
78 RB4_R16G16B16A16_SNORM = 53,
79 RB4_R16G16B16A16_FLOAT = 54,
80 RB4_R16G16B16A16_UINT = 55,
81 RB4_R16G16B16A16_SINT = 56,
82 RB4_R32G32_FLOAT = 57,
85 RB4_R32G32B32A32_FLOAT = 60,
86 RB4_R32G32B32A32_UINT = 61,
87 RB4_R32G32B32A32_SINT = 62,
95 enum a4xx_rb_blend_opcode {
96 BLEND_DST_PLUS_SRC = 0,
97 BLEND_SRC_MINUS_DST = 1,
98 BLEND_DST_MINUS_SRC = 2,
99 BLEND_MIN_DST_SRC = 3,
100 BLEND_MAX_DST_SRC = 4,
105 VFMT4_32_32_FLOAT = 2,
106 VFMT4_32_32_32_FLOAT = 3,
107 VFMT4_32_32_32_32_FLOAT = 4,
109 VFMT4_16_16_FLOAT = 6,
110 VFMT4_16_16_16_FLOAT = 7,
111 VFMT4_16_16_16_16_FLOAT = 8,
113 VFMT4_32_32_FIXED = 10,
114 VFMT4_32_32_32_FIXED = 11,
115 VFMT4_32_32_32_32_FIXED = 12,
116 VFMT4_11_11_10_FLOAT = 13,
118 VFMT4_16_16_SINT = 17,
119 VFMT4_16_16_16_SINT = 18,
120 VFMT4_16_16_16_16_SINT = 19,
122 VFMT4_16_16_UINT = 21,
123 VFMT4_16_16_16_UINT = 22,
124 VFMT4_16_16_16_16_UINT = 23,
126 VFMT4_16_16_SNORM = 25,
127 VFMT4_16_16_16_SNORM = 26,
128 VFMT4_16_16_16_16_SNORM = 27,
130 VFMT4_16_16_UNORM = 29,
131 VFMT4_16_16_16_UNORM = 30,
132 VFMT4_16_16_16_16_UNORM = 31,
134 VFMT4_32_32_UINT = 33,
135 VFMT4_32_32_32_UINT = 34,
136 VFMT4_32_32_32_32_UINT = 35,
138 VFMT4_32_32_SINT = 37,
139 VFMT4_32_32_32_SINT = 38,
140 VFMT4_32_32_32_32_SINT = 39,
143 VFMT4_8_8_8_UINT = 42,
144 VFMT4_8_8_8_8_UINT = 43,
146 VFMT4_8_8_UNORM = 45,
147 VFMT4_8_8_8_UNORM = 46,
148 VFMT4_8_8_8_8_UNORM = 47,
151 VFMT4_8_8_8_SINT = 50,
152 VFMT4_8_8_8_8_SINT = 51,
154 VFMT4_8_8_SNORM = 53,
155 VFMT4_8_8_8_SNORM = 54,
156 VFMT4_8_8_8_8_SNORM = 55,
157 VFMT4_10_10_10_2_UINT = 56,
158 VFMT4_10_10_10_2_UNORM = 57,
159 VFMT4_10_10_10_2_SINT = 58,
160 VFMT4_10_10_10_2_SNORM = 59,
161 VFMT4_2_10_10_10_UINT = 60,
162 VFMT4_2_10_10_10_UNORM = 61,
163 VFMT4_2_10_10_10_SINT = 62,
164 VFMT4_2_10_10_10_SNORM = 63,
173 TFMT4_4_4_4_4_UNORM = 8,
174 TFMT4_5_5_5_1_UNORM = 9,
175 TFMT4_5_6_5_UNORM = 11,
176 TFMT4_L8_A8_UNORM = 13,
177 TFMT4_8_8_UNORM = 14,
178 TFMT4_8_8_SNORM = 15,
186 TFMT4_8_8_8_8_UNORM = 28,
187 TFMT4_8_8_8_8_SNORM = 29,
188 TFMT4_8_8_8_8_UINT = 30,
189 TFMT4_8_8_8_8_SINT = 31,
190 TFMT4_9_9_9_E5_FLOAT = 32,
191 TFMT4_10_10_10_2_UNORM = 33,
192 TFMT4_10_10_10_2_UINT = 34,
193 TFMT4_11_11_10_FLOAT = 37,
194 TFMT4_16_16_UNORM = 38,
195 TFMT4_16_16_SNORM = 39,
196 TFMT4_16_16_FLOAT = 40,
197 TFMT4_16_16_UINT = 41,
198 TFMT4_16_16_SINT = 42,
202 TFMT4_16_16_16_16_UNORM = 51,
203 TFMT4_16_16_16_16_SNORM = 52,
204 TFMT4_16_16_16_16_FLOAT = 53,
205 TFMT4_16_16_16_16_UINT = 54,
206 TFMT4_16_16_16_16_SINT = 55,
207 TFMT4_32_32_FLOAT = 56,
208 TFMT4_32_32_UINT = 57,
209 TFMT4_32_32_SINT = 58,
210 TFMT4_32_32_32_FLOAT = 59,
211 TFMT4_32_32_32_UINT = 60,
212 TFMT4_32_32_32_SINT = 61,
213 TFMT4_32_32_32_32_FLOAT = 63,
214 TFMT4_32_32_32_32_UINT = 64,
215 TFMT4_32_32_32_32_SINT = 65,
216 TFMT4_X8Z24_UNORM = 71,
220 TFMT4_RGTC1_UNORM = 90,
221 TFMT4_RGTC1_SNORM = 91,
222 TFMT4_RGTC2_UNORM = 94,
223 TFMT4_RGTC2_SNORM = 95,
224 TFMT4_BPTC_UFLOAT = 97,
225 TFMT4_BPTC_FLOAT = 98,
228 TFMT4_ATC_RGBA_EXPLICIT = 101,
229 TFMT4_ATC_RGBA_INTERPOLATED = 102,
230 TFMT4_ETC2_RG11_UNORM = 103,
231 TFMT4_ETC2_RG11_SNORM = 104,
232 TFMT4_ETC2_R11_UNORM = 105,
233 TFMT4_ETC2_R11_SNORM = 106,
235 TFMT4_ETC2_RGB8 = 108,
236 TFMT4_ETC2_RGBA8 = 109,
237 TFMT4_ETC2_RGB8A1 = 110,
238 TFMT4_ASTC_4x4 = 111,
239 TFMT4_ASTC_5x4 = 112,
240 TFMT4_ASTC_5x5 = 113,
241 TFMT4_ASTC_6x5 = 114,
242 TFMT4_ASTC_6x6 = 115,
243 TFMT4_ASTC_8x5 = 116,
244 TFMT4_ASTC_8x6 = 117,
245 TFMT4_ASTC_8x8 = 118,
246 TFMT4_ASTC_10x5 = 119,
247 TFMT4_ASTC_10x6 = 120,
248 TFMT4_ASTC_10x8 = 121,
249 TFMT4_ASTC_10x10 = 122,
250 TFMT4_ASTC_12x10 = 123,
251 TFMT4_ASTC_12x12 = 124,
254 enum a4xx_tex_fetchsize {
262 enum a4xx_depth_format {
269 enum a4xx_tess_spacing {
275 enum a4xx_ccu_perfcounter_select {
277 CCU_RB_DEPTH_RETURN_STALL = 2,
278 CCU_RB_COLOR_RETURN_STALL = 3,
279 CCU_DEPTH_BLOCKS = 6,
280 CCU_COLOR_BLOCKS = 7,
281 CCU_DEPTH_BLOCK_HIT = 8,
282 CCU_COLOR_BLOCK_HIT = 9,
283 CCU_DEPTH_FLAG1_COUNT = 10,
284 CCU_DEPTH_FLAG2_COUNT = 11,
285 CCU_DEPTH_FLAG3_COUNT = 12,
286 CCU_DEPTH_FLAG4_COUNT = 13,
287 CCU_COLOR_FLAG1_COUNT = 14,
288 CCU_COLOR_FLAG2_COUNT = 15,
289 CCU_COLOR_FLAG3_COUNT = 16,
290 CCU_COLOR_FLAG4_COUNT = 17,
291 CCU_PARTIAL_BLOCK_READ = 18,
294 enum a4xx_cp_perfcounter_select {
298 CP_PFP_BUSY_WORKING = 3,
299 CP_PFP_STALL_CYCLES_ANY = 4,
300 CP_PFP_STARVE_CYCLES_ANY = 5,
301 CP_PFP_STARVED_PER_LOAD_ADDR = 6,
302 CP_PFP_STALLED_PER_STORE_ADDR = 7,
303 CP_PFP_PC_PROFILE = 8,
304 CP_PFP_MATCH_PM4_PKT_PROFILE = 9,
305 CP_PFP_COND_INDIRECT_DISCARDED = 10,
306 CP_LONG_RESUMPTIONS = 11,
307 CP_RESUME_CYCLES = 12,
308 CP_RESUME_TO_BOUNDARY_CYCLES = 13,
309 CP_LONG_PREEMPTIONS = 14,
310 CP_PREEMPT_CYCLES = 15,
311 CP_PREEMPT_TO_BOUNDARY_CYCLES = 16,
312 CP_ME_FIFO_EMPTY_PFP_IDLE = 17,
313 CP_ME_FIFO_EMPTY_PFP_BUSY = 18,
314 CP_ME_FIFO_NOT_EMPTY_NOT_FULL = 19,
315 CP_ME_FIFO_FULL_ME_BUSY = 20,
316 CP_ME_FIFO_FULL_ME_NON_WORKING = 21,
317 CP_ME_WAITING_FOR_PACKETS = 22,
318 CP_ME_BUSY_WORKING = 23,
319 CP_ME_STARVE_CYCLES_ANY = 24,
320 CP_ME_STARVE_CYCLES_PER_PROFILE = 25,
321 CP_ME_STALL_CYCLES_PER_PROFILE = 26,
322 CP_ME_PC_PROFILE = 27,
323 CP_RCIU_FIFO_EMPTY = 28,
324 CP_RCIU_FIFO_NOT_EMPTY_NOT_FULL = 29,
325 CP_RCIU_FIFO_FULL = 30,
326 CP_RCIU_FIFO_FULL_NO_CONTEXT = 31,
327 CP_RCIU_FIFO_FULL_AHB_MASTER = 32,
328 CP_RCIU_FIFO_FULL_OTHER = 33,
330 CP_AHB_STALL_ON_GRANT_NO_SPLIT = 35,
331 CP_AHB_STALL_ON_GRANT_SPLIT = 36,
332 CP_AHB_STALL_ON_GRANT_SPLIT_PROFILE = 37,
333 CP_AHB_BUSY_WORKING = 38,
334 CP_AHB_BUSY_STALL_ON_HRDY = 39,
335 CP_AHB_BUSY_STALL_ON_HRDY_PROFILE = 40,
338 enum a4xx_gras_ras_perfcounter_select {
343 RAS_STALL_CYCLES_BY_RB = 4,
344 RAS_STALL_CYCLES_BY_VSC = 5,
345 RAS_STARVE_CYCLES_BY_TSE = 6,
346 RAS_SUPERTILE_CYCLES = 7,
348 RAS_FULLY_COVERED_SUPER_TILES = 9,
349 RAS_FULLY_COVERED_8X8_TILES = 10,
351 RAS_8X4_4X8_PRIM = 12,
355 enum a4xx_gras_tse_perfcounter_select {
357 TSE_INPUT_NULL_PRIM = 1,
358 TSE_TRIVAL_REJ_PRIM = 2,
359 TSE_CLIPPED_PRIM = 3,
361 TSE_ZERO_AREA_PRIM = 5,
362 TSE_FACENESS_CULLED_PRIM = 6,
363 TSE_ZERO_PIXEL_PRIM = 7,
364 TSE_OUTPUT_NULL_PRIM = 8,
365 TSE_OUTPUT_VISIBLE_PRIM = 9,
366 TSE_PRE_CLIP_PRIM = 10,
367 TSE_POST_CLIP_PRIM = 11,
368 TSE_BUSY_CYCLES = 12,
371 TSE_STALL_BARYPLANE_FIFO_FULL = 15,
372 TSE_STALL_ZPLANE_FIFO_FULL = 16,
375 enum a4xx_hlsq_perfcounter_select {
376 HLSQ_SP_VS_STAGE_CONSTANT = 0,
377 HLSQ_SP_VS_STAGE_INSTRUCTIONS = 1,
378 HLSQ_SP_FS_STAGE_CONSTANT = 2,
379 HLSQ_SP_FS_STAGE_INSTRUCTIONS = 3,
384 HLSQ_SP_VS_STAGE_DATA_BYTES = 13,
385 HLSQ_SP_FS_STAGE_DATA_BYTES = 14,
386 HLSQ_BUSY_CYCLES = 15,
387 HLSQ_STALL_CYCLES_SP_STATE = 16,
388 HLSQ_STALL_CYCLES_SP_VS_STAGE = 17,
389 HLSQ_STALL_CYCLES_SP_FS_STAGE = 18,
390 HLSQ_STALL_CYCLES_UCHE = 19,
391 HLSQ_RBBM_LOAD_CYCLES = 20,
392 HLSQ_DI_TO_VS_START_SP = 21,
393 HLSQ_DI_TO_FS_START_SP = 22,
394 HLSQ_VS_STAGE_START_TO_DONE_SP = 23,
395 HLSQ_FS_STAGE_START_TO_DONE_SP = 24,
396 HLSQ_SP_STATE_COPY_CYCLES_VS_STAGE = 25,
397 HLSQ_SP_STATE_COPY_CYCLES_FS_STAGE = 26,
398 HLSQ_UCHE_LATENCY_CYCLES = 27,
399 HLSQ_UCHE_LATENCY_COUNT = 28,
400 HLSQ_STARVE_CYCLES_VFD = 29,
403 enum a4xx_pc_perfcounter_select {
404 PC_VIS_STREAMS_LOADED = 0,
405 PC_VPC_PRIMITIVES = 2,
408 PC_DEAD_DRAWCALLS = 5,
409 PC_LIVE_DRAWCALLS = 6,
410 PC_VERTEX_MISSES = 7,
411 PC_STALL_CYCLES_VFD = 9,
412 PC_STALL_CYCLES_TSE = 10,
413 PC_STALL_CYCLES_UCHE = 11,
414 PC_WORKING_CYCLES = 12,
416 PC_GS_PRIMITIVES = 14,
417 PC_HS_INVOCATIONS = 15,
418 PC_DS_INVOCATIONS = 16,
419 PC_DS_PRIMITIVES = 17,
420 PC_STARVE_CYCLES_FOR_INDEX = 20,
421 PC_STARVE_CYCLES_FOR_TESS_FACTOR = 21,
422 PC_STARVE_CYCLES_FOR_VIZ_STREAM = 22,
423 PC_STALL_CYCLES_TESS = 23,
424 PC_STARVE_CYCLES_FOR_POSITION = 24,
425 PC_MODE0_DRAWCALL = 25,
426 PC_MODE1_DRAWCALL = 26,
427 PC_MODE2_DRAWCALL = 27,
428 PC_MODE3_DRAWCALL = 28,
429 PC_MODE4_DRAWCALL = 29,
430 PC_PREDICATED_DEAD_DRAWCALL = 30,
431 PC_STALL_CYCLES_BY_TSE_ONLY = 31,
432 PC_STALL_CYCLES_BY_VPC_ONLY = 32,
433 PC_VPC_POS_DATA_TRANSACTION = 33,
435 PC_STARVE_CYCLES_DI = 35,
436 PC_STALL_CYCLES_VPC = 36,
437 TESS_WORKING_CYCLES = 37,
438 TESS_NUM_CYCLES_SETUP_WORKING = 38,
439 TESS_NUM_CYCLES_PTGEN_WORKING = 39,
440 TESS_NUM_CYCLES_CONNGEN_WORKING = 40,
441 TESS_BUSY_CYCLES = 41,
442 TESS_STARVE_CYCLES_PC = 42,
443 TESS_STALL_CYCLES_PC = 43,
446 enum a4xx_pwr_perfcounter_select {
447 PWR_CORE_CLOCK_CYCLES = 0,
448 PWR_BUSY_CLOCK_CYCLES = 1,
451 enum a4xx_rb_perfcounter_select {
453 RB_BUSY_CYCLES_BINNING = 1,
454 RB_BUSY_CYCLES_RENDERING = 2,
455 RB_BUSY_CYCLES_RESOLVE = 3,
456 RB_STARVE_CYCLES_BY_SP = 4,
457 RB_STARVE_CYCLES_BY_RAS = 5,
458 RB_STARVE_CYCLES_BY_MARB = 6,
459 RB_STALL_CYCLES_BY_MARB = 7,
460 RB_STALL_CYCLES_BY_HLSQ = 8,
461 RB_RB_RB_MARB_DATA = 9,
463 RB_RAS_RB_Z_QUADS = 11,
464 RB_GMEM_CH0_READ = 12,
465 RB_GMEM_CH1_READ = 13,
466 RB_GMEM_CH0_WRITE = 14,
467 RB_GMEM_CH1_WRITE = 15,
468 RB_CP_CONTEXT_DONE = 16,
469 RB_CP_CACHE_FLUSH = 17,
470 RB_CP_ZPASS_DONE = 18,
471 RB_STALL_FIFO0_FULL = 19,
472 RB_STALL_FIFO1_FULL = 20,
473 RB_STALL_FIFO2_FULL = 21,
474 RB_STALL_FIFO3_FULL = 22,
475 RB_RB_HLSQ_TRANSACTIONS = 23,
480 RB_C_READ_LATENCY = 28,
481 RB_Z_READ_LATENCY = 29,
482 RB_STALL_BY_UCHE = 30,
483 RB_MARB_UCHE_TRANSACTIONS = 31,
484 RB_CACHE_STALL_MISS = 32,
485 RB_CACHE_STALL_FIFO_FULL = 33,
486 RB_8BIT_BLENDER_UNITS_ACTIVE = 34,
487 RB_16BIT_BLENDER_UNITS_ACTIVE = 35,
488 RB_SAMPLER_UNITS_ACTIVE = 36,
503 enum a4xx_rbbm_perfcounter_select {
508 RBBM_PC_DCALL_BUSY = 4,
509 RBBM_PC_VSD_BUSY = 5,
515 RBBM_ANY_RB_BUSY = 11,
516 RBBM_ANY_TPL1_BUSY = 12,
517 RBBM_ANY_SP_BUSY = 13,
518 RBBM_ANY_MARB_BUSY = 14,
519 RBBM_ANY_ARB_BUSY = 15,
520 RBBM_AHB_STATUS_BUSY = 16,
521 RBBM_AHB_STATUS_STALLED = 17,
522 RBBM_AHB_STATUS_TXFR = 18,
523 RBBM_AHB_STATUS_TXFR_SPLIT = 19,
524 RBBM_AHB_STATUS_TXFR_ERROR = 20,
525 RBBM_AHB_STATUS_LONG_STALL = 21,
526 RBBM_STATUS_MASKED = 22,
527 RBBM_CP_BUSY_GFX_CORE_IDLE = 23,
531 RBBM_ANY_CCU_BUSY = 33,
535 enum a4xx_sp_perfcounter_select {
536 SP_LM_LOAD_INSTRUCTIONS = 0,
537 SP_LM_STORE_INSTRUCTIONS = 1,
539 SP_GM_LOAD_INSTRUCTIONS = 3,
540 SP_GM_STORE_INSTRUCTIONS = 4,
542 SP_VS_STAGE_TEX_INSTRUCTIONS = 6,
543 SP_VS_STAGE_CFLOW_INSTRUCTIONS = 7,
544 SP_VS_STAGE_EFU_INSTRUCTIONS = 8,
545 SP_VS_STAGE_FULL_ALU_INSTRUCTIONS = 9,
546 SP_VS_STAGE_HALF_ALU_INSTRUCTIONS = 10,
547 SP_FS_STAGE_TEX_INSTRUCTIONS = 11,
548 SP_FS_STAGE_CFLOW_INSTRUCTIONS = 12,
549 SP_FS_STAGE_EFU_INSTRUCTIONS = 13,
550 SP_FS_STAGE_FULL_ALU_INSTRUCTIONS = 14,
551 SP_FS_STAGE_HALF_ALU_INSTRUCTIONS = 15,
552 SP_VS_INSTRUCTIONS = 17,
553 SP_FS_INSTRUCTIONS = 18,
554 SP_ADDR_LOCK_COUNT = 19,
555 SP_UCHE_READ_TRANS = 20,
556 SP_UCHE_WRITE_TRANS = 21,
557 SP_EXPORT_VPC_TRANS = 22,
558 SP_EXPORT_RB_TRANS = 23,
559 SP_PIXELS_KILLED = 24,
560 SP_ICL1_REQUESTS = 25,
562 SP_ICL0_REQUESTS = 27,
564 SP_ALU_WORKING_CYCLES = 29,
565 SP_EFU_WORKING_CYCLES = 30,
566 SP_STALL_CYCLES_BY_VPC = 31,
567 SP_STALL_CYCLES_BY_TP = 32,
568 SP_STALL_CYCLES_BY_UCHE = 33,
569 SP_STALL_CYCLES_BY_RB = 34,
571 SP_HS_INSTRUCTIONS = 36,
572 SP_DS_INSTRUCTIONS = 37,
573 SP_GS_INSTRUCTIONS = 38,
574 SP_CS_INSTRUCTIONS = 39,
575 SP_SCHEDULER_NON_WORKING = 40,
576 SP_WAVE_CONTEXTS = 41,
577 SP_WAVE_CONTEXT_CYCLES = 42,
596 enum a4xx_tp_perfcounter_select {
602 TP_QUADS_GRADIENT = 11,
604 TP_QUADS_3DCUBE = 13,
606 TP_STALL_CYCLES_BY_ARB = 17,
607 TP_STATE_CACHE_REQUESTS = 20,
608 TP_STATE_CACHE_MISSES = 21,
619 enum a4xx_uche_perfcounter_select {
620 UCHE_VBIF_READ_BEATS_TP = 0,
621 UCHE_VBIF_READ_BEATS_VFD = 1,
622 UCHE_VBIF_READ_BEATS_HLSQ = 2,
623 UCHE_VBIF_READ_BEATS_MARB = 3,
624 UCHE_VBIF_READ_BEATS_SP = 4,
625 UCHE_READ_REQUESTS_TP = 5,
626 UCHE_READ_REQUESTS_VFD = 6,
627 UCHE_READ_REQUESTS_HLSQ = 7,
628 UCHE_READ_REQUESTS_MARB = 8,
629 UCHE_READ_REQUESTS_SP = 9,
630 UCHE_WRITE_REQUESTS_MARB = 10,
631 UCHE_WRITE_REQUESTS_SP = 11,
632 UCHE_TAG_CHECK_FAILS = 12,
635 UCHE_VBIF_LATENCY_CYCLES = 15,
636 UCHE_VBIF_LATENCY_SAMPLES = 16,
637 UCHE_BUSY_CYCLES = 17,
638 UCHE_VBIF_READ_BEATS_PC = 18,
639 UCHE_READ_REQUESTS_PC = 19,
640 UCHE_WRITE_REQUESTS_VPC = 20,
641 UCHE_STALL_BY_VBIF = 21,
642 UCHE_WRITE_REQUESTS_VSC = 22,
653 enum a4xx_vbif_perfcounter_select {
654 AXI_READ_REQUESTS_ID_0 = 0,
655 AXI_READ_REQUESTS_ID_1 = 1,
656 AXI_READ_REQUESTS_ID_2 = 2,
657 AXI_READ_REQUESTS_ID_3 = 3,
658 AXI_READ_REQUESTS_ID_4 = 4,
659 AXI_READ_REQUESTS_ID_5 = 5,
660 AXI_READ_REQUESTS_ID_6 = 6,
661 AXI_READ_REQUESTS_ID_7 = 7,
662 AXI_READ_REQUESTS_ID_8 = 8,
663 AXI_READ_REQUESTS_ID_9 = 9,
664 AXI_READ_REQUESTS_ID_10 = 10,
665 AXI_READ_REQUESTS_ID_11 = 11,
666 AXI_READ_REQUESTS_ID_12 = 12,
667 AXI_READ_REQUESTS_ID_13 = 13,
668 AXI_READ_REQUESTS_ID_14 = 14,
669 AXI_READ_REQUESTS_ID_15 = 15,
670 AXI0_READ_REQUESTS_TOTAL = 16,
671 AXI1_READ_REQUESTS_TOTAL = 17,
672 AXI2_READ_REQUESTS_TOTAL = 18,
673 AXI3_READ_REQUESTS_TOTAL = 19,
674 AXI_READ_REQUESTS_TOTAL = 20,
675 AXI_WRITE_REQUESTS_ID_0 = 21,
676 AXI_WRITE_REQUESTS_ID_1 = 22,
677 AXI_WRITE_REQUESTS_ID_2 = 23,
678 AXI_WRITE_REQUESTS_ID_3 = 24,
679 AXI_WRITE_REQUESTS_ID_4 = 25,
680 AXI_WRITE_REQUESTS_ID_5 = 26,
681 AXI_WRITE_REQUESTS_ID_6 = 27,
682 AXI_WRITE_REQUESTS_ID_7 = 28,
683 AXI_WRITE_REQUESTS_ID_8 = 29,
684 AXI_WRITE_REQUESTS_ID_9 = 30,
685 AXI_WRITE_REQUESTS_ID_10 = 31,
686 AXI_WRITE_REQUESTS_ID_11 = 32,
687 AXI_WRITE_REQUESTS_ID_12 = 33,
688 AXI_WRITE_REQUESTS_ID_13 = 34,
689 AXI_WRITE_REQUESTS_ID_14 = 35,
690 AXI_WRITE_REQUESTS_ID_15 = 36,
691 AXI0_WRITE_REQUESTS_TOTAL = 37,
692 AXI1_WRITE_REQUESTS_TOTAL = 38,
693 AXI2_WRITE_REQUESTS_TOTAL = 39,
694 AXI3_WRITE_REQUESTS_TOTAL = 40,
695 AXI_WRITE_REQUESTS_TOTAL = 41,
696 AXI_TOTAL_REQUESTS = 42,
697 AXI_READ_DATA_BEATS_ID_0 = 43,
698 AXI_READ_DATA_BEATS_ID_1 = 44,
699 AXI_READ_DATA_BEATS_ID_2 = 45,
700 AXI_READ_DATA_BEATS_ID_3 = 46,
701 AXI_READ_DATA_BEATS_ID_4 = 47,
702 AXI_READ_DATA_BEATS_ID_5 = 48,
703 AXI_READ_DATA_BEATS_ID_6 = 49,
704 AXI_READ_DATA_BEATS_ID_7 = 50,
705 AXI_READ_DATA_BEATS_ID_8 = 51,
706 AXI_READ_DATA_BEATS_ID_9 = 52,
707 AXI_READ_DATA_BEATS_ID_10 = 53,
708 AXI_READ_DATA_BEATS_ID_11 = 54,
709 AXI_READ_DATA_BEATS_ID_12 = 55,
710 AXI_READ_DATA_BEATS_ID_13 = 56,
711 AXI_READ_DATA_BEATS_ID_14 = 57,
712 AXI_READ_DATA_BEATS_ID_15 = 58,
713 AXI0_READ_DATA_BEATS_TOTAL = 59,
714 AXI1_READ_DATA_BEATS_TOTAL = 60,
715 AXI2_READ_DATA_BEATS_TOTAL = 61,
716 AXI3_READ_DATA_BEATS_TOTAL = 62,
717 AXI_READ_DATA_BEATS_TOTAL = 63,
718 AXI_WRITE_DATA_BEATS_ID_0 = 64,
719 AXI_WRITE_DATA_BEATS_ID_1 = 65,
720 AXI_WRITE_DATA_BEATS_ID_2 = 66,
721 AXI_WRITE_DATA_BEATS_ID_3 = 67,
722 AXI_WRITE_DATA_BEATS_ID_4 = 68,
723 AXI_WRITE_DATA_BEATS_ID_5 = 69,
724 AXI_WRITE_DATA_BEATS_ID_6 = 70,
725 AXI_WRITE_DATA_BEATS_ID_7 = 71,
726 AXI_WRITE_DATA_BEATS_ID_8 = 72,
727 AXI_WRITE_DATA_BEATS_ID_9 = 73,
728 AXI_WRITE_DATA_BEATS_ID_10 = 74,
729 AXI_WRITE_DATA_BEATS_ID_11 = 75,
730 AXI_WRITE_DATA_BEATS_ID_12 = 76,
731 AXI_WRITE_DATA_BEATS_ID_13 = 77,
732 AXI_WRITE_DATA_BEATS_ID_14 = 78,
733 AXI_WRITE_DATA_BEATS_ID_15 = 79,
734 AXI0_WRITE_DATA_BEATS_TOTAL = 80,
735 AXI1_WRITE_DATA_BEATS_TOTAL = 81,
736 AXI2_WRITE_DATA_BEATS_TOTAL = 82,
737 AXI3_WRITE_DATA_BEATS_TOTAL = 83,
738 AXI_WRITE_DATA_BEATS_TOTAL = 84,
739 AXI_DATA_BEATS_TOTAL = 85,
740 CYCLES_HELD_OFF_ID_0 = 86,
741 CYCLES_HELD_OFF_ID_1 = 87,
742 CYCLES_HELD_OFF_ID_2 = 88,
743 CYCLES_HELD_OFF_ID_3 = 89,
744 CYCLES_HELD_OFF_ID_4 = 90,
745 CYCLES_HELD_OFF_ID_5 = 91,
746 CYCLES_HELD_OFF_ID_6 = 92,
747 CYCLES_HELD_OFF_ID_7 = 93,
748 CYCLES_HELD_OFF_ID_8 = 94,
749 CYCLES_HELD_OFF_ID_9 = 95,
750 CYCLES_HELD_OFF_ID_10 = 96,
751 CYCLES_HELD_OFF_ID_11 = 97,
752 CYCLES_HELD_OFF_ID_12 = 98,
753 CYCLES_HELD_OFF_ID_13 = 99,
754 CYCLES_HELD_OFF_ID_14 = 100,
755 CYCLES_HELD_OFF_ID_15 = 101,
756 AXI_READ_REQUEST_HELD_OFF = 102,
757 AXI_WRITE_REQUEST_HELD_OFF = 103,
758 AXI_REQUEST_HELD_OFF = 104,
759 AXI_WRITE_DATA_HELD_OFF = 105,
760 OCMEM_AXI_READ_REQUEST_HELD_OFF = 106,
761 OCMEM_AXI_WRITE_REQUEST_HELD_OFF = 107,
762 OCMEM_AXI_REQUEST_HELD_OFF = 108,
763 OCMEM_AXI_WRITE_DATA_HELD_OFF = 109,
764 ELAPSED_CYCLES_DDR = 110,
765 ELAPSED_CYCLES_OCMEM = 111,
768 enum a4xx_vfd_perfcounter_select {
769 VFD_UCHE_BYTE_FETCHED = 0,
771 VFD_FETCH_INSTRUCTIONS = 3,
773 VFD_STALL_CYCLES_UCHE = 6,
774 VFD_STALL_CYCLES_HLSQ = 7,
775 VFD_STALL_CYCLES_VPC_BYPASS = 8,
776 VFD_STALL_CYCLES_VPC_ALLOC = 9,
777 VFD_MODE_0_FIBERS = 13,
778 VFD_MODE_1_FIBERS = 14,
779 VFD_MODE_2_FIBERS = 15,
780 VFD_MODE_3_FIBERS = 16,
781 VFD_MODE_4_FIBERS = 17,
782 VFD_BFIFO_STALL = 18,
783 VFD_NUM_VERTICES_TOTAL = 19,
784 VFD_PACKER_FULL = 20,
785 VFD_UCHE_REQUEST_FIFO_FULL = 21,
786 VFD_STARVE_CYCLES_PC = 22,
787 VFD_STARVE_CYCLES_UCHE = 23,
790 enum a4xx_vpc_perfcounter_select {
791 VPC_SP_LM_COMPONENTS = 2,
792 VPC_SP0_LM_BYTES = 3,
793 VPC_SP1_LM_BYTES = 4,
794 VPC_SP2_LM_BYTES = 5,
795 VPC_SP3_LM_BYTES = 6,
796 VPC_WORKING_CYCLES = 7,
797 VPC_STALL_CYCLES_LM = 8,
798 VPC_STARVE_CYCLES_RAS = 9,
799 VPC_STREAMOUT_CYCLES = 10,
800 VPC_UCHE_TRANSACTIONS = 12,
801 VPC_STALL_CYCLES_UCHE = 13,
802 VPC_BUSY_CYCLES = 14,
803 VPC_STARVE_CYCLES_SP = 15,
806 enum a4xx_vsc_perfcounter_select {
808 VSC_WORKING_CYCLES = 1,
809 VSC_STALL_CYCLES_UCHE = 2,
810 VSC_STARVE_CYCLES_RAS = 3,
814 enum a4xx_tex_filter {
815 A4XX_TEX_NEAREST = 0,
820 enum a4xx_tex_clamp {
822 A4XX_TEX_CLAMP_TO_EDGE = 1,
823 A4XX_TEX_MIRROR_REPEAT = 2,
824 A4XX_TEX_CLAMP_TO_BORDER = 3,
825 A4XX_TEX_MIRROR_CLAMP = 4,
828 enum a4xx_tex_aniso {
829 A4XX_TEX_ANISO_1 = 0,
830 A4XX_TEX_ANISO_2 = 1,
831 A4XX_TEX_ANISO_4 = 2,
832 A4XX_TEX_ANISO_8 = 3,
833 A4XX_TEX_ANISO_16 = 4,
852 #define A4XX_CGC_HLSQ_EARLY_CYC__MASK 0x00700000
853 #define A4XX_CGC_HLSQ_EARLY_CYC__SHIFT 20
854 static inline uint32_t A4XX_CGC_HLSQ_EARLY_CYC(uint32_t val)
856 return ((val) << A4XX_CGC_HLSQ_EARLY_CYC__SHIFT) & A4XX_CGC_HLSQ_EARLY_CYC__MASK;
858 #define A4XX_INT0_RBBM_GPU_IDLE 0x00000001
859 #define A4XX_INT0_RBBM_AHB_ERROR 0x00000002
860 #define A4XX_INT0_RBBM_REG_TIMEOUT 0x00000004
861 #define A4XX_INT0_RBBM_ME_MS_TIMEOUT 0x00000008
862 #define A4XX_INT0_RBBM_PFP_MS_TIMEOUT 0x00000010
863 #define A4XX_INT0_RBBM_ATB_BUS_OVERFLOW 0x00000020
864 #define A4XX_INT0_VFD_ERROR 0x00000040
865 #define A4XX_INT0_CP_SW_INT 0x00000080
866 #define A4XX_INT0_CP_T0_PACKET_IN_IB 0x00000100
867 #define A4XX_INT0_CP_OPCODE_ERROR 0x00000200
868 #define A4XX_INT0_CP_RESERVED_BIT_ERROR 0x00000400
869 #define A4XX_INT0_CP_HW_FAULT 0x00000800
870 #define A4XX_INT0_CP_DMA 0x00001000
871 #define A4XX_INT0_CP_IB2_INT 0x00002000
872 #define A4XX_INT0_CP_IB1_INT 0x00004000
873 #define A4XX_INT0_CP_RB_INT 0x00008000
874 #define A4XX_INT0_CP_REG_PROTECT_FAULT 0x00010000
875 #define A4XX_INT0_CP_RB_DONE_TS 0x00020000
876 #define A4XX_INT0_CP_VS_DONE_TS 0x00040000
877 #define A4XX_INT0_CP_PS_DONE_TS 0x00080000
878 #define A4XX_INT0_CACHE_FLUSH_TS 0x00100000
879 #define A4XX_INT0_CP_AHB_ERROR_HALT 0x00200000
880 #define A4XX_INT0_MISC_HANG_DETECT 0x01000000
881 #define A4XX_INT0_UCHE_OOB_ACCESS 0x02000000
882 #define REG_A4XX_RB_GMEM_BASE_ADDR 0x00000cc0
884 #define REG_A4XX_RB_PERFCTR_RB_SEL_0 0x00000cc7
886 #define REG_A4XX_RB_PERFCTR_RB_SEL_1 0x00000cc8
888 #define REG_A4XX_RB_PERFCTR_RB_SEL_2 0x00000cc9
890 #define REG_A4XX_RB_PERFCTR_RB_SEL_3 0x00000cca
892 #define REG_A4XX_RB_PERFCTR_RB_SEL_4 0x00000ccb
894 #define REG_A4XX_RB_PERFCTR_RB_SEL_5 0x00000ccc
896 #define REG_A4XX_RB_PERFCTR_RB_SEL_6 0x00000ccd
898 #define REG_A4XX_RB_PERFCTR_RB_SEL_7 0x00000cce
900 #define REG_A4XX_RB_PERFCTR_CCU_SEL_0 0x00000ccf
902 #define REG_A4XX_RB_PERFCTR_CCU_SEL_1 0x00000cd0
904 #define REG_A4XX_RB_PERFCTR_CCU_SEL_2 0x00000cd1
906 #define REG_A4XX_RB_PERFCTR_CCU_SEL_3 0x00000cd2
908 #define REG_A4XX_RB_FRAME_BUFFER_DIMENSION 0x00000ce0
909 #define A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__MASK 0x00003fff
910 #define A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__SHIFT 0
911 static inline uint32_t A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH(uint32_t val)
913 return ((val) << A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__SHIFT) & A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__MASK;
915 #define A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__MASK 0x3fff0000
916 #define A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__SHIFT 16
917 static inline uint32_t A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT(uint32_t val)
919 return ((val) << A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__SHIFT) & A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__MASK;
922 #define REG_A4XX_RB_CLEAR_COLOR_DW0 0x000020cc
924 #define REG_A4XX_RB_CLEAR_COLOR_DW1 0x000020cd
926 #define REG_A4XX_RB_CLEAR_COLOR_DW2 0x000020ce
928 #define REG_A4XX_RB_CLEAR_COLOR_DW3 0x000020cf
930 #define REG_A4XX_RB_MODE_CONTROL 0x000020a0
931 #define A4XX_RB_MODE_CONTROL_WIDTH__MASK 0x0000003f
932 #define A4XX_RB_MODE_CONTROL_WIDTH__SHIFT 0
933 static inline uint32_t A4XX_RB_MODE_CONTROL_WIDTH(uint32_t val)
935 return ((val >> 5) << A4XX_RB_MODE_CONTROL_WIDTH__SHIFT) & A4XX_RB_MODE_CONTROL_WIDTH__MASK;
937 #define A4XX_RB_MODE_CONTROL_HEIGHT__MASK 0x00003f00
938 #define A4XX_RB_MODE_CONTROL_HEIGHT__SHIFT 8
939 static inline uint32_t A4XX_RB_MODE_CONTROL_HEIGHT(uint32_t val)
941 return ((val >> 5) << A4XX_RB_MODE_CONTROL_HEIGHT__SHIFT) & A4XX_RB_MODE_CONTROL_HEIGHT__MASK;
944 #define REG_A4XX_RB_RENDER_CONTROL 0x000020a1
945 #define A4XX_RB_RENDER_CONTROL_BINNING_PASS 0x00000001
946 #define A4XX_RB_RENDER_CONTROL_DISABLE_COLOR_PIPE 0x00000020
948 #define REG_A4XX_RB_MSAA_CONTROL 0x000020a2
949 #define A4XX_RB_MSAA_CONTROL_DISABLE 0x00001000
950 #define A4XX_RB_MSAA_CONTROL_SAMPLES__MASK 0x0000e000
951 #define A4XX_RB_MSAA_CONTROL_SAMPLES__SHIFT 13
952 static inline uint32_t A4XX_RB_MSAA_CONTROL_SAMPLES(uint32_t val)
954 return ((val) << A4XX_RB_MSAA_CONTROL_SAMPLES__SHIFT) & A4XX_RB_MSAA_CONTROL_SAMPLES__MASK;
957 #define REG_A4XX_RB_RENDER_CONTROL2 0x000020a3
958 #define A4XX_RB_RENDER_CONTROL2_XCOORD 0x00000001
959 #define A4XX_RB_RENDER_CONTROL2_YCOORD 0x00000002
960 #define A4XX_RB_RENDER_CONTROL2_ZCOORD 0x00000004
961 #define A4XX_RB_RENDER_CONTROL2_WCOORD 0x00000008
962 #define A4XX_RB_RENDER_CONTROL2_SAMPLEMASK 0x00000010
963 #define A4XX_RB_RENDER_CONTROL2_FACENESS 0x00000020
964 #define A4XX_RB_RENDER_CONTROL2_SAMPLEID 0x00000040
965 #define A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__MASK 0x00000380
966 #define A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__SHIFT 7
967 static inline uint32_t A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES(uint32_t val)
969 return ((val) << A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__SHIFT) & A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__MASK;
971 #define A4XX_RB_RENDER_CONTROL2_SAMPLEID_HR 0x00000800
972 #define A4XX_RB_RENDER_CONTROL2_VARYING 0x00001000
974 static inline uint32_t REG_A4XX_RB_MRT(uint32_t i0) { return 0x000020a4 + 0x5*i0; }
976 static inline uint32_t REG_A4XX_RB_MRT_CONTROL(uint32_t i0) { return 0x000020a4 + 0x5*i0; }
977 #define A4XX_RB_MRT_CONTROL_READ_DEST_ENABLE 0x00000008
978 #define A4XX_RB_MRT_CONTROL_BLEND 0x00000010
979 #define A4XX_RB_MRT_CONTROL_BLEND2 0x00000020
980 #define A4XX_RB_MRT_CONTROL_ROP_ENABLE 0x00000040
981 #define A4XX_RB_MRT_CONTROL_ROP_CODE__MASK 0x00000f00
982 #define A4XX_RB_MRT_CONTROL_ROP_CODE__SHIFT 8
983 static inline uint32_t A4XX_RB_MRT_CONTROL_ROP_CODE(enum a3xx_rop_code val)
985 return ((val) << A4XX_RB_MRT_CONTROL_ROP_CODE__SHIFT) & A4XX_RB_MRT_CONTROL_ROP_CODE__MASK;
987 #define A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__MASK 0x0f000000
988 #define A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__SHIFT 24
989 static inline uint32_t A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE(uint32_t val)
991 return ((val) << A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__SHIFT) & A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__MASK;
994 static inline uint32_t REG_A4XX_RB_MRT_BUF_INFO(uint32_t i0) { return 0x000020a5 + 0x5*i0; }
995 #define A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__MASK 0x0000003f
996 #define A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__SHIFT 0
997 static inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT(enum a4xx_color_fmt val)
999 return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__MASK;
1001 #define A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__MASK 0x000000c0
1002 #define A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__SHIFT 6
1003 static inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE(enum a4xx_tile_mode val)
1005 return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__MASK;
1007 #define A4XX_RB_MRT_BUF_INFO_DITHER_MODE__MASK 0x00000600
1008 #define A4XX_RB_MRT_BUF_INFO_DITHER_MODE__SHIFT 9
1009 static inline uint32_t A4XX_RB_MRT_BUF_INFO_DITHER_MODE(enum adreno_rb_dither_mode val)
1011 return ((val) << A4XX_RB_MRT_BUF_INFO_DITHER_MODE__SHIFT) & A4XX_RB_MRT_BUF_INFO_DITHER_MODE__MASK;
1013 #define A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__MASK 0x00001800
1014 #define A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__SHIFT 11
1015 static inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_SWAP(enum a3xx_color_swap val)
1017 return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__MASK;
1019 #define A4XX_RB_MRT_BUF_INFO_COLOR_SRGB 0x00002000
1020 #define A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__MASK 0xffffc000
1021 #define A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__SHIFT 14
1022 static inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH(uint32_t val)
1024 return ((val >> 4) << A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__MASK;
1027 static inline uint32_t REG_A4XX_RB_MRT_BASE(uint32_t i0) { return 0x000020a6 + 0x5*i0; }
1029 static inline uint32_t REG_A4XX_RB_MRT_CONTROL3(uint32_t i0) { return 0x000020a7 + 0x5*i0; }
1030 #define A4XX_RB_MRT_CONTROL3_STRIDE__MASK 0x03fffff8
1031 #define A4XX_RB_MRT_CONTROL3_STRIDE__SHIFT 3
1032 static inline uint32_t A4XX_RB_MRT_CONTROL3_STRIDE(uint32_t val)
1034 return ((val) << A4XX_RB_MRT_CONTROL3_STRIDE__SHIFT) & A4XX_RB_MRT_CONTROL3_STRIDE__MASK;
1037 static inline uint32_t REG_A4XX_RB_MRT_BLEND_CONTROL(uint32_t i0) { return 0x000020a8 + 0x5*i0; }
1038 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__MASK 0x0000001f
1039 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__SHIFT 0
1040 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR(enum adreno_rb_blend_factor val)
1042 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__MASK;
1044 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__MASK 0x000000e0
1045 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__SHIFT 5
1046 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE(enum a4xx_rb_blend_opcode val)
1048 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__MASK;
1050 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__MASK 0x00001f00
1051 #define A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__SHIFT 8
1052 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR(enum adreno_rb_blend_factor val)
1054 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__MASK;
1056 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__MASK 0x001f0000
1057 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__SHIFT 16
1058 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR(enum adreno_rb_blend_factor val)
1060 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__MASK;
1062 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__MASK 0x00e00000
1063 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__SHIFT 21
1064 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE(enum a4xx_rb_blend_opcode val)
1066 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__MASK;
1068 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__MASK 0x1f000000
1069 #define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__SHIFT 24
1070 static inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR(enum adreno_rb_blend_factor val)
1072 return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__MASK;
1075 #define REG_A4XX_RB_BLEND_RED 0x000020f0
1076 #define A4XX_RB_BLEND_RED_UINT__MASK 0x0000ffff
1077 #define A4XX_RB_BLEND_RED_UINT__SHIFT 0
1078 static inline uint32_t A4XX_RB_BLEND_RED_UINT(uint32_t val)
1080 return ((val) << A4XX_RB_BLEND_RED_UINT__SHIFT) & A4XX_RB_BLEND_RED_UINT__MASK;
1082 #define A4XX_RB_BLEND_RED_FLOAT__MASK 0xffff0000
1083 #define A4XX_RB_BLEND_RED_FLOAT__SHIFT 16
1084 static inline uint32_t A4XX_RB_BLEND_RED_FLOAT(float val)
1086 return ((util_float_to_half(val)) << A4XX_RB_BLEND_RED_FLOAT__SHIFT) & A4XX_RB_BLEND_RED_FLOAT__MASK;
1089 #define REG_A4XX_RB_BLEND_RED_F32 0x000020f1
1090 #define A4XX_RB_BLEND_RED_F32__MASK 0xffffffff
1091 #define A4XX_RB_BLEND_RED_F32__SHIFT 0
1092 static inline uint32_t A4XX_RB_BLEND_RED_F32(float val)
1094 return ((fui(val)) << A4XX_RB_BLEND_RED_F32__SHIFT) & A4XX_RB_BLEND_RED_F32__MASK;
1097 #define REG_A4XX_RB_BLEND_GREEN 0x000020f2
1098 #define A4XX_RB_BLEND_GREEN_UINT__MASK 0x0000ffff
1099 #define A4XX_RB_BLEND_GREEN_UINT__SHIFT 0
1100 static inline uint32_t A4XX_RB_BLEND_GREEN_UINT(uint32_t val)
1102 return ((val) << A4XX_RB_BLEND_GREEN_UINT__SHIFT) & A4XX_RB_BLEND_GREEN_UINT__MASK;
1104 #define A4XX_RB_BLEND_GREEN_FLOAT__MASK 0xffff0000
1105 #define A4XX_RB_BLEND_GREEN_FLOAT__SHIFT 16
1106 static inline uint32_t A4XX_RB_BLEND_GREEN_FLOAT(float val)
1108 return ((util_float_to_half(val)) << A4XX_RB_BLEND_GREEN_FLOAT__SHIFT) & A4XX_RB_BLEND_GREEN_FLOAT__MASK;
1111 #define REG_A4XX_RB_BLEND_GREEN_F32 0x000020f3
1112 #define A4XX_RB_BLEND_GREEN_F32__MASK 0xffffffff
1113 #define A4XX_RB_BLEND_GREEN_F32__SHIFT 0
1114 static inline uint32_t A4XX_RB_BLEND_GREEN_F32(float val)
1116 return ((fui(val)) << A4XX_RB_BLEND_GREEN_F32__SHIFT) & A4XX_RB_BLEND_GREEN_F32__MASK;
1119 #define REG_A4XX_RB_BLEND_BLUE 0x000020f4
1120 #define A4XX_RB_BLEND_BLUE_UINT__MASK 0x0000ffff
1121 #define A4XX_RB_BLEND_BLUE_UINT__SHIFT 0
1122 static inline uint32_t A4XX_RB_BLEND_BLUE_UINT(uint32_t val)
1124 return ((val) << A4XX_RB_BLEND_BLUE_UINT__SHIFT) & A4XX_RB_BLEND_BLUE_UINT__MASK;
1126 #define A4XX_RB_BLEND_BLUE_FLOAT__MASK 0xffff0000
1127 #define A4XX_RB_BLEND_BLUE_FLOAT__SHIFT 16
1128 static inline uint32_t A4XX_RB_BLEND_BLUE_FLOAT(float val)
1130 return ((util_float_to_half(val)) << A4XX_RB_BLEND_BLUE_FLOAT__SHIFT) & A4XX_RB_BLEND_BLUE_FLOAT__MASK;
1133 #define REG_A4XX_RB_BLEND_BLUE_F32 0x000020f5
1134 #define A4XX_RB_BLEND_BLUE_F32__MASK 0xffffffff
1135 #define A4XX_RB_BLEND_BLUE_F32__SHIFT 0
1136 static inline uint32_t A4XX_RB_BLEND_BLUE_F32(float val)
1138 return ((fui(val)) << A4XX_RB_BLEND_BLUE_F32__SHIFT) & A4XX_RB_BLEND_BLUE_F32__MASK;
1141 #define REG_A4XX_RB_BLEND_ALPHA 0x000020f6
1142 #define A4XX_RB_BLEND_ALPHA_UINT__MASK 0x0000ffff
1143 #define A4XX_RB_BLEND_ALPHA_UINT__SHIFT 0
1144 static inline uint32_t A4XX_RB_BLEND_ALPHA_UINT(uint32_t val)
1146 return ((val) << A4XX_RB_BLEND_ALPHA_UINT__SHIFT) & A4XX_RB_BLEND_ALPHA_UINT__MASK;
1148 #define A4XX_RB_BLEND_ALPHA_FLOAT__MASK 0xffff0000
1149 #define A4XX_RB_BLEND_ALPHA_FLOAT__SHIFT 16
1150 static inline uint32_t A4XX_RB_BLEND_ALPHA_FLOAT(float val)
1152 return ((util_float_to_half(val)) << A4XX_RB_BLEND_ALPHA_FLOAT__SHIFT) & A4XX_RB_BLEND_ALPHA_FLOAT__MASK;
1155 #define REG_A4XX_RB_BLEND_ALPHA_F32 0x000020f7
1156 #define A4XX_RB_BLEND_ALPHA_F32__MASK 0xffffffff
1157 #define A4XX_RB_BLEND_ALPHA_F32__SHIFT 0
1158 static inline uint32_t A4XX_RB_BLEND_ALPHA_F32(float val)
1160 return ((fui(val)) << A4XX_RB_BLEND_ALPHA_F32__SHIFT) & A4XX_RB_BLEND_ALPHA_F32__MASK;
1163 #define REG_A4XX_RB_ALPHA_CONTROL 0x000020f8
1164 #define A4XX_RB_ALPHA_CONTROL_ALPHA_REF__MASK 0x000000ff
1165 #define A4XX_RB_ALPHA_CONTROL_ALPHA_REF__SHIFT 0
1166 static inline uint32_t A4XX_RB_ALPHA_CONTROL_ALPHA_REF(uint32_t val)
1168 return ((val) << A4XX_RB_ALPHA_CONTROL_ALPHA_REF__SHIFT) & A4XX_RB_ALPHA_CONTROL_ALPHA_REF__MASK;
1170 #define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST 0x00000100
1171 #define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__MASK 0x00000e00
1172 #define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__SHIFT 9
1173 static inline uint32_t A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(enum adreno_compare_func val)
1175 return ((val) << A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__SHIFT) & A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__MASK;
1178 #define REG_A4XX_RB_FS_OUTPUT 0x000020f9
1179 #define A4XX_RB_FS_OUTPUT_ENABLE_BLEND__MASK 0x000000ff
1180 #define A4XX_RB_FS_OUTPUT_ENABLE_BLEND__SHIFT 0
1181 static inline uint32_t A4XX_RB_FS_OUTPUT_ENABLE_BLEND(uint32_t val)
1183 return ((val) << A4XX_RB_FS_OUTPUT_ENABLE_BLEND__SHIFT) & A4XX_RB_FS_OUTPUT_ENABLE_BLEND__MASK;
1185 #define A4XX_RB_FS_OUTPUT_INDEPENDENT_BLEND 0x00000100
1186 #define A4XX_RB_FS_OUTPUT_SAMPLE_MASK__MASK 0xffff0000
1187 #define A4XX_RB_FS_OUTPUT_SAMPLE_MASK__SHIFT 16
1188 static inline uint32_t A4XX_RB_FS_OUTPUT_SAMPLE_MASK(uint32_t val)
1190 return ((val) << A4XX_RB_FS_OUTPUT_SAMPLE_MASK__SHIFT) & A4XX_RB_FS_OUTPUT_SAMPLE_MASK__MASK;
1193 #define REG_A4XX_RB_SAMPLE_COUNT_CONTROL 0x000020fa
1194 #define A4XX_RB_SAMPLE_COUNT_CONTROL_COPY 0x00000002
1195 #define A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__MASK 0xfffffffc
1196 #define A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__SHIFT 2
1197 static inline uint32_t A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR(uint32_t val)
1199 return ((val >> 2) << A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__SHIFT) & A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__MASK;
1202 #define REG_A4XX_RB_RENDER_COMPONENTS 0x000020fb
1203 #define A4XX_RB_RENDER_COMPONENTS_RT0__MASK 0x0000000f
1204 #define A4XX_RB_RENDER_COMPONENTS_RT0__SHIFT 0
1205 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT0(uint32_t val)
1207 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT0__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT0__MASK;
1209 #define A4XX_RB_RENDER_COMPONENTS_RT1__MASK 0x000000f0
1210 #define A4XX_RB_RENDER_COMPONENTS_RT1__SHIFT 4
1211 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT1(uint32_t val)
1213 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT1__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT1__MASK;
1215 #define A4XX_RB_RENDER_COMPONENTS_RT2__MASK 0x00000f00
1216 #define A4XX_RB_RENDER_COMPONENTS_RT2__SHIFT 8
1217 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT2(uint32_t val)
1219 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT2__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT2__MASK;
1221 #define A4XX_RB_RENDER_COMPONENTS_RT3__MASK 0x0000f000
1222 #define A4XX_RB_RENDER_COMPONENTS_RT3__SHIFT 12
1223 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT3(uint32_t val)
1225 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT3__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT3__MASK;
1227 #define A4XX_RB_RENDER_COMPONENTS_RT4__MASK 0x000f0000
1228 #define A4XX_RB_RENDER_COMPONENTS_RT4__SHIFT 16
1229 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT4(uint32_t val)
1231 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT4__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT4__MASK;
1233 #define A4XX_RB_RENDER_COMPONENTS_RT5__MASK 0x00f00000
1234 #define A4XX_RB_RENDER_COMPONENTS_RT5__SHIFT 20
1235 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT5(uint32_t val)
1237 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT5__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT5__MASK;
1239 #define A4XX_RB_RENDER_COMPONENTS_RT6__MASK 0x0f000000
1240 #define A4XX_RB_RENDER_COMPONENTS_RT6__SHIFT 24
1241 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT6(uint32_t val)
1243 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT6__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT6__MASK;
1245 #define A4XX_RB_RENDER_COMPONENTS_RT7__MASK 0xf0000000
1246 #define A4XX_RB_RENDER_COMPONENTS_RT7__SHIFT 28
1247 static inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT7(uint32_t val)
1249 return ((val) << A4XX_RB_RENDER_COMPONENTS_RT7__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT7__MASK;
1252 #define REG_A4XX_RB_COPY_CONTROL 0x000020fc
1253 #define A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__MASK 0x00000003
1254 #define A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__SHIFT 0
1255 static inline uint32_t A4XX_RB_COPY_CONTROL_MSAA_RESOLVE(enum a3xx_msaa_samples val)
1257 return ((val) << A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__SHIFT) & A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__MASK;
1259 #define A4XX_RB_COPY_CONTROL_MODE__MASK 0x00000070
1260 #define A4XX_RB_COPY_CONTROL_MODE__SHIFT 4
1261 static inline uint32_t A4XX_RB_COPY_CONTROL_MODE(enum adreno_rb_copy_control_mode val)
1263 return ((val) << A4XX_RB_COPY_CONTROL_MODE__SHIFT) & A4XX_RB_COPY_CONTROL_MODE__MASK;
1265 #define A4XX_RB_COPY_CONTROL_FASTCLEAR__MASK 0x00000f00
1266 #define A4XX_RB_COPY_CONTROL_FASTCLEAR__SHIFT 8
1267 static inline uint32_t A4XX_RB_COPY_CONTROL_FASTCLEAR(uint32_t val)
1269 return ((val) << A4XX_RB_COPY_CONTROL_FASTCLEAR__SHIFT) & A4XX_RB_COPY_CONTROL_FASTCLEAR__MASK;
1271 #define A4XX_RB_COPY_CONTROL_GMEM_BASE__MASK 0xffffc000
1272 #define A4XX_RB_COPY_CONTROL_GMEM_BASE__SHIFT 14
1273 static inline uint32_t A4XX_RB_COPY_CONTROL_GMEM_BASE(uint32_t val)
1275 return ((val >> 14) << A4XX_RB_COPY_CONTROL_GMEM_BASE__SHIFT) & A4XX_RB_COPY_CONTROL_GMEM_BASE__MASK;
1278 #define REG_A4XX_RB_COPY_DEST_BASE 0x000020fd
1279 #define A4XX_RB_COPY_DEST_BASE_BASE__MASK 0xffffffe0
1280 #define A4XX_RB_COPY_DEST_BASE_BASE__SHIFT 5
1281 static inline uint32_t A4XX_RB_COPY_DEST_BASE_BASE(uint32_t val)
1283 return ((val >> 5) << A4XX_RB_COPY_DEST_BASE_BASE__SHIFT) & A4XX_RB_COPY_DEST_BASE_BASE__MASK;
1286 #define REG_A4XX_RB_COPY_DEST_PITCH 0x000020fe
1287 #define A4XX_RB_COPY_DEST_PITCH_PITCH__MASK 0xffffffff
1288 #define A4XX_RB_COPY_DEST_PITCH_PITCH__SHIFT 0
1289 static inline uint32_t A4XX_RB_COPY_DEST_PITCH_PITCH(uint32_t val)
1291 return ((val >> 5) << A4XX_RB_COPY_DEST_PITCH_PITCH__SHIFT) & A4XX_RB_COPY_DEST_PITCH_PITCH__MASK;
1294 #define REG_A4XX_RB_COPY_DEST_INFO 0x000020ff
1295 #define A4XX_RB_COPY_DEST_INFO_FORMAT__MASK 0x000000fc
1296 #define A4XX_RB_COPY_DEST_INFO_FORMAT__SHIFT 2
1297 static inline uint32_t A4XX_RB_COPY_DEST_INFO_FORMAT(enum a4xx_color_fmt val)
1299 return ((val) << A4XX_RB_COPY_DEST_INFO_FORMAT__SHIFT) & A4XX_RB_COPY_DEST_INFO_FORMAT__MASK;
1301 #define A4XX_RB_COPY_DEST_INFO_SWAP__MASK 0x00000300
1302 #define A4XX_RB_COPY_DEST_INFO_SWAP__SHIFT 8
1303 static inline uint32_t A4XX_RB_COPY_DEST_INFO_SWAP(enum a3xx_color_swap val)
1305 return ((val) << A4XX_RB_COPY_DEST_INFO_SWAP__SHIFT) & A4XX_RB_COPY_DEST_INFO_SWAP__MASK;
1307 #define A4XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK 0x00000c00
1308 #define A4XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT 10
1309 static inline uint32_t A4XX_RB_COPY_DEST_INFO_DITHER_MODE(enum adreno_rb_dither_mode val)
1311 return ((val) << A4XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT) & A4XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK;
1313 #define A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__MASK 0x0003c000
1314 #define A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__SHIFT 14
1315 static inline uint32_t A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE(uint32_t val)
1317 return ((val) << A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__SHIFT) & A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__MASK;
1319 #define A4XX_RB_COPY_DEST_INFO_ENDIAN__MASK 0x001c0000
1320 #define A4XX_RB_COPY_DEST_INFO_ENDIAN__SHIFT 18
1321 static inline uint32_t A4XX_RB_COPY_DEST_INFO_ENDIAN(enum adreno_rb_surface_endian val)
1323 return ((val) << A4XX_RB_COPY_DEST_INFO_ENDIAN__SHIFT) & A4XX_RB_COPY_DEST_INFO_ENDIAN__MASK;
1325 #define A4XX_RB_COPY_DEST_INFO_TILE__MASK 0x03000000
1326 #define A4XX_RB_COPY_DEST_INFO_TILE__SHIFT 24
1327 static inline uint32_t A4XX_RB_COPY_DEST_INFO_TILE(enum a4xx_tile_mode val)
1329 return ((val) << A4XX_RB_COPY_DEST_INFO_TILE__SHIFT) & A4XX_RB_COPY_DEST_INFO_TILE__MASK;
1332 #define REG_A4XX_RB_FS_OUTPUT_REG 0x00002100
1333 #define A4XX_RB_FS_OUTPUT_REG_MRT__MASK 0x0000000f
1334 #define A4XX_RB_FS_OUTPUT_REG_MRT__SHIFT 0
1335 static inline uint32_t A4XX_RB_FS_OUTPUT_REG_MRT(uint32_t val)
1337 return ((val) << A4XX_RB_FS_OUTPUT_REG_MRT__SHIFT) & A4XX_RB_FS_OUTPUT_REG_MRT__MASK;
1339 #define A4XX_RB_FS_OUTPUT_REG_FRAG_WRITES_Z 0x00000020
1341 #define REG_A4XX_RB_DEPTH_CONTROL 0x00002101
1342 #define A4XX_RB_DEPTH_CONTROL_FRAG_WRITES_Z 0x00000001
1343 #define A4XX_RB_DEPTH_CONTROL_Z_ENABLE 0x00000002
1344 #define A4XX_RB_DEPTH_CONTROL_Z_WRITE_ENABLE 0x00000004
1345 #define A4XX_RB_DEPTH_CONTROL_ZFUNC__MASK 0x00000070
1346 #define A4XX_RB_DEPTH_CONTROL_ZFUNC__SHIFT 4
1347 static inline uint32_t A4XX_RB_DEPTH_CONTROL_ZFUNC(enum adreno_compare_func val)
1349 return ((val) << A4XX_RB_DEPTH_CONTROL_ZFUNC__SHIFT) & A4XX_RB_DEPTH_CONTROL_ZFUNC__MASK;
1351 #define A4XX_RB_DEPTH_CONTROL_BF_ENABLE 0x00000080
1352 #define A4XX_RB_DEPTH_CONTROL_EARLY_Z_DISABLE 0x00010000
1353 #define A4XX_RB_DEPTH_CONTROL_FORCE_FRAGZ_TO_FS 0x00020000
1354 #define A4XX_RB_DEPTH_CONTROL_Z_TEST_ENABLE 0x80000000
1356 #define REG_A4XX_RB_DEPTH_CLEAR 0x00002102
1358 #define REG_A4XX_RB_DEPTH_INFO 0x00002103
1359 #define A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK 0x00000003
1360 #define A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT 0
1361 static inline uint32_t A4XX_RB_DEPTH_INFO_DEPTH_FORMAT(enum a4xx_depth_format val)
1363 return ((val) << A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT) & A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK;
1365 #define A4XX_RB_DEPTH_INFO_DEPTH_BASE__MASK 0xfffff000
1366 #define A4XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT 12
1367 static inline uint32_t A4XX_RB_DEPTH_INFO_DEPTH_BASE(uint32_t val)
1369 return ((val >> 12) << A4XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT) & A4XX_RB_DEPTH_INFO_DEPTH_BASE__MASK;
1372 #define REG_A4XX_RB_DEPTH_PITCH 0x00002104
1373 #define A4XX_RB_DEPTH_PITCH__MASK 0xffffffff
1374 #define A4XX_RB_DEPTH_PITCH__SHIFT 0
1375 static inline uint32_t A4XX_RB_DEPTH_PITCH(uint32_t val)
1377 return ((val >> 5) << A4XX_RB_DEPTH_PITCH__SHIFT) & A4XX_RB_DEPTH_PITCH__MASK;
1380 #define REG_A4XX_RB_DEPTH_PITCH2 0x00002105
1381 #define A4XX_RB_DEPTH_PITCH2__MASK 0xffffffff
1382 #define A4XX_RB_DEPTH_PITCH2__SHIFT 0
1383 static inline uint32_t A4XX_RB_DEPTH_PITCH2(uint32_t val)
1385 return ((val >> 5) << A4XX_RB_DEPTH_PITCH2__SHIFT) & A4XX_RB_DEPTH_PITCH2__MASK;
1388 #define REG_A4XX_RB_STENCIL_CONTROL 0x00002106
1389 #define A4XX_RB_STENCIL_CONTROL_STENCIL_ENABLE 0x00000001
1390 #define A4XX_RB_STENCIL_CONTROL_STENCIL_ENABLE_BF 0x00000002
1391 #define A4XX_RB_STENCIL_CONTROL_STENCIL_READ 0x00000004
1392 #define A4XX_RB_STENCIL_CONTROL_FUNC__MASK 0x00000700
1393 #define A4XX_RB_STENCIL_CONTROL_FUNC__SHIFT 8
1394 static inline uint32_t A4XX_RB_STENCIL_CONTROL_FUNC(enum adreno_compare_func val)
1396 return ((val) << A4XX_RB_STENCIL_CONTROL_FUNC__SHIFT) & A4XX_RB_STENCIL_CONTROL_FUNC__MASK;
1398 #define A4XX_RB_STENCIL_CONTROL_FAIL__MASK 0x00003800
1399 #define A4XX_RB_STENCIL_CONTROL_FAIL__SHIFT 11
1400 static inline uint32_t A4XX_RB_STENCIL_CONTROL_FAIL(enum adreno_stencil_op val)
1402 return ((val) << A4XX_RB_STENCIL_CONTROL_FAIL__SHIFT) & A4XX_RB_STENCIL_CONTROL_FAIL__MASK;
1404 #define A4XX_RB_STENCIL_CONTROL_ZPASS__MASK 0x0001c000
1405 #define A4XX_RB_STENCIL_CONTROL_ZPASS__SHIFT 14
1406 static inline uint32_t A4XX_RB_STENCIL_CONTROL_ZPASS(enum adreno_stencil_op val)
1408 return ((val) << A4XX_RB_STENCIL_CONTROL_ZPASS__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZPASS__MASK;
1410 #define A4XX_RB_STENCIL_CONTROL_ZFAIL__MASK 0x000e0000
1411 #define A4XX_RB_STENCIL_CONTROL_ZFAIL__SHIFT 17
1412 static inline uint32_t A4XX_RB_STENCIL_CONTROL_ZFAIL(enum adreno_stencil_op val)
1414 return ((val) << A4XX_RB_STENCIL_CONTROL_ZFAIL__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZFAIL__MASK;
1416 #define A4XX_RB_STENCIL_CONTROL_FUNC_BF__MASK 0x00700000
1417 #define A4XX_RB_STENCIL_CONTROL_FUNC_BF__SHIFT 20
1418 static inline uint32_t A4XX_RB_STENCIL_CONTROL_FUNC_BF(enum adreno_compare_func val)
1420 return ((val) << A4XX_RB_STENCIL_CONTROL_FUNC_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_FUNC_BF__MASK;
1422 #define A4XX_RB_STENCIL_CONTROL_FAIL_BF__MASK 0x03800000
1423 #define A4XX_RB_STENCIL_CONTROL_FAIL_BF__SHIFT 23
1424 static inline uint32_t A4XX_RB_STENCIL_CONTROL_FAIL_BF(enum adreno_stencil_op val)
1426 return ((val) << A4XX_RB_STENCIL_CONTROL_FAIL_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_FAIL_BF__MASK;
1428 #define A4XX_RB_STENCIL_CONTROL_ZPASS_BF__MASK 0x1c000000
1429 #define A4XX_RB_STENCIL_CONTROL_ZPASS_BF__SHIFT 26
1430 static inline uint32_t A4XX_RB_STENCIL_CONTROL_ZPASS_BF(enum adreno_stencil_op val)
1432 return ((val) << A4XX_RB_STENCIL_CONTROL_ZPASS_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZPASS_BF__MASK;
1434 #define A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__MASK 0xe0000000
1435 #define A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__SHIFT 29
1436 static inline uint32_t A4XX_RB_STENCIL_CONTROL_ZFAIL_BF(enum adreno_stencil_op val)
1438 return ((val) << A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__MASK;
1441 #define REG_A4XX_RB_STENCIL_CONTROL2 0x00002107
1442 #define A4XX_RB_STENCIL_CONTROL2_STENCIL_BUFFER 0x00000001
1444 #define REG_A4XX_RB_STENCIL_INFO 0x00002108
1445 #define A4XX_RB_STENCIL_INFO_SEPARATE_STENCIL 0x00000001
1446 #define A4XX_RB_STENCIL_INFO_STENCIL_BASE__MASK 0xfffff000
1447 #define A4XX_RB_STENCIL_INFO_STENCIL_BASE__SHIFT 12
1448 static inline uint32_t A4XX_RB_STENCIL_INFO_STENCIL_BASE(uint32_t val)
1450 return ((val >> 12) << A4XX_RB_STENCIL_INFO_STENCIL_BASE__SHIFT) & A4XX_RB_STENCIL_INFO_STENCIL_BASE__MASK;
1453 #define REG_A4XX_RB_STENCIL_PITCH 0x00002109
1454 #define A4XX_RB_STENCIL_PITCH__MASK 0xffffffff
1455 #define A4XX_RB_STENCIL_PITCH__SHIFT 0
1456 static inline uint32_t A4XX_RB_STENCIL_PITCH(uint32_t val)
1458 return ((val >> 5) << A4XX_RB_STENCIL_PITCH__SHIFT) & A4XX_RB_STENCIL_PITCH__MASK;
1461 #define REG_A4XX_RB_STENCILREFMASK 0x0000210b
1462 #define A4XX_RB_STENCILREFMASK_STENCILREF__MASK 0x000000ff
1463 #define A4XX_RB_STENCILREFMASK_STENCILREF__SHIFT 0
1464 static inline uint32_t A4XX_RB_STENCILREFMASK_STENCILREF(uint32_t val)
1466 return ((val) << A4XX_RB_STENCILREFMASK_STENCILREF__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILREF__MASK;
1468 #define A4XX_RB_STENCILREFMASK_STENCILMASK__MASK 0x0000ff00
1469 #define A4XX_RB_STENCILREFMASK_STENCILMASK__SHIFT 8
1470 static inline uint32_t A4XX_RB_STENCILREFMASK_STENCILMASK(uint32_t val)
1472 return ((val) << A4XX_RB_STENCILREFMASK_STENCILMASK__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILMASK__MASK;
1474 #define A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK 0x00ff0000
1475 #define A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT 16
1476 static inline uint32_t A4XX_RB_STENCILREFMASK_STENCILWRITEMASK(uint32_t val)
1478 return ((val) << A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK;
1481 #define REG_A4XX_RB_STENCILREFMASK_BF 0x0000210c
1482 #define A4XX_RB_STENCILREFMASK_BF_STENCILREF__MASK 0x000000ff
1483 #define A4XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT 0
1484 static inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILREF(uint32_t val)
1486 return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILREF__MASK;
1488 #define A4XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK 0x0000ff00
1489 #define A4XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT 8
1490 static inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILMASK(uint32_t val)
1492 return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK;
1494 #define A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK 0x00ff0000
1495 #define A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT 16
1496 static inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK(uint32_t val)
1498 return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK;
1501 #define REG_A4XX_RB_BIN_OFFSET 0x0000210d
1502 #define A4XX_RB_BIN_OFFSET_WINDOW_OFFSET_DISABLE 0x80000000
1503 #define A4XX_RB_BIN_OFFSET_X__MASK 0x00007fff
1504 #define A4XX_RB_BIN_OFFSET_X__SHIFT 0
1505 static inline uint32_t A4XX_RB_BIN_OFFSET_X(uint32_t val)
1507 return ((val) << A4XX_RB_BIN_OFFSET_X__SHIFT) & A4XX_RB_BIN_OFFSET_X__MASK;
1509 #define A4XX_RB_BIN_OFFSET_Y__MASK 0x7fff0000
1510 #define A4XX_RB_BIN_OFFSET_Y__SHIFT 16
1511 static inline uint32_t A4XX_RB_BIN_OFFSET_Y(uint32_t val)
1513 return ((val) << A4XX_RB_BIN_OFFSET_Y__SHIFT) & A4XX_RB_BIN_OFFSET_Y__MASK;
1516 static inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP(uint32_t i0) { return 0x00002120 + 0x2*i0; }
1518 static inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP_MIN(uint32_t i0) { return 0x00002120 + 0x2*i0; }
1520 static inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP_MAX(uint32_t i0) { return 0x00002121 + 0x2*i0; }
1522 #define REG_A4XX_RBBM_HW_VERSION 0x00000000
1524 #define REG_A4XX_RBBM_HW_CONFIGURATION 0x00000002
1526 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_TP(uint32_t i0) { return 0x00000004 + 0x1*i0; }
1528 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_TP_REG(uint32_t i0) { return 0x00000004 + 0x1*i0; }
1530 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_TP(uint32_t i0) { return 0x00000008 + 0x1*i0; }
1532 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_TP_REG(uint32_t i0) { return 0x00000008 + 0x1*i0; }
1534 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_TP(uint32_t i0) { return 0x0000000c + 0x1*i0; }
1536 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_TP_REG(uint32_t i0) { return 0x0000000c + 0x1*i0; }
1538 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_TP(uint32_t i0) { return 0x00000010 + 0x1*i0; }
1540 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_TP_REG(uint32_t i0) { return 0x00000010 + 0x1*i0; }
1542 #define REG_A4XX_RBBM_CLOCK_CTL_UCHE 0x00000014
1544 #define REG_A4XX_RBBM_CLOCK_CTL2_UCHE 0x00000015
1546 #define REG_A4XX_RBBM_CLOCK_CTL3_UCHE 0x00000016
1548 #define REG_A4XX_RBBM_CLOCK_CTL4_UCHE 0x00000017
1550 #define REG_A4XX_RBBM_CLOCK_HYST_UCHE 0x00000018
1552 #define REG_A4XX_RBBM_CLOCK_DELAY_UCHE 0x00000019
1554 #define REG_A4XX_RBBM_CLOCK_MODE_GPC 0x0000001a
1556 #define REG_A4XX_RBBM_CLOCK_DELAY_GPC 0x0000001b
1558 #define REG_A4XX_RBBM_CLOCK_HYST_GPC 0x0000001c
1560 #define REG_A4XX_RBBM_CLOCK_CTL_TSE_RAS_RBBM 0x0000001d
1562 #define REG_A4XX_RBBM_CLOCK_HYST_TSE_RAS_RBBM 0x0000001e
1564 #define REG_A4XX_RBBM_CLOCK_DELAY_TSE_RAS_RBBM 0x0000001f
1566 #define REG_A4XX_RBBM_CLOCK_CTL 0x00000020
1568 #define REG_A4XX_RBBM_SP_HYST_CNT 0x00000021
1570 #define REG_A4XX_RBBM_SW_RESET_CMD 0x00000022
1572 #define REG_A4XX_RBBM_AHB_CTL0 0x00000023
1574 #define REG_A4XX_RBBM_AHB_CTL1 0x00000024
1576 #define REG_A4XX_RBBM_AHB_CMD 0x00000025
1578 #define REG_A4XX_RBBM_RB_SUB_BLOCK_SEL_CTL 0x00000026
1580 #define REG_A4XX_RBBM_RAM_ACC_63_32 0x00000028
1582 #define REG_A4XX_RBBM_WAIT_IDLE_CLOCKS_CTL 0x0000002b
1584 #define REG_A4XX_RBBM_INTERFACE_HANG_INT_CTL 0x0000002f
1586 #define REG_A4XX_RBBM_INTERFACE_HANG_MASK_CTL4 0x00000034
1588 #define REG_A4XX_RBBM_INT_CLEAR_CMD 0x00000036
1590 #define REG_A4XX_RBBM_INT_0_MASK 0x00000037
1592 #define REG_A4XX_RBBM_RBBM_CTL 0x0000003e
1594 #define REG_A4XX_RBBM_AHB_DEBUG_CTL 0x0000003f
1596 #define REG_A4XX_RBBM_VBIF_DEBUG_CTL 0x00000041
1598 #define REG_A4XX_RBBM_CLOCK_CTL2 0x00000042
1600 #define REG_A4XX_RBBM_BLOCK_SW_RESET_CMD 0x00000045
1602 #define REG_A4XX_RBBM_RESET_CYCLES 0x00000047
1604 #define REG_A4XX_RBBM_EXT_TRACE_BUS_CTL 0x00000049
1606 #define REG_A4XX_RBBM_CFG_DEBBUS_SEL_A 0x0000004a
1608 #define REG_A4XX_RBBM_CFG_DEBBUS_SEL_B 0x0000004b
1610 #define REG_A4XX_RBBM_CFG_DEBBUS_SEL_C 0x0000004c
1612 #define REG_A4XX_RBBM_CFG_DEBBUS_SEL_D 0x0000004d
1614 #define REG_A4XX_RBBM_POWER_CNTL_IP 0x00000098
1615 #define A4XX_RBBM_POWER_CNTL_IP_SW_COLLAPSE 0x00000001
1616 #define A4XX_RBBM_POWER_CNTL_IP_SP_TP_PWR_ON 0x00100000
1618 #define REG_A4XX_RBBM_PERFCTR_CP_0_LO 0x0000009c
1620 #define REG_A4XX_RBBM_PERFCTR_CP_0_HI 0x0000009d
1622 #define REG_A4XX_RBBM_PERFCTR_CP_1_LO 0x0000009e
1624 #define REG_A4XX_RBBM_PERFCTR_CP_1_HI 0x0000009f
1626 #define REG_A4XX_RBBM_PERFCTR_CP_2_LO 0x000000a0
1628 #define REG_A4XX_RBBM_PERFCTR_CP_2_HI 0x000000a1
1630 #define REG_A4XX_RBBM_PERFCTR_CP_3_LO 0x000000a2
1632 #define REG_A4XX_RBBM_PERFCTR_CP_3_HI 0x000000a3
1634 #define REG_A4XX_RBBM_PERFCTR_CP_4_LO 0x000000a4
1636 #define REG_A4XX_RBBM_PERFCTR_CP_4_HI 0x000000a5
1638 #define REG_A4XX_RBBM_PERFCTR_CP_5_LO 0x000000a6
1640 #define REG_A4XX_RBBM_PERFCTR_CP_5_HI 0x000000a7
1642 #define REG_A4XX_RBBM_PERFCTR_CP_6_LO 0x000000a8
1644 #define REG_A4XX_RBBM_PERFCTR_CP_6_HI 0x000000a9
1646 #define REG_A4XX_RBBM_PERFCTR_CP_7_LO 0x000000aa
1648 #define REG_A4XX_RBBM_PERFCTR_CP_7_HI 0x000000ab
1650 #define REG_A4XX_RBBM_PERFCTR_RBBM_0_LO 0x000000ac
1652 #define REG_A4XX_RBBM_PERFCTR_RBBM_0_HI 0x000000ad
1654 #define REG_A4XX_RBBM_PERFCTR_RBBM_1_LO 0x000000ae
1656 #define REG_A4XX_RBBM_PERFCTR_RBBM_1_HI 0x000000af
1658 #define REG_A4XX_RBBM_PERFCTR_RBBM_2_LO 0x000000b0
1660 #define REG_A4XX_RBBM_PERFCTR_RBBM_2_HI 0x000000b1
1662 #define REG_A4XX_RBBM_PERFCTR_RBBM_3_LO 0x000000b2
1664 #define REG_A4XX_RBBM_PERFCTR_RBBM_3_HI 0x000000b3
1666 #define REG_A4XX_RBBM_PERFCTR_PC_0_LO 0x000000b4
1668 #define REG_A4XX_RBBM_PERFCTR_PC_0_HI 0x000000b5
1670 #define REG_A4XX_RBBM_PERFCTR_PC_1_LO 0x000000b6
1672 #define REG_A4XX_RBBM_PERFCTR_PC_1_HI 0x000000b7
1674 #define REG_A4XX_RBBM_PERFCTR_PC_2_LO 0x000000b8
1676 #define REG_A4XX_RBBM_PERFCTR_PC_2_HI 0x000000b9
1678 #define REG_A4XX_RBBM_PERFCTR_PC_3_LO 0x000000ba
1680 #define REG_A4XX_RBBM_PERFCTR_PC_3_HI 0x000000bb
1682 #define REG_A4XX_RBBM_PERFCTR_PC_4_LO 0x000000bc
1684 #define REG_A4XX_RBBM_PERFCTR_PC_4_HI 0x000000bd
1686 #define REG_A4XX_RBBM_PERFCTR_PC_5_LO 0x000000be
1688 #define REG_A4XX_RBBM_PERFCTR_PC_5_HI 0x000000bf
1690 #define REG_A4XX_RBBM_PERFCTR_PC_6_LO 0x000000c0
1692 #define REG_A4XX_RBBM_PERFCTR_PC_6_HI 0x000000c1
1694 #define REG_A4XX_RBBM_PERFCTR_PC_7_LO 0x000000c2
1696 #define REG_A4XX_RBBM_PERFCTR_PC_7_HI 0x000000c3
1698 #define REG_A4XX_RBBM_PERFCTR_VFD_0_LO 0x000000c4
1700 #define REG_A4XX_RBBM_PERFCTR_VFD_0_HI 0x000000c5
1702 #define REG_A4XX_RBBM_PERFCTR_VFD_1_LO 0x000000c6
1704 #define REG_A4XX_RBBM_PERFCTR_VFD_1_HI 0x000000c7
1706 #define REG_A4XX_RBBM_PERFCTR_VFD_2_LO 0x000000c8
1708 #define REG_A4XX_RBBM_PERFCTR_VFD_2_HI 0x000000c9
1710 #define REG_A4XX_RBBM_PERFCTR_VFD_3_LO 0x000000ca
1712 #define REG_A4XX_RBBM_PERFCTR_VFD_3_HI 0x000000cb
1714 #define REG_A4XX_RBBM_PERFCTR_VFD_4_LO 0x000000cc
1716 #define REG_A4XX_RBBM_PERFCTR_VFD_4_HI 0x000000cd
1718 #define REG_A4XX_RBBM_PERFCTR_VFD_5_LO 0x000000ce
1720 #define REG_A4XX_RBBM_PERFCTR_VFD_5_HI 0x000000cf
1722 #define REG_A4XX_RBBM_PERFCTR_VFD_6_LO 0x000000d0
1724 #define REG_A4XX_RBBM_PERFCTR_VFD_6_HI 0x000000d1
1726 #define REG_A4XX_RBBM_PERFCTR_VFD_7_LO 0x000000d2
1728 #define REG_A4XX_RBBM_PERFCTR_VFD_7_HI 0x000000d3
1730 #define REG_A4XX_RBBM_PERFCTR_HLSQ_0_LO 0x000000d4
1732 #define REG_A4XX_RBBM_PERFCTR_HLSQ_0_HI 0x000000d5
1734 #define REG_A4XX_RBBM_PERFCTR_HLSQ_1_LO 0x000000d6
1736 #define REG_A4XX_RBBM_PERFCTR_HLSQ_1_HI 0x000000d7
1738 #define REG_A4XX_RBBM_PERFCTR_HLSQ_2_LO 0x000000d8
1740 #define REG_A4XX_RBBM_PERFCTR_HLSQ_2_HI 0x000000d9
1742 #define REG_A4XX_RBBM_PERFCTR_HLSQ_3_LO 0x000000da
1744 #define REG_A4XX_RBBM_PERFCTR_HLSQ_3_HI 0x000000db
1746 #define REG_A4XX_RBBM_PERFCTR_HLSQ_4_LO 0x000000dc
1748 #define REG_A4XX_RBBM_PERFCTR_HLSQ_4_HI 0x000000dd
1750 #define REG_A4XX_RBBM_PERFCTR_HLSQ_5_LO 0x000000de
1752 #define REG_A4XX_RBBM_PERFCTR_HLSQ_5_HI 0x000000df
1754 #define REG_A4XX_RBBM_PERFCTR_HLSQ_6_LO 0x000000e0
1756 #define REG_A4XX_RBBM_PERFCTR_HLSQ_6_HI 0x000000e1
1758 #define REG_A4XX_RBBM_PERFCTR_HLSQ_7_LO 0x000000e2
1760 #define REG_A4XX_RBBM_PERFCTR_HLSQ_7_HI 0x000000e3
1762 #define REG_A4XX_RBBM_PERFCTR_VPC_0_LO 0x000000e4
1764 #define REG_A4XX_RBBM_PERFCTR_VPC_0_HI 0x000000e5
1766 #define REG_A4XX_RBBM_PERFCTR_VPC_1_LO 0x000000e6
1768 #define REG_A4XX_RBBM_PERFCTR_VPC_1_HI 0x000000e7
1770 #define REG_A4XX_RBBM_PERFCTR_VPC_2_LO 0x000000e8
1772 #define REG_A4XX_RBBM_PERFCTR_VPC_2_HI 0x000000e9
1774 #define REG_A4XX_RBBM_PERFCTR_VPC_3_LO 0x000000ea
1776 #define REG_A4XX_RBBM_PERFCTR_VPC_3_HI 0x000000eb
1778 #define REG_A4XX_RBBM_PERFCTR_CCU_0_LO 0x000000ec
1780 #define REG_A4XX_RBBM_PERFCTR_CCU_0_HI 0x000000ed
1782 #define REG_A4XX_RBBM_PERFCTR_CCU_1_LO 0x000000ee
1784 #define REG_A4XX_RBBM_PERFCTR_CCU_1_HI 0x000000ef
1786 #define REG_A4XX_RBBM_PERFCTR_CCU_2_LO 0x000000f0
1788 #define REG_A4XX_RBBM_PERFCTR_CCU_2_HI 0x000000f1
1790 #define REG_A4XX_RBBM_PERFCTR_CCU_3_LO 0x000000f2
1792 #define REG_A4XX_RBBM_PERFCTR_CCU_3_HI 0x000000f3
1794 #define REG_A4XX_RBBM_PERFCTR_TSE_0_LO 0x000000f4
1796 #define REG_A4XX_RBBM_PERFCTR_TSE_0_HI 0x000000f5
1798 #define REG_A4XX_RBBM_PERFCTR_TSE_1_LO 0x000000f6
1800 #define REG_A4XX_RBBM_PERFCTR_TSE_1_HI 0x000000f7
1802 #define REG_A4XX_RBBM_PERFCTR_TSE_2_LO 0x000000f8
1804 #define REG_A4XX_RBBM_PERFCTR_TSE_2_HI 0x000000f9
1806 #define REG_A4XX_RBBM_PERFCTR_TSE_3_LO 0x000000fa
1808 #define REG_A4XX_RBBM_PERFCTR_TSE_3_HI 0x000000fb
1810 #define REG_A4XX_RBBM_PERFCTR_RAS_0_LO 0x000000fc
1812 #define REG_A4XX_RBBM_PERFCTR_RAS_0_HI 0x000000fd
1814 #define REG_A4XX_RBBM_PERFCTR_RAS_1_LO 0x000000fe
1816 #define REG_A4XX_RBBM_PERFCTR_RAS_1_HI 0x000000ff
1818 #define REG_A4XX_RBBM_PERFCTR_RAS_2_LO 0x00000100
1820 #define REG_A4XX_RBBM_PERFCTR_RAS_2_HI 0x00000101
1822 #define REG_A4XX_RBBM_PERFCTR_RAS_3_LO 0x00000102
1824 #define REG_A4XX_RBBM_PERFCTR_RAS_3_HI 0x00000103
1826 #define REG_A4XX_RBBM_PERFCTR_UCHE_0_LO 0x00000104
1828 #define REG_A4XX_RBBM_PERFCTR_UCHE_0_HI 0x00000105
1830 #define REG_A4XX_RBBM_PERFCTR_UCHE_1_LO 0x00000106
1832 #define REG_A4XX_RBBM_PERFCTR_UCHE_1_HI 0x00000107
1834 #define REG_A4XX_RBBM_PERFCTR_UCHE_2_LO 0x00000108
1836 #define REG_A4XX_RBBM_PERFCTR_UCHE_2_HI 0x00000109
1838 #define REG_A4XX_RBBM_PERFCTR_UCHE_3_LO 0x0000010a
1840 #define REG_A4XX_RBBM_PERFCTR_UCHE_3_HI 0x0000010b
1842 #define REG_A4XX_RBBM_PERFCTR_UCHE_4_LO 0x0000010c
1844 #define REG_A4XX_RBBM_PERFCTR_UCHE_4_HI 0x0000010d
1846 #define REG_A4XX_RBBM_PERFCTR_UCHE_5_LO 0x0000010e
1848 #define REG_A4XX_RBBM_PERFCTR_UCHE_5_HI 0x0000010f
1850 #define REG_A4XX_RBBM_PERFCTR_UCHE_6_LO 0x00000110
1852 #define REG_A4XX_RBBM_PERFCTR_UCHE_6_HI 0x00000111
1854 #define REG_A4XX_RBBM_PERFCTR_UCHE_7_LO 0x00000112
1856 #define REG_A4XX_RBBM_PERFCTR_UCHE_7_HI 0x00000113
1858 #define REG_A4XX_RBBM_PERFCTR_TP_0_LO 0x00000114
1860 #define REG_A4XX_RBBM_PERFCTR_TP_0_HI 0x00000115
1862 #define REG_A4XX_RBBM_PERFCTR_TP_0_LO 0x00000114
1864 #define REG_A4XX_RBBM_PERFCTR_TP_0_HI 0x00000115
1866 #define REG_A4XX_RBBM_PERFCTR_TP_1_LO 0x00000116
1868 #define REG_A4XX_RBBM_PERFCTR_TP_1_HI 0x00000117
1870 #define REG_A4XX_RBBM_PERFCTR_TP_2_LO 0x00000118
1872 #define REG_A4XX_RBBM_PERFCTR_TP_2_HI 0x00000119
1874 #define REG_A4XX_RBBM_PERFCTR_TP_3_LO 0x0000011a
1876 #define REG_A4XX_RBBM_PERFCTR_TP_3_HI 0x0000011b
1878 #define REG_A4XX_RBBM_PERFCTR_TP_4_LO 0x0000011c
1880 #define REG_A4XX_RBBM_PERFCTR_TP_4_HI 0x0000011d
1882 #define REG_A4XX_RBBM_PERFCTR_TP_5_LO 0x0000011e
1884 #define REG_A4XX_RBBM_PERFCTR_TP_5_HI 0x0000011f
1886 #define REG_A4XX_RBBM_PERFCTR_TP_6_LO 0x00000120
1888 #define REG_A4XX_RBBM_PERFCTR_TP_6_HI 0x00000121
1890 #define REG_A4XX_RBBM_PERFCTR_TP_7_LO 0x00000122
1892 #define REG_A4XX_RBBM_PERFCTR_TP_7_HI 0x00000123
1894 #define REG_A4XX_RBBM_PERFCTR_SP_0_LO 0x00000124
1896 #define REG_A4XX_RBBM_PERFCTR_SP_0_HI 0x00000125
1898 #define REG_A4XX_RBBM_PERFCTR_SP_1_LO 0x00000126
1900 #define REG_A4XX_RBBM_PERFCTR_SP_1_HI 0x00000127
1902 #define REG_A4XX_RBBM_PERFCTR_SP_2_LO 0x00000128
1904 #define REG_A4XX_RBBM_PERFCTR_SP_2_HI 0x00000129
1906 #define REG_A4XX_RBBM_PERFCTR_SP_3_LO 0x0000012a
1908 #define REG_A4XX_RBBM_PERFCTR_SP_3_HI 0x0000012b
1910 #define REG_A4XX_RBBM_PERFCTR_SP_4_LO 0x0000012c
1912 #define REG_A4XX_RBBM_PERFCTR_SP_4_HI 0x0000012d
1914 #define REG_A4XX_RBBM_PERFCTR_SP_5_LO 0x0000012e
1916 #define REG_A4XX_RBBM_PERFCTR_SP_5_HI 0x0000012f
1918 #define REG_A4XX_RBBM_PERFCTR_SP_6_LO 0x00000130
1920 #define REG_A4XX_RBBM_PERFCTR_SP_6_HI 0x00000131
1922 #define REG_A4XX_RBBM_PERFCTR_SP_7_LO 0x00000132
1924 #define REG_A4XX_RBBM_PERFCTR_SP_7_HI 0x00000133
1926 #define REG_A4XX_RBBM_PERFCTR_SP_8_LO 0x00000134
1928 #define REG_A4XX_RBBM_PERFCTR_SP_8_HI 0x00000135
1930 #define REG_A4XX_RBBM_PERFCTR_SP_9_LO 0x00000136
1932 #define REG_A4XX_RBBM_PERFCTR_SP_9_HI 0x00000137
1934 #define REG_A4XX_RBBM_PERFCTR_SP_10_LO 0x00000138
1936 #define REG_A4XX_RBBM_PERFCTR_SP_10_HI 0x00000139
1938 #define REG_A4XX_RBBM_PERFCTR_SP_11_LO 0x0000013a
1940 #define REG_A4XX_RBBM_PERFCTR_SP_11_HI 0x0000013b
1942 #define REG_A4XX_RBBM_PERFCTR_RB_0_LO 0x0000013c
1944 #define REG_A4XX_RBBM_PERFCTR_RB_0_HI 0x0000013d
1946 #define REG_A4XX_RBBM_PERFCTR_RB_1_LO 0x0000013e
1948 #define REG_A4XX_RBBM_PERFCTR_RB_1_HI 0x0000013f
1950 #define REG_A4XX_RBBM_PERFCTR_RB_2_LO 0x00000140
1952 #define REG_A4XX_RBBM_PERFCTR_RB_2_HI 0x00000141
1954 #define REG_A4XX_RBBM_PERFCTR_RB_3_LO 0x00000142
1956 #define REG_A4XX_RBBM_PERFCTR_RB_3_HI 0x00000143
1958 #define REG_A4XX_RBBM_PERFCTR_RB_4_LO 0x00000144
1960 #define REG_A4XX_RBBM_PERFCTR_RB_4_HI 0x00000145
1962 #define REG_A4XX_RBBM_PERFCTR_RB_5_LO 0x00000146
1964 #define REG_A4XX_RBBM_PERFCTR_RB_5_HI 0x00000147
1966 #define REG_A4XX_RBBM_PERFCTR_RB_6_LO 0x00000148
1968 #define REG_A4XX_RBBM_PERFCTR_RB_6_HI 0x00000149
1970 #define REG_A4XX_RBBM_PERFCTR_RB_7_LO 0x0000014a
1972 #define REG_A4XX_RBBM_PERFCTR_RB_7_HI 0x0000014b
1974 #define REG_A4XX_RBBM_PERFCTR_VSC_0_LO 0x0000014c
1976 #define REG_A4XX_RBBM_PERFCTR_VSC_0_HI 0x0000014d
1978 #define REG_A4XX_RBBM_PERFCTR_VSC_1_LO 0x0000014e
1980 #define REG_A4XX_RBBM_PERFCTR_VSC_1_HI 0x0000014f
1982 #define REG_A4XX_RBBM_PERFCTR_PWR_0_LO 0x00000166
1984 #define REG_A4XX_RBBM_PERFCTR_PWR_0_HI 0x00000167
1986 #define REG_A4XX_RBBM_PERFCTR_PWR_1_LO 0x00000168
1988 #define REG_A4XX_RBBM_PERFCTR_PWR_1_HI 0x00000169
1990 #define REG_A4XX_RBBM_ALWAYSON_COUNTER_LO 0x0000016e
1992 #define REG_A4XX_RBBM_ALWAYSON_COUNTER_HI 0x0000016f
1994 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_SP(uint32_t i0) { return 0x00000068 + 0x1*i0; }
1996 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_SP_REG(uint32_t i0) { return 0x00000068 + 0x1*i0; }
1998 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_SP(uint32_t i0) { return 0x0000006c + 0x1*i0; }
2000 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_SP_REG(uint32_t i0) { return 0x0000006c + 0x1*i0; }
2002 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_SP(uint32_t i0) { return 0x00000070 + 0x1*i0; }
2004 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_SP_REG(uint32_t i0) { return 0x00000070 + 0x1*i0; }
2006 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_SP(uint32_t i0) { return 0x00000074 + 0x1*i0; }
2008 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_SP_REG(uint32_t i0) { return 0x00000074 + 0x1*i0; }
2010 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_RB(uint32_t i0) { return 0x00000078 + 0x1*i0; }
2012 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_RB_REG(uint32_t i0) { return 0x00000078 + 0x1*i0; }
2014 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_RB(uint32_t i0) { return 0x0000007c + 0x1*i0; }
2016 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_RB_REG(uint32_t i0) { return 0x0000007c + 0x1*i0; }
2018 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_MARB_CCU(uint32_t i0) { return 0x00000082 + 0x1*i0; }
2020 static inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_MARB_CCU_REG(uint32_t i0) { return 0x00000082 + 0x1*i0; }
2022 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_RB_MARB_CCU(uint32_t i0) { return 0x00000086 + 0x1*i0; }
2024 static inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_RB_MARB_CCU_REG(uint32_t i0) { return 0x00000086 + 0x1*i0; }
2026 #define REG_A4XX_RBBM_CLOCK_HYST_COM_DCOM 0x00000080
2028 #define REG_A4XX_RBBM_CLOCK_CTL_COM_DCOM 0x00000081
2030 #define REG_A4XX_RBBM_CLOCK_CTL_HLSQ 0x0000008a
2032 #define REG_A4XX_RBBM_CLOCK_HYST_HLSQ 0x0000008b
2034 #define REG_A4XX_RBBM_CLOCK_DELAY_HLSQ 0x0000008c
2036 #define REG_A4XX_RBBM_CLOCK_DELAY_COM_DCOM 0x0000008d
2038 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_RB_MARB_CCU_L1(uint32_t i0) { return 0x0000008e + 0x1*i0; }
2040 static inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_RB_MARB_CCU_L1_REG(uint32_t i0) { return 0x0000008e + 0x1*i0; }
2042 #define REG_A4XX_RBBM_SP_REGFILE_SLEEP_CNTL_0 0x00000099
2044 #define REG_A4XX_RBBM_SP_REGFILE_SLEEP_CNTL_1 0x0000009a
2046 #define REG_A4XX_RBBM_PERFCTR_PWR_1_LO 0x00000168
2048 #define REG_A4XX_RBBM_PERFCTR_CTL 0x00000170
2050 #define REG_A4XX_RBBM_PERFCTR_LOAD_CMD0 0x00000171
2052 #define REG_A4XX_RBBM_PERFCTR_LOAD_CMD1 0x00000172
2054 #define REG_A4XX_RBBM_PERFCTR_LOAD_CMD2 0x00000173
2056 #define REG_A4XX_RBBM_PERFCTR_LOAD_VALUE_LO 0x00000174
2058 #define REG_A4XX_RBBM_PERFCTR_LOAD_VALUE_HI 0x00000175
2060 #define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_0 0x00000176
2062 #define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_1 0x00000177
2064 #define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_2 0x00000178
2066 #define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_3 0x00000179
2068 #define REG_A4XX_RBBM_GPU_BUSY_MASKED 0x0000017a
2070 #define REG_A4XX_RBBM_INT_0_STATUS 0x0000017d
2072 #define REG_A4XX_RBBM_CLOCK_STATUS 0x00000182
2074 #define REG_A4XX_RBBM_AHB_STATUS 0x00000189
2076 #define REG_A4XX_RBBM_AHB_ME_SPLIT_STATUS 0x0000018c
2078 #define REG_A4XX_RBBM_AHB_PFP_SPLIT_STATUS 0x0000018d
2080 #define REG_A4XX_RBBM_AHB_ERROR_STATUS 0x0000018f
2082 #define REG_A4XX_RBBM_STATUS 0x00000191
2083 #define A4XX_RBBM_STATUS_HI_BUSY 0x00000001
2084 #define A4XX_RBBM_STATUS_CP_ME_BUSY 0x00000002
2085 #define A4XX_RBBM_STATUS_CP_PFP_BUSY 0x00000004
2086 #define A4XX_RBBM_STATUS_CP_NRT_BUSY 0x00004000
2087 #define A4XX_RBBM_STATUS_VBIF_BUSY 0x00008000
2088 #define A4XX_RBBM_STATUS_TSE_BUSY 0x00010000
2089 #define A4XX_RBBM_STATUS_RAS_BUSY 0x00020000
2090 #define A4XX_RBBM_STATUS_RB_BUSY 0x00040000
2091 #define A4XX_RBBM_STATUS_PC_DCALL_BUSY 0x00080000
2092 #define A4XX_RBBM_STATUS_PC_VSD_BUSY 0x00100000
2093 #define A4XX_RBBM_STATUS_VFD_BUSY 0x00200000
2094 #define A4XX_RBBM_STATUS_VPC_BUSY 0x00400000
2095 #define A4XX_RBBM_STATUS_UCHE_BUSY 0x00800000
2096 #define A4XX_RBBM_STATUS_SP_BUSY 0x01000000
2097 #define A4XX_RBBM_STATUS_TPL1_BUSY 0x02000000
2098 #define A4XX_RBBM_STATUS_MARB_BUSY 0x04000000
2099 #define A4XX_RBBM_STATUS_VSC_BUSY 0x08000000
2100 #define A4XX_RBBM_STATUS_ARB_BUSY 0x10000000
2101 #define A4XX_RBBM_STATUS_HLSQ_BUSY 0x20000000
2102 #define A4XX_RBBM_STATUS_GPU_BUSY_NOHC 0x40000000
2103 #define A4XX_RBBM_STATUS_GPU_BUSY 0x80000000
2105 #define REG_A4XX_RBBM_INTERFACE_RRDY_STATUS5 0x0000019f
2107 #define REG_A4XX_RBBM_POWER_STATUS 0x000001b0
2108 #define A4XX_RBBM_POWER_STATUS_SP_TP_PWR_ON 0x00100000
2110 #define REG_A4XX_RBBM_WAIT_IDLE_CLOCKS_CTL2 0x000001b8
2112 #define REG_A4XX_CP_SCRATCH_UMASK 0x00000228
2114 #define REG_A4XX_CP_SCRATCH_ADDR 0x00000229
2116 #define REG_A4XX_CP_RB_BASE 0x00000200
2118 #define REG_A4XX_CP_RB_CNTL 0x00000201
2120 #define REG_A4XX_CP_RB_WPTR 0x00000205
2122 #define REG_A4XX_CP_RB_RPTR_ADDR 0x00000203
2124 #define REG_A4XX_CP_RB_RPTR 0x00000204
2126 #define REG_A4XX_CP_IB1_BASE 0x00000206
2128 #define REG_A4XX_CP_IB1_BUFSZ 0x00000207
2130 #define REG_A4XX_CP_IB2_BASE 0x00000208
2132 #define REG_A4XX_CP_IB2_BUFSZ 0x00000209
2134 #define REG_A4XX_CP_ME_NRT_ADDR 0x0000020c
2136 #define REG_A4XX_CP_ME_NRT_DATA 0x0000020d
2138 #define REG_A4XX_CP_ME_RB_DONE_DATA 0x00000217
2140 #define REG_A4XX_CP_QUEUE_THRESH2 0x00000219
2142 #define REG_A4XX_CP_MERCIU_SIZE 0x0000021b
2144 #define REG_A4XX_CP_ROQ_ADDR 0x0000021c
2146 #define REG_A4XX_CP_ROQ_DATA 0x0000021d
2148 #define REG_A4XX_CP_MEQ_ADDR 0x0000021e
2150 #define REG_A4XX_CP_MEQ_DATA 0x0000021f
2152 #define REG_A4XX_CP_MERCIU_ADDR 0x00000220
2154 #define REG_A4XX_CP_MERCIU_DATA 0x00000221
2156 #define REG_A4XX_CP_MERCIU_DATA2 0x00000222
2158 #define REG_A4XX_CP_PFP_UCODE_ADDR 0x00000223
2160 #define REG_A4XX_CP_PFP_UCODE_DATA 0x00000224
2162 #define REG_A4XX_CP_ME_RAM_WADDR 0x00000225
2164 #define REG_A4XX_CP_ME_RAM_RADDR 0x00000226
2166 #define REG_A4XX_CP_ME_RAM_DATA 0x00000227
2168 #define REG_A4XX_CP_PREEMPT 0x0000022a
2170 #define REG_A4XX_CP_CNTL 0x0000022c
2172 #define REG_A4XX_CP_ME_CNTL 0x0000022d
2174 #define REG_A4XX_CP_DEBUG 0x0000022e
2176 #define REG_A4XX_CP_DEBUG_ECO_CONTROL 0x00000231
2178 #define REG_A4XX_CP_DRAW_STATE_ADDR 0x00000232
2180 #define REG_A4XX_CP_PROTECT_REG_0 0x00000240
2182 static inline uint32_t REG_A4XX_CP_PROTECT(uint32_t i0) { return 0x00000240 + 0x1*i0; }
2184 static inline uint32_t REG_A4XX_CP_PROTECT_REG(uint32_t i0) { return 0x00000240 + 0x1*i0; }
2186 #define REG_A4XX_CP_PROTECT_CTRL 0x00000250
2188 #define REG_A4XX_CP_ST_BASE 0x000004c0
2190 #define REG_A4XX_CP_STQ_AVAIL 0x000004ce
2192 #define REG_A4XX_CP_MERCIU_STAT 0x000004d0
2194 #define REG_A4XX_CP_WFI_PEND_CTR 0x000004d2
2196 #define REG_A4XX_CP_HW_FAULT 0x000004d8
2198 #define REG_A4XX_CP_PROTECT_STATUS 0x000004da
2200 #define REG_A4XX_CP_EVENTS_IN_FLIGHT 0x000004dd
2202 #define REG_A4XX_CP_PERFCTR_CP_SEL_0 0x00000500
2204 #define REG_A4XX_CP_PERFCTR_CP_SEL_1 0x00000501
2206 #define REG_A4XX_CP_PERFCTR_CP_SEL_2 0x00000502
2208 #define REG_A4XX_CP_PERFCTR_CP_SEL_3 0x00000503
2210 #define REG_A4XX_CP_PERFCTR_CP_SEL_4 0x00000504
2212 #define REG_A4XX_CP_PERFCTR_CP_SEL_5 0x00000505
2214 #define REG_A4XX_CP_PERFCTR_CP_SEL_6 0x00000506
2216 #define REG_A4XX_CP_PERFCTR_CP_SEL_7 0x00000507
2218 #define REG_A4XX_CP_PERFCOMBINER_SELECT 0x0000050b
2220 static inline uint32_t REG_A4XX_CP_SCRATCH(uint32_t i0) { return 0x00000578 + 0x1*i0; }
2222 static inline uint32_t REG_A4XX_CP_SCRATCH_REG(uint32_t i0) { return 0x00000578 + 0x1*i0; }
2224 #define REG_A4XX_SP_VS_STATUS 0x00000ec0
2226 #define REG_A4XX_SP_MODE_CONTROL 0x00000ec3
2228 #define REG_A4XX_SP_PERFCTR_SP_SEL_0 0x00000ec4
2230 #define REG_A4XX_SP_PERFCTR_SP_SEL_1 0x00000ec5
2232 #define REG_A4XX_SP_PERFCTR_SP_SEL_2 0x00000ec6
2234 #define REG_A4XX_SP_PERFCTR_SP_SEL_3 0x00000ec7
2236 #define REG_A4XX_SP_PERFCTR_SP_SEL_4 0x00000ec8
2238 #define REG_A4XX_SP_PERFCTR_SP_SEL_5 0x00000ec9
2240 #define REG_A4XX_SP_PERFCTR_SP_SEL_6 0x00000eca
2242 #define REG_A4XX_SP_PERFCTR_SP_SEL_7 0x00000ecb
2244 #define REG_A4XX_SP_PERFCTR_SP_SEL_8 0x00000ecc
2246 #define REG_A4XX_SP_PERFCTR_SP_SEL_9 0x00000ecd
2248 #define REG_A4XX_SP_PERFCTR_SP_SEL_10 0x00000ece
2250 #define REG_A4XX_SP_PERFCTR_SP_SEL_11 0x00000ecf
2252 #define REG_A4XX_SP_SP_CTRL_REG 0x000022c0
2253 #define A4XX_SP_SP_CTRL_REG_BINNING_PASS 0x00080000
2255 #define REG_A4XX_SP_INSTR_CACHE_CTRL 0x000022c1
2256 #define A4XX_SP_INSTR_CACHE_CTRL_VS_BUFFER 0x00000080
2257 #define A4XX_SP_INSTR_CACHE_CTRL_FS_BUFFER 0x00000100
2258 #define A4XX_SP_INSTR_CACHE_CTRL_INSTR_BUFFER 0x00000400
2260 #define REG_A4XX_SP_VS_CTRL_REG0 0x000022c4
2261 #define A4XX_SP_VS_CTRL_REG0_THREADMODE__MASK 0x00000001
2262 #define A4XX_SP_VS_CTRL_REG0_THREADMODE__SHIFT 0
2263 static inline uint32_t A4XX_SP_VS_CTRL_REG0_THREADMODE(enum a3xx_threadmode val)
2265 return ((val) << A4XX_SP_VS_CTRL_REG0_THREADMODE__SHIFT) & A4XX_SP_VS_CTRL_REG0_THREADMODE__MASK;
2267 #define A4XX_SP_VS_CTRL_REG0_VARYING 0x00000002
2268 #define A4XX_SP_VS_CTRL_REG0_CACHEINVALID 0x00000004
2269 #define A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__MASK 0x000003f0
2270 #define A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT 4
2271 static inline uint32_t A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT(uint32_t val)
2273 return ((val) << A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT) & A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__MASK;
2275 #define A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__MASK 0x0003fc00
2276 #define A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT 10
2277 static inline uint32_t A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT(uint32_t val)
2279 return ((val) << A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT) & A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__MASK;
2281 #define A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__MASK 0x000c0000
2282 #define A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__SHIFT 18
2283 static inline uint32_t A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP(uint32_t val)
2285 return ((val) << A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__SHIFT) & A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__MASK;
2287 #define A4XX_SP_VS_CTRL_REG0_THREADSIZE__MASK 0x00100000
2288 #define A4XX_SP_VS_CTRL_REG0_THREADSIZE__SHIFT 20
2289 static inline uint32_t A4XX_SP_VS_CTRL_REG0_THREADSIZE(enum a3xx_threadsize val)
2291 return ((val) << A4XX_SP_VS_CTRL_REG0_THREADSIZE__SHIFT) & A4XX_SP_VS_CTRL_REG0_THREADSIZE__MASK;
2293 #define A4XX_SP_VS_CTRL_REG0_SUPERTHREADMODE 0x00200000
2294 #define A4XX_SP_VS_CTRL_REG0_PIXLODENABLE 0x00400000
2296 #define REG_A4XX_SP_VS_CTRL_REG1 0x000022c5
2297 #define A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__MASK 0x000000ff
2298 #define A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__SHIFT 0
2299 static inline uint32_t A4XX_SP_VS_CTRL_REG1_CONSTLENGTH(uint32_t val)
2301 return ((val) << A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__SHIFT) & A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__MASK;
2303 #define A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__MASK 0x7f000000
2304 #define A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__SHIFT 24
2305 static inline uint32_t A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING(uint32_t val)
2307 return ((val) << A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__SHIFT) & A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__MASK;
2310 #define REG_A4XX_SP_VS_PARAM_REG 0x000022c6
2311 #define A4XX_SP_VS_PARAM_REG_POSREGID__MASK 0x000000ff
2312 #define A4XX_SP_VS_PARAM_REG_POSREGID__SHIFT 0
2313 static inline uint32_t A4XX_SP_VS_PARAM_REG_POSREGID(uint32_t val)
2315 return ((val) << A4XX_SP_VS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_VS_PARAM_REG_POSREGID__MASK;
2317 #define A4XX_SP_VS_PARAM_REG_PSIZEREGID__MASK 0x0000ff00
2318 #define A4XX_SP_VS_PARAM_REG_PSIZEREGID__SHIFT 8
2319 static inline uint32_t A4XX_SP_VS_PARAM_REG_PSIZEREGID(uint32_t val)
2321 return ((val) << A4XX_SP_VS_PARAM_REG_PSIZEREGID__SHIFT) & A4XX_SP_VS_PARAM_REG_PSIZEREGID__MASK;
2323 #define A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__MASK 0xfff00000
2324 #define A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__SHIFT 20
2325 static inline uint32_t A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR(uint32_t val)
2327 return ((val) << A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__SHIFT) & A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__MASK;
2330 static inline uint32_t REG_A4XX_SP_VS_OUT(uint32_t i0) { return 0x000022c7 + 0x1*i0; }
2332 static inline uint32_t REG_A4XX_SP_VS_OUT_REG(uint32_t i0) { return 0x000022c7 + 0x1*i0; }
2333 #define A4XX_SP_VS_OUT_REG_A_REGID__MASK 0x000001ff
2334 #define A4XX_SP_VS_OUT_REG_A_REGID__SHIFT 0
2335 static inline uint32_t A4XX_SP_VS_OUT_REG_A_REGID(uint32_t val)
2337 return ((val) << A4XX_SP_VS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_VS_OUT_REG_A_REGID__MASK;
2339 #define A4XX_SP_VS_OUT_REG_A_COMPMASK__MASK 0x00001e00
2340 #define A4XX_SP_VS_OUT_REG_A_COMPMASK__SHIFT 9
2341 static inline uint32_t A4XX_SP_VS_OUT_REG_A_COMPMASK(uint32_t val)
2343 return ((val) << A4XX_SP_VS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_VS_OUT_REG_A_COMPMASK__MASK;
2345 #define A4XX_SP_VS_OUT_REG_B_REGID__MASK 0x01ff0000
2346 #define A4XX_SP_VS_OUT_REG_B_REGID__SHIFT 16
2347 static inline uint32_t A4XX_SP_VS_OUT_REG_B_REGID(uint32_t val)
2349 return ((val) << A4XX_SP_VS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_VS_OUT_REG_B_REGID__MASK;
2351 #define A4XX_SP_VS_OUT_REG_B_COMPMASK__MASK 0x1e000000
2352 #define A4XX_SP_VS_OUT_REG_B_COMPMASK__SHIFT 25
2353 static inline uint32_t A4XX_SP_VS_OUT_REG_B_COMPMASK(uint32_t val)
2355 return ((val) << A4XX_SP_VS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_VS_OUT_REG_B_COMPMASK__MASK;
2358 static inline uint32_t REG_A4XX_SP_VS_VPC_DST(uint32_t i0) { return 0x000022d8 + 0x1*i0; }
2360 static inline uint32_t REG_A4XX_SP_VS_VPC_DST_REG(uint32_t i0) { return 0x000022d8 + 0x1*i0; }
2361 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC0__MASK 0x000000ff
2362 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC0__SHIFT 0
2363 static inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC0(uint32_t val)
2365 return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC0__MASK;
2367 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC1__MASK 0x0000ff00
2368 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC1__SHIFT 8
2369 static inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC1(uint32_t val)
2371 return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC1__MASK;
2373 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC2__MASK 0x00ff0000
2374 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC2__SHIFT 16
2375 static inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC2(uint32_t val)
2377 return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC2__MASK;
2379 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC3__MASK 0xff000000
2380 #define A4XX_SP_VS_VPC_DST_REG_OUTLOC3__SHIFT 24
2381 static inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC3(uint32_t val)
2383 return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC3__MASK;
2386 #define REG_A4XX_SP_VS_OBJ_OFFSET_REG 0x000022e0
2387 #define A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK 0x01ff0000
2388 #define A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT 16
2389 static inline uint32_t A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
2391 return ((val) << A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
2393 #define A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK 0xfe000000
2394 #define A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT 25
2395 static inline uint32_t A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
2397 return ((val) << A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
2400 #define REG_A4XX_SP_VS_OBJ_START 0x000022e1
2402 #define REG_A4XX_SP_VS_PVT_MEM_PARAM 0x000022e2
2404 #define REG_A4XX_SP_VS_PVT_MEM_ADDR 0x000022e3
2406 #define REG_A4XX_SP_VS_LENGTH_REG 0x000022e5
2408 #define REG_A4XX_SP_FS_CTRL_REG0 0x000022e8
2409 #define A4XX_SP_FS_CTRL_REG0_THREADMODE__MASK 0x00000001
2410 #define A4XX_SP_FS_CTRL_REG0_THREADMODE__SHIFT 0
2411 static inline uint32_t A4XX_SP_FS_CTRL_REG0_THREADMODE(enum a3xx_threadmode val)
2413 return ((val) << A4XX_SP_FS_CTRL_REG0_THREADMODE__SHIFT) & A4XX_SP_FS_CTRL_REG0_THREADMODE__MASK;
2415 #define A4XX_SP_FS_CTRL_REG0_VARYING 0x00000002
2416 #define A4XX_SP_FS_CTRL_REG0_CACHEINVALID 0x00000004
2417 #define A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__MASK 0x000003f0
2418 #define A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT 4
2419 static inline uint32_t A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT(uint32_t val)
2421 return ((val) << A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT) & A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__MASK;
2423 #define A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__MASK 0x0003fc00
2424 #define A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT 10
2425 static inline uint32_t A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT(uint32_t val)
2427 return ((val) << A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT) & A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__MASK;
2429 #define A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__MASK 0x000c0000
2430 #define A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__SHIFT 18
2431 static inline uint32_t A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP(uint32_t val)
2433 return ((val) << A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__SHIFT) & A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__MASK;
2435 #define A4XX_SP_FS_CTRL_REG0_THREADSIZE__MASK 0x00100000
2436 #define A4XX_SP_FS_CTRL_REG0_THREADSIZE__SHIFT 20
2437 static inline uint32_t A4XX_SP_FS_CTRL_REG0_THREADSIZE(enum a3xx_threadsize val)
2439 return ((val) << A4XX_SP_FS_CTRL_REG0_THREADSIZE__SHIFT) & A4XX_SP_FS_CTRL_REG0_THREADSIZE__MASK;
2441 #define A4XX_SP_FS_CTRL_REG0_SUPERTHREADMODE 0x00200000
2442 #define A4XX_SP_FS_CTRL_REG0_PIXLODENABLE 0x00400000
2444 #define REG_A4XX_SP_FS_CTRL_REG1 0x000022e9
2445 #define A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__MASK 0x000000ff
2446 #define A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__SHIFT 0
2447 static inline uint32_t A4XX_SP_FS_CTRL_REG1_CONSTLENGTH(uint32_t val)
2449 return ((val) << A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__SHIFT) & A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__MASK;
2451 #define A4XX_SP_FS_CTRL_REG1_FACENESS 0x00080000
2452 #define A4XX_SP_FS_CTRL_REG1_VARYING 0x00100000
2453 #define A4XX_SP_FS_CTRL_REG1_FRAGCOORD 0x00200000
2455 #define REG_A4XX_SP_FS_OBJ_OFFSET_REG 0x000022ea
2456 #define A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK 0x01ff0000
2457 #define A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT 16
2458 static inline uint32_t A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
2460 return ((val) << A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
2462 #define A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK 0xfe000000
2463 #define A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT 25
2464 static inline uint32_t A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
2466 return ((val) << A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
2469 #define REG_A4XX_SP_FS_OBJ_START 0x000022eb
2471 #define REG_A4XX_SP_FS_PVT_MEM_PARAM 0x000022ec
2473 #define REG_A4XX_SP_FS_PVT_MEM_ADDR 0x000022ed
2475 #define REG_A4XX_SP_FS_LENGTH_REG 0x000022ef
2477 #define REG_A4XX_SP_FS_OUTPUT_REG 0x000022f0
2478 #define A4XX_SP_FS_OUTPUT_REG_MRT__MASK 0x0000000f
2479 #define A4XX_SP_FS_OUTPUT_REG_MRT__SHIFT 0
2480 static inline uint32_t A4XX_SP_FS_OUTPUT_REG_MRT(uint32_t val)
2482 return ((val) << A4XX_SP_FS_OUTPUT_REG_MRT__SHIFT) & A4XX_SP_FS_OUTPUT_REG_MRT__MASK;
2484 #define A4XX_SP_FS_OUTPUT_REG_DEPTH_ENABLE 0x00000080
2485 #define A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__MASK 0x0000ff00
2486 #define A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__SHIFT 8
2487 static inline uint32_t A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID(uint32_t val)
2489 return ((val) << A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__SHIFT) & A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__MASK;
2491 #define A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__MASK 0xff000000
2492 #define A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__SHIFT 24
2493 static inline uint32_t A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID(uint32_t val)
2495 return ((val) << A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__SHIFT) & A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__MASK;
2498 static inline uint32_t REG_A4XX_SP_FS_MRT(uint32_t i0) { return 0x000022f1 + 0x1*i0; }
2500 static inline uint32_t REG_A4XX_SP_FS_MRT_REG(uint32_t i0) { return 0x000022f1 + 0x1*i0; }
2501 #define A4XX_SP_FS_MRT_REG_REGID__MASK 0x000000ff
2502 #define A4XX_SP_FS_MRT_REG_REGID__SHIFT 0
2503 static inline uint32_t A4XX_SP_FS_MRT_REG_REGID(uint32_t val)
2505 return ((val) << A4XX_SP_FS_MRT_REG_REGID__SHIFT) & A4XX_SP_FS_MRT_REG_REGID__MASK;
2507 #define A4XX_SP_FS_MRT_REG_HALF_PRECISION 0x00000100
2508 #define A4XX_SP_FS_MRT_REG_MRTFORMAT__MASK 0x0003f000
2509 #define A4XX_SP_FS_MRT_REG_MRTFORMAT__SHIFT 12
2510 static inline uint32_t A4XX_SP_FS_MRT_REG_MRTFORMAT(enum a4xx_color_fmt val)
2512 return ((val) << A4XX_SP_FS_MRT_REG_MRTFORMAT__SHIFT) & A4XX_SP_FS_MRT_REG_MRTFORMAT__MASK;
2514 #define A4XX_SP_FS_MRT_REG_COLOR_SRGB 0x00040000
2516 #define REG_A4XX_SP_CS_CTRL_REG0 0x00002300
2518 #define REG_A4XX_SP_CS_OBJ_OFFSET_REG 0x00002301
2520 #define REG_A4XX_SP_CS_OBJ_START 0x00002302
2522 #define REG_A4XX_SP_CS_PVT_MEM_PARAM 0x00002303
2524 #define REG_A4XX_SP_CS_PVT_MEM_ADDR 0x00002304
2526 #define REG_A4XX_SP_CS_PVT_MEM_SIZE 0x00002305
2528 #define REG_A4XX_SP_CS_LENGTH_REG 0x00002306
2530 #define REG_A4XX_SP_HS_OBJ_OFFSET_REG 0x0000230d
2531 #define A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK 0x01ff0000
2532 #define A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT 16
2533 static inline uint32_t A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
2535 return ((val) << A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
2537 #define A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK 0xfe000000
2538 #define A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT 25
2539 static inline uint32_t A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
2541 return ((val) << A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
2544 #define REG_A4XX_SP_HS_OBJ_START 0x0000230e
2546 #define REG_A4XX_SP_HS_PVT_MEM_PARAM 0x0000230f
2548 #define REG_A4XX_SP_HS_PVT_MEM_ADDR 0x00002310
2550 #define REG_A4XX_SP_HS_LENGTH_REG 0x00002312
2552 #define REG_A4XX_SP_DS_PARAM_REG 0x0000231a
2553 #define A4XX_SP_DS_PARAM_REG_POSREGID__MASK 0x000000ff
2554 #define A4XX_SP_DS_PARAM_REG_POSREGID__SHIFT 0
2555 static inline uint32_t A4XX_SP_DS_PARAM_REG_POSREGID(uint32_t val)
2557 return ((val) << A4XX_SP_DS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_DS_PARAM_REG_POSREGID__MASK;
2559 #define A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__MASK 0xfff00000
2560 #define A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__SHIFT 20
2561 static inline uint32_t A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR(uint32_t val)
2563 return ((val) << A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__SHIFT) & A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__MASK;
2566 static inline uint32_t REG_A4XX_SP_DS_OUT(uint32_t i0) { return 0x0000231b + 0x1*i0; }
2568 static inline uint32_t REG_A4XX_SP_DS_OUT_REG(uint32_t i0) { return 0x0000231b + 0x1*i0; }
2569 #define A4XX_SP_DS_OUT_REG_A_REGID__MASK 0x000001ff
2570 #define A4XX_SP_DS_OUT_REG_A_REGID__SHIFT 0
2571 static inline uint32_t A4XX_SP_DS_OUT_REG_A_REGID(uint32_t val)
2573 return ((val) << A4XX_SP_DS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_DS_OUT_REG_A_REGID__MASK;
2575 #define A4XX_SP_DS_OUT_REG_A_COMPMASK__MASK 0x00001e00
2576 #define A4XX_SP_DS_OUT_REG_A_COMPMASK__SHIFT 9
2577 static inline uint32_t A4XX_SP_DS_OUT_REG_A_COMPMASK(uint32_t val)
2579 return ((val) << A4XX_SP_DS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_DS_OUT_REG_A_COMPMASK__MASK;
2581 #define A4XX_SP_DS_OUT_REG_B_REGID__MASK 0x01ff0000
2582 #define A4XX_SP_DS_OUT_REG_B_REGID__SHIFT 16
2583 static inline uint32_t A4XX_SP_DS_OUT_REG_B_REGID(uint32_t val)
2585 return ((val) << A4XX_SP_DS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_DS_OUT_REG_B_REGID__MASK;
2587 #define A4XX_SP_DS_OUT_REG_B_COMPMASK__MASK 0x1e000000
2588 #define A4XX_SP_DS_OUT_REG_B_COMPMASK__SHIFT 25
2589 static inline uint32_t A4XX_SP_DS_OUT_REG_B_COMPMASK(uint32_t val)
2591 return ((val) << A4XX_SP_DS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_DS_OUT_REG_B_COMPMASK__MASK;
2594 static inline uint32_t REG_A4XX_SP_DS_VPC_DST(uint32_t i0) { return 0x0000232c + 0x1*i0; }
2596 static inline uint32_t REG_A4XX_SP_DS_VPC_DST_REG(uint32_t i0) { return 0x0000232c + 0x1*i0; }
2597 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC0__MASK 0x000000ff
2598 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC0__SHIFT 0
2599 static inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC0(uint32_t val)
2601 return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC0__MASK;
2603 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC1__MASK 0x0000ff00
2604 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC1__SHIFT 8
2605 static inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC1(uint32_t val)
2607 return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC1__MASK;
2609 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC2__MASK 0x00ff0000
2610 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC2__SHIFT 16
2611 static inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC2(uint32_t val)
2613 return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC2__MASK;
2615 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC3__MASK 0xff000000
2616 #define A4XX_SP_DS_VPC_DST_REG_OUTLOC3__SHIFT 24
2617 static inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC3(uint32_t val)
2619 return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC3__MASK;
2622 #define REG_A4XX_SP_DS_OBJ_OFFSET_REG 0x00002334
2623 #define A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK 0x01ff0000
2624 #define A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT 16
2625 static inline uint32_t A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
2627 return ((val) << A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
2629 #define A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK 0xfe000000
2630 #define A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT 25
2631 static inline uint32_t A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
2633 return ((val) << A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
2636 #define REG_A4XX_SP_DS_OBJ_START 0x00002335
2638 #define REG_A4XX_SP_DS_PVT_MEM_PARAM 0x00002336
2640 #define REG_A4XX_SP_DS_PVT_MEM_ADDR 0x00002337
2642 #define REG_A4XX_SP_DS_LENGTH_REG 0x00002339
2644 #define REG_A4XX_SP_GS_PARAM_REG 0x00002341
2645 #define A4XX_SP_GS_PARAM_REG_POSREGID__MASK 0x000000ff
2646 #define A4XX_SP_GS_PARAM_REG_POSREGID__SHIFT 0
2647 static inline uint32_t A4XX_SP_GS_PARAM_REG_POSREGID(uint32_t val)
2649 return ((val) << A4XX_SP_GS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_GS_PARAM_REG_POSREGID__MASK;
2651 #define A4XX_SP_GS_PARAM_REG_PRIMREGID__MASK 0x0000ff00
2652 #define A4XX_SP_GS_PARAM_REG_PRIMREGID__SHIFT 8
2653 static inline uint32_t A4XX_SP_GS_PARAM_REG_PRIMREGID(uint32_t val)
2655 return ((val) << A4XX_SP_GS_PARAM_REG_PRIMREGID__SHIFT) & A4XX_SP_GS_PARAM_REG_PRIMREGID__MASK;
2657 #define A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__MASK 0xfff00000
2658 #define A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__SHIFT 20
2659 static inline uint32_t A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR(uint32_t val)
2661 return ((val) << A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__SHIFT) & A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__MASK;
2664 static inline uint32_t REG_A4XX_SP_GS_OUT(uint32_t i0) { return 0x00002342 + 0x1*i0; }
2666 static inline uint32_t REG_A4XX_SP_GS_OUT_REG(uint32_t i0) { return 0x00002342 + 0x1*i0; }
2667 #define A4XX_SP_GS_OUT_REG_A_REGID__MASK 0x000001ff
2668 #define A4XX_SP_GS_OUT_REG_A_REGID__SHIFT 0
2669 static inline uint32_t A4XX_SP_GS_OUT_REG_A_REGID(uint32_t val)
2671 return ((val) << A4XX_SP_GS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_GS_OUT_REG_A_REGID__MASK;
2673 #define A4XX_SP_GS_OUT_REG_A_COMPMASK__MASK 0x00001e00
2674 #define A4XX_SP_GS_OUT_REG_A_COMPMASK__SHIFT 9
2675 static inline uint32_t A4XX_SP_GS_OUT_REG_A_COMPMASK(uint32_t val)
2677 return ((val) << A4XX_SP_GS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_GS_OUT_REG_A_COMPMASK__MASK;
2679 #define A4XX_SP_GS_OUT_REG_B_REGID__MASK 0x01ff0000
2680 #define A4XX_SP_GS_OUT_REG_B_REGID__SHIFT 16
2681 static inline uint32_t A4XX_SP_GS_OUT_REG_B_REGID(uint32_t val)
2683 return ((val) << A4XX_SP_GS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_GS_OUT_REG_B_REGID__MASK;
2685 #define A4XX_SP_GS_OUT_REG_B_COMPMASK__MASK 0x1e000000
2686 #define A4XX_SP_GS_OUT_REG_B_COMPMASK__SHIFT 25
2687 static inline uint32_t A4XX_SP_GS_OUT_REG_B_COMPMASK(uint32_t val)
2689 return ((val) << A4XX_SP_GS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_GS_OUT_REG_B_COMPMASK__MASK;
2692 static inline uint32_t REG_A4XX_SP_GS_VPC_DST(uint32_t i0) { return 0x00002353 + 0x1*i0; }
2694 static inline uint32_t REG_A4XX_SP_GS_VPC_DST_REG(uint32_t i0) { return 0x00002353 + 0x1*i0; }
2695 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC0__MASK 0x000000ff
2696 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC0__SHIFT 0
2697 static inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC0(uint32_t val)
2699 return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC0__MASK;
2701 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC1__MASK 0x0000ff00
2702 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC1__SHIFT 8
2703 static inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC1(uint32_t val)
2705 return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC1__MASK;
2707 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC2__MASK 0x00ff0000
2708 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC2__SHIFT 16
2709 static inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC2(uint32_t val)
2711 return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC2__MASK;
2713 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC3__MASK 0xff000000
2714 #define A4XX_SP_GS_VPC_DST_REG_OUTLOC3__SHIFT 24
2715 static inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC3(uint32_t val)
2717 return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC3__MASK;
2720 #define REG_A4XX_SP_GS_OBJ_OFFSET_REG 0x0000235b
2721 #define A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK 0x01ff0000
2722 #define A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT 16
2723 static inline uint32_t A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
2725 return ((val) << A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
2727 #define A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK 0xfe000000
2728 #define A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT 25
2729 static inline uint32_t A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
2731 return ((val) << A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
2734 #define REG_A4XX_SP_GS_OBJ_START 0x0000235c
2736 #define REG_A4XX_SP_GS_PVT_MEM_PARAM 0x0000235d
2738 #define REG_A4XX_SP_GS_PVT_MEM_ADDR 0x0000235e
2740 #define REG_A4XX_SP_GS_LENGTH_REG 0x00002360
2742 #define REG_A4XX_VPC_DEBUG_RAM_SEL 0x00000e60
2744 #define REG_A4XX_VPC_DEBUG_RAM_READ 0x00000e61
2746 #define REG_A4XX_VPC_DEBUG_ECO_CONTROL 0x00000e64
2748 #define REG_A4XX_VPC_PERFCTR_VPC_SEL_0 0x00000e65
2750 #define REG_A4XX_VPC_PERFCTR_VPC_SEL_1 0x00000e66
2752 #define REG_A4XX_VPC_PERFCTR_VPC_SEL_2 0x00000e67
2754 #define REG_A4XX_VPC_PERFCTR_VPC_SEL_3 0x00000e68
2756 #define REG_A4XX_VPC_ATTR 0x00002140
2757 #define A4XX_VPC_ATTR_TOTALATTR__MASK 0x000001ff
2758 #define A4XX_VPC_ATTR_TOTALATTR__SHIFT 0
2759 static inline uint32_t A4XX_VPC_ATTR_TOTALATTR(uint32_t val)
2761 return ((val) << A4XX_VPC_ATTR_TOTALATTR__SHIFT) & A4XX_VPC_ATTR_TOTALATTR__MASK;
2763 #define A4XX_VPC_ATTR_PSIZE 0x00000200
2764 #define A4XX_VPC_ATTR_THRDASSIGN__MASK 0x00003000
2765 #define A4XX_VPC_ATTR_THRDASSIGN__SHIFT 12
2766 static inline uint32_t A4XX_VPC_ATTR_THRDASSIGN(uint32_t val)
2768 return ((val) << A4XX_VPC_ATTR_THRDASSIGN__SHIFT) & A4XX_VPC_ATTR_THRDASSIGN__MASK;
2770 #define A4XX_VPC_ATTR_ENABLE 0x02000000
2772 #define REG_A4XX_VPC_PACK 0x00002141
2773 #define A4XX_VPC_PACK_NUMBYPASSVAR__MASK 0x000000ff
2774 #define A4XX_VPC_PACK_NUMBYPASSVAR__SHIFT 0
2775 static inline uint32_t A4XX_VPC_PACK_NUMBYPASSVAR(uint32_t val)
2777 return ((val) << A4XX_VPC_PACK_NUMBYPASSVAR__SHIFT) & A4XX_VPC_PACK_NUMBYPASSVAR__MASK;
2779 #define A4XX_VPC_PACK_NUMFPNONPOSVAR__MASK 0x0000ff00
2780 #define A4XX_VPC_PACK_NUMFPNONPOSVAR__SHIFT 8
2781 static inline uint32_t A4XX_VPC_PACK_NUMFPNONPOSVAR(uint32_t val)
2783 return ((val) << A4XX_VPC_PACK_NUMFPNONPOSVAR__SHIFT) & A4XX_VPC_PACK_NUMFPNONPOSVAR__MASK;
2785 #define A4XX_VPC_PACK_NUMNONPOSVSVAR__MASK 0x00ff0000
2786 #define A4XX_VPC_PACK_NUMNONPOSVSVAR__SHIFT 16
2787 static inline uint32_t A4XX_VPC_PACK_NUMNONPOSVSVAR(uint32_t val)
2789 return ((val) << A4XX_VPC_PACK_NUMNONPOSVSVAR__SHIFT) & A4XX_VPC_PACK_NUMNONPOSVSVAR__MASK;
2792 static inline uint32_t REG_A4XX_VPC_VARYING_INTERP(uint32_t i0) { return 0x00002142 + 0x1*i0; }
2794 static inline uint32_t REG_A4XX_VPC_VARYING_INTERP_MODE(uint32_t i0) { return 0x00002142 + 0x1*i0; }
2796 static inline uint32_t REG_A4XX_VPC_VARYING_PS_REPL(uint32_t i0) { return 0x0000214a + 0x1*i0; }
2798 static inline uint32_t REG_A4XX_VPC_VARYING_PS_REPL_MODE(uint32_t i0) { return 0x0000214a + 0x1*i0; }
2800 #define REG_A4XX_VPC_SO_FLUSH_WADDR_3 0x0000216e
2802 #define REG_A4XX_VSC_BIN_SIZE 0x00000c00
2803 #define A4XX_VSC_BIN_SIZE_WIDTH__MASK 0x0000001f
2804 #define A4XX_VSC_BIN_SIZE_WIDTH__SHIFT 0
2805 static inline uint32_t A4XX_VSC_BIN_SIZE_WIDTH(uint32_t val)
2807 return ((val >> 5) << A4XX_VSC_BIN_SIZE_WIDTH__SHIFT) & A4XX_VSC_BIN_SIZE_WIDTH__MASK;
2809 #define A4XX_VSC_BIN_SIZE_HEIGHT__MASK 0x000003e0
2810 #define A4XX_VSC_BIN_SIZE_HEIGHT__SHIFT 5
2811 static inline uint32_t A4XX_VSC_BIN_SIZE_HEIGHT(uint32_t val)
2813 return ((val >> 5) << A4XX_VSC_BIN_SIZE_HEIGHT__SHIFT) & A4XX_VSC_BIN_SIZE_HEIGHT__MASK;
2816 #define REG_A4XX_VSC_SIZE_ADDRESS 0x00000c01
2818 #define REG_A4XX_VSC_SIZE_ADDRESS2 0x00000c02
2820 #define REG_A4XX_VSC_DEBUG_ECO_CONTROL 0x00000c03
2822 static inline uint32_t REG_A4XX_VSC_PIPE_CONFIG(uint32_t i0) { return 0x00000c08 + 0x1*i0; }
2824 static inline uint32_t REG_A4XX_VSC_PIPE_CONFIG_REG(uint32_t i0) { return 0x00000c08 + 0x1*i0; }
2825 #define A4XX_VSC_PIPE_CONFIG_REG_X__MASK 0x000003ff
2826 #define A4XX_VSC_PIPE_CONFIG_REG_X__SHIFT 0
2827 static inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_X(uint32_t val)
2829 return ((val) << A4XX_VSC_PIPE_CONFIG_REG_X__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_X__MASK;
2831 #define A4XX_VSC_PIPE_CONFIG_REG_Y__MASK 0x000ffc00
2832 #define A4XX_VSC_PIPE_CONFIG_REG_Y__SHIFT 10
2833 static inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_Y(uint32_t val)
2835 return ((val) << A4XX_VSC_PIPE_CONFIG_REG_Y__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_Y__MASK;
2837 #define A4XX_VSC_PIPE_CONFIG_REG_W__MASK 0x00f00000
2838 #define A4XX_VSC_PIPE_CONFIG_REG_W__SHIFT 20
2839 static inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_W(uint32_t val)
2841 return ((val) << A4XX_VSC_PIPE_CONFIG_REG_W__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_W__MASK;
2843 #define A4XX_VSC_PIPE_CONFIG_REG_H__MASK 0x0f000000
2844 #define A4XX_VSC_PIPE_CONFIG_REG_H__SHIFT 24
2845 static inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_H(uint32_t val)
2847 return ((val) << A4XX_VSC_PIPE_CONFIG_REG_H__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_H__MASK;
2850 static inline uint32_t REG_A4XX_VSC_PIPE_DATA_ADDRESS(uint32_t i0) { return 0x00000c10 + 0x1*i0; }
2852 static inline uint32_t REG_A4XX_VSC_PIPE_DATA_ADDRESS_REG(uint32_t i0) { return 0x00000c10 + 0x1*i0; }
2854 static inline uint32_t REG_A4XX_VSC_PIPE_DATA_LENGTH(uint32_t i0) { return 0x00000c18 + 0x1*i0; }
2856 static inline uint32_t REG_A4XX_VSC_PIPE_DATA_LENGTH_REG(uint32_t i0) { return 0x00000c18 + 0x1*i0; }
2858 #define REG_A4XX_VSC_PIPE_PARTIAL_POSN_1 0x00000c41
2860 #define REG_A4XX_VSC_PERFCTR_VSC_SEL_0 0x00000c50
2862 #define REG_A4XX_VSC_PERFCTR_VSC_SEL_1 0x00000c51
2864 #define REG_A4XX_VFD_DEBUG_CONTROL 0x00000e40
2866 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_0 0x00000e43
2868 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_1 0x00000e44
2870 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_2 0x00000e45
2872 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_3 0x00000e46
2874 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_4 0x00000e47
2876 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_5 0x00000e48
2878 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_6 0x00000e49
2880 #define REG_A4XX_VFD_PERFCTR_VFD_SEL_7 0x00000e4a
2882 #define REG_A4XX_VGT_CL_INITIATOR 0x000021d0
2884 #define REG_A4XX_VGT_EVENT_INITIATOR 0x000021d9
2886 #define REG_A4XX_VFD_CONTROL_0 0x00002200
2887 #define A4XX_VFD_CONTROL_0_TOTALATTRTOVS__MASK 0x000000ff
2888 #define A4XX_VFD_CONTROL_0_TOTALATTRTOVS__SHIFT 0
2889 static inline uint32_t A4XX_VFD_CONTROL_0_TOTALATTRTOVS(uint32_t val)
2891 return ((val) << A4XX_VFD_CONTROL_0_TOTALATTRTOVS__SHIFT) & A4XX_VFD_CONTROL_0_TOTALATTRTOVS__MASK;
2893 #define A4XX_VFD_CONTROL_0_BYPASSATTROVS__MASK 0x0001fe00
2894 #define A4XX_VFD_CONTROL_0_BYPASSATTROVS__SHIFT 9
2895 static inline uint32_t A4XX_VFD_CONTROL_0_BYPASSATTROVS(uint32_t val)
2897 return ((val) << A4XX_VFD_CONTROL_0_BYPASSATTROVS__SHIFT) & A4XX_VFD_CONTROL_0_BYPASSATTROVS__MASK;
2899 #define A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__MASK 0x03f00000
2900 #define A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__SHIFT 20
2901 static inline uint32_t A4XX_VFD_CONTROL_0_STRMDECINSTRCNT(uint32_t val)
2903 return ((val) << A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__SHIFT) & A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__MASK;
2905 #define A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__MASK 0xfc000000
2906 #define A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__SHIFT 26
2907 static inline uint32_t A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT(uint32_t val)
2909 return ((val) << A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__SHIFT) & A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__MASK;
2912 #define REG_A4XX_VFD_CONTROL_1 0x00002201
2913 #define A4XX_VFD_CONTROL_1_MAXSTORAGE__MASK 0x0000ffff
2914 #define A4XX_VFD_CONTROL_1_MAXSTORAGE__SHIFT 0
2915 static inline uint32_t A4XX_VFD_CONTROL_1_MAXSTORAGE(uint32_t val)
2917 return ((val) << A4XX_VFD_CONTROL_1_MAXSTORAGE__SHIFT) & A4XX_VFD_CONTROL_1_MAXSTORAGE__MASK;
2919 #define A4XX_VFD_CONTROL_1_REGID4VTX__MASK 0x00ff0000
2920 #define A4XX_VFD_CONTROL_1_REGID4VTX__SHIFT 16
2921 static inline uint32_t A4XX_VFD_CONTROL_1_REGID4VTX(uint32_t val)
2923 return ((val) << A4XX_VFD_CONTROL_1_REGID4VTX__SHIFT) & A4XX_VFD_CONTROL_1_REGID4VTX__MASK;
2925 #define A4XX_VFD_CONTROL_1_REGID4INST__MASK 0xff000000
2926 #define A4XX_VFD_CONTROL_1_REGID4INST__SHIFT 24
2927 static inline uint32_t A4XX_VFD_CONTROL_1_REGID4INST(uint32_t val)
2929 return ((val) << A4XX_VFD_CONTROL_1_REGID4INST__SHIFT) & A4XX_VFD_CONTROL_1_REGID4INST__MASK;
2932 #define REG_A4XX_VFD_CONTROL_2 0x00002202
2934 #define REG_A4XX_VFD_CONTROL_3 0x00002203
2935 #define A4XX_VFD_CONTROL_3_REGID_VTXCNT__MASK 0x0000ff00
2936 #define A4XX_VFD_CONTROL_3_REGID_VTXCNT__SHIFT 8
2937 static inline uint32_t A4XX_VFD_CONTROL_3_REGID_VTXCNT(uint32_t val)
2939 return ((val) << A4XX_VFD_CONTROL_3_REGID_VTXCNT__SHIFT) & A4XX_VFD_CONTROL_3_REGID_VTXCNT__MASK;
2941 #define A4XX_VFD_CONTROL_3_REGID_TESSX__MASK 0x00ff0000
2942 #define A4XX_VFD_CONTROL_3_REGID_TESSX__SHIFT 16
2943 static inline uint32_t A4XX_VFD_CONTROL_3_REGID_TESSX(uint32_t val)
2945 return ((val) << A4XX_VFD_CONTROL_3_REGID_TESSX__SHIFT) & A4XX_VFD_CONTROL_3_REGID_TESSX__MASK;
2947 #define A4XX_VFD_CONTROL_3_REGID_TESSY__MASK 0xff000000
2948 #define A4XX_VFD_CONTROL_3_REGID_TESSY__SHIFT 24
2949 static inline uint32_t A4XX_VFD_CONTROL_3_REGID_TESSY(uint32_t val)
2951 return ((val) << A4XX_VFD_CONTROL_3_REGID_TESSY__SHIFT) & A4XX_VFD_CONTROL_3_REGID_TESSY__MASK;
2954 #define REG_A4XX_VFD_CONTROL_4 0x00002204
2956 #define REG_A4XX_VFD_INDEX_OFFSET 0x00002208
2958 static inline uint32_t REG_A4XX_VFD_FETCH(uint32_t i0) { return 0x0000220a + 0x4*i0; }
2960 static inline uint32_t REG_A4XX_VFD_FETCH_INSTR_0(uint32_t i0) { return 0x0000220a + 0x4*i0; }
2961 #define A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__MASK 0x0000007f
2962 #define A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__SHIFT 0
2963 static inline uint32_t A4XX_VFD_FETCH_INSTR_0_FETCHSIZE(uint32_t val)
2965 return ((val) << A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__SHIFT) & A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__MASK;
2967 #define A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__MASK 0x0001ff80
2968 #define A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__SHIFT 7
2969 static inline uint32_t A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE(uint32_t val)
2971 return ((val) << A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__SHIFT) & A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__MASK;
2973 #define A4XX_VFD_FETCH_INSTR_0_SWITCHNEXT 0x00080000
2974 #define A4XX_VFD_FETCH_INSTR_0_INSTANCED 0x00100000
2976 static inline uint32_t REG_A4XX_VFD_FETCH_INSTR_1(uint32_t i0) { return 0x0000220b + 0x4*i0; }
2978 static inline uint32_t REG_A4XX_VFD_FETCH_INSTR_2(uint32_t i0) { return 0x0000220c + 0x4*i0; }
2979 #define A4XX_VFD_FETCH_INSTR_2_SIZE__MASK 0xfffffff0
2980 #define A4XX_VFD_FETCH_INSTR_2_SIZE__SHIFT 4
2981 static inline uint32_t A4XX_VFD_FETCH_INSTR_2_SIZE(uint32_t val)
2983 return ((val >> 4) << A4XX_VFD_FETCH_INSTR_2_SIZE__SHIFT) & A4XX_VFD_FETCH_INSTR_2_SIZE__MASK;
2986 static inline uint32_t REG_A4XX_VFD_FETCH_INSTR_3(uint32_t i0) { return 0x0000220d + 0x4*i0; }
2987 #define A4XX_VFD_FETCH_INSTR_3_STEPRATE__MASK 0x000001ff
2988 #define A4XX_VFD_FETCH_INSTR_3_STEPRATE__SHIFT 0
2989 static inline uint32_t A4XX_VFD_FETCH_INSTR_3_STEPRATE(uint32_t val)
2991 return ((val) << A4XX_VFD_FETCH_INSTR_3_STEPRATE__SHIFT) & A4XX_VFD_FETCH_INSTR_3_STEPRATE__MASK;
2994 static inline uint32_t REG_A4XX_VFD_DECODE(uint32_t i0) { return 0x0000228a + 0x1*i0; }
2996 static inline uint32_t REG_A4XX_VFD_DECODE_INSTR(uint32_t i0) { return 0x0000228a + 0x1*i0; }
2997 #define A4XX_VFD_DECODE_INSTR_WRITEMASK__MASK 0x0000000f
2998 #define A4XX_VFD_DECODE_INSTR_WRITEMASK__SHIFT 0
2999 static inline uint32_t A4XX_VFD_DECODE_INSTR_WRITEMASK(uint32_t val)
3001 return ((val) << A4XX_VFD_DECODE_INSTR_WRITEMASK__SHIFT) & A4XX_VFD_DECODE_INSTR_WRITEMASK__MASK;
3003 #define A4XX_VFD_DECODE_INSTR_CONSTFILL 0x00000010
3004 #define A4XX_VFD_DECODE_INSTR_FORMAT__MASK 0x00000fc0
3005 #define A4XX_VFD_DECODE_INSTR_FORMAT__SHIFT 6
3006 static inline uint32_t A4XX_VFD_DECODE_INSTR_FORMAT(enum a4xx_vtx_fmt val)
3008 return ((val) << A4XX_VFD_DECODE_INSTR_FORMAT__SHIFT) & A4XX_VFD_DECODE_INSTR_FORMAT__MASK;
3010 #define A4XX_VFD_DECODE_INSTR_REGID__MASK 0x000ff000
3011 #define A4XX_VFD_DECODE_INSTR_REGID__SHIFT 12
3012 static inline uint32_t A4XX_VFD_DECODE_INSTR_REGID(uint32_t val)
3014 return ((val) << A4XX_VFD_DECODE_INSTR_REGID__SHIFT) & A4XX_VFD_DECODE_INSTR_REGID__MASK;
3016 #define A4XX_VFD_DECODE_INSTR_INT 0x00100000
3017 #define A4XX_VFD_DECODE_INSTR_SWAP__MASK 0x00c00000
3018 #define A4XX_VFD_DECODE_INSTR_SWAP__SHIFT 22
3019 static inline uint32_t A4XX_VFD_DECODE_INSTR_SWAP(enum a3xx_color_swap val)
3021 return ((val) << A4XX_VFD_DECODE_INSTR_SWAP__SHIFT) & A4XX_VFD_DECODE_INSTR_SWAP__MASK;
3023 #define A4XX_VFD_DECODE_INSTR_SHIFTCNT__MASK 0x1f000000
3024 #define A4XX_VFD_DECODE_INSTR_SHIFTCNT__SHIFT 24
3025 static inline uint32_t A4XX_VFD_DECODE_INSTR_SHIFTCNT(uint32_t val)
3027 return ((val) << A4XX_VFD_DECODE_INSTR_SHIFTCNT__SHIFT) & A4XX_VFD_DECODE_INSTR_SHIFTCNT__MASK;
3029 #define A4XX_VFD_DECODE_INSTR_LASTCOMPVALID 0x20000000
3030 #define A4XX_VFD_DECODE_INSTR_SWITCHNEXT 0x40000000
3032 #define REG_A4XX_TPL1_DEBUG_ECO_CONTROL 0x00000f00
3034 #define REG_A4XX_TPL1_TP_MODE_CONTROL 0x00000f03
3036 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_0 0x00000f04
3038 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_1 0x00000f05
3040 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_2 0x00000f06
3042 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_3 0x00000f07
3044 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_4 0x00000f08
3046 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_5 0x00000f09
3048 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_6 0x00000f0a
3050 #define REG_A4XX_TPL1_PERFCTR_TP_SEL_7 0x00000f0b
3052 #define REG_A4XX_TPL1_TP_TEX_OFFSET 0x00002380
3054 #define REG_A4XX_TPL1_TP_TEX_COUNT 0x00002381
3055 #define A4XX_TPL1_TP_TEX_COUNT_VS__MASK 0x000000ff
3056 #define A4XX_TPL1_TP_TEX_COUNT_VS__SHIFT 0
3057 static inline uint32_t A4XX_TPL1_TP_TEX_COUNT_VS(uint32_t val)
3059 return ((val) << A4XX_TPL1_TP_TEX_COUNT_VS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_VS__MASK;
3061 #define A4XX_TPL1_TP_TEX_COUNT_HS__MASK 0x0000ff00
3062 #define A4XX_TPL1_TP_TEX_COUNT_HS__SHIFT 8
3063 static inline uint32_t A4XX_TPL1_TP_TEX_COUNT_HS(uint32_t val)
3065 return ((val) << A4XX_TPL1_TP_TEX_COUNT_HS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_HS__MASK;
3067 #define A4XX_TPL1_TP_TEX_COUNT_DS__MASK 0x00ff0000
3068 #define A4XX_TPL1_TP_TEX_COUNT_DS__SHIFT 16
3069 static inline uint32_t A4XX_TPL1_TP_TEX_COUNT_DS(uint32_t val)
3071 return ((val) << A4XX_TPL1_TP_TEX_COUNT_DS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_DS__MASK;
3073 #define A4XX_TPL1_TP_TEX_COUNT_GS__MASK 0xff000000
3074 #define A4XX_TPL1_TP_TEX_COUNT_GS__SHIFT 24
3075 static inline uint32_t A4XX_TPL1_TP_TEX_COUNT_GS(uint32_t val)
3077 return ((val) << A4XX_TPL1_TP_TEX_COUNT_GS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_GS__MASK;
3080 #define REG_A4XX_TPL1_TP_VS_BORDER_COLOR_BASE_ADDR 0x00002384
3082 #define REG_A4XX_TPL1_TP_HS_BORDER_COLOR_BASE_ADDR 0x00002387
3084 #define REG_A4XX_TPL1_TP_DS_BORDER_COLOR_BASE_ADDR 0x0000238a
3086 #define REG_A4XX_TPL1_TP_GS_BORDER_COLOR_BASE_ADDR 0x0000238d
3088 #define REG_A4XX_TPL1_TP_FS_TEX_COUNT 0x000023a0
3090 #define REG_A4XX_TPL1_TP_FS_BORDER_COLOR_BASE_ADDR 0x000023a1
3092 #define REG_A4XX_TPL1_TP_CS_BORDER_COLOR_BASE_ADDR 0x000023a4
3094 #define REG_A4XX_TPL1_TP_CS_SAMPLER_BASE_ADDR 0x000023a5
3096 #define REG_A4XX_TPL1_TP_CS_TEXMEMOBJ_BASE_ADDR 0x000023a6
3098 #define REG_A4XX_GRAS_TSE_STATUS 0x00000c80
3100 #define REG_A4XX_GRAS_DEBUG_ECO_CONTROL 0x00000c81
3102 #define REG_A4XX_GRAS_PERFCTR_TSE_SEL_0 0x00000c88
3104 #define REG_A4XX_GRAS_PERFCTR_TSE_SEL_1 0x00000c89
3106 #define REG_A4XX_GRAS_PERFCTR_TSE_SEL_2 0x00000c8a
3108 #define REG_A4XX_GRAS_PERFCTR_TSE_SEL_3 0x00000c8b
3110 #define REG_A4XX_GRAS_PERFCTR_RAS_SEL_0 0x00000c8c
3112 #define REG_A4XX_GRAS_PERFCTR_RAS_SEL_1 0x00000c8d
3114 #define REG_A4XX_GRAS_PERFCTR_RAS_SEL_2 0x00000c8e
3116 #define REG_A4XX_GRAS_PERFCTR_RAS_SEL_3 0x00000c8f
3118 #define REG_A4XX_GRAS_CL_CLIP_CNTL 0x00002000
3119 #define A4XX_GRAS_CL_CLIP_CNTL_CLIP_DISABLE 0x00008000
3120 #define A4XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z 0x00400000
3122 #define REG_A4XX_GRAS_CLEAR_CNTL 0x00002003
3123 #define A4XX_GRAS_CLEAR_CNTL_NOT_FASTCLEAR 0x00000001
3125 #define REG_A4XX_GRAS_CL_GB_CLIP_ADJ 0x00002004
3126 #define A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__MASK 0x000003ff
3127 #define A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__SHIFT 0
3128 static inline uint32_t A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ(uint32_t val)
3130 return ((val) << A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__SHIFT) & A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__MASK;
3132 #define A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__MASK 0x000ffc00
3133 #define A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__SHIFT 10
3134 static inline uint32_t A4XX_GRAS_CL_GB_CLIP_ADJ_VERT(uint32_t val)
3136 return ((val) << A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__SHIFT) & A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__MASK;
3139 #define REG_A4XX_GRAS_CL_VPORT_XOFFSET_0 0x00002008
3140 #define A4XX_GRAS_CL_VPORT_XOFFSET_0__MASK 0xffffffff
3141 #define A4XX_GRAS_CL_VPORT_XOFFSET_0__SHIFT 0
3142 static inline uint32_t A4XX_GRAS_CL_VPORT_XOFFSET_0(float val)
3144 return ((fui(val)) << A4XX_GRAS_CL_VPORT_XOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_XOFFSET_0__MASK;
3147 #define REG_A4XX_GRAS_CL_VPORT_XSCALE_0 0x00002009
3148 #define A4XX_GRAS_CL_VPORT_XSCALE_0__MASK 0xffffffff
3149 #define A4XX_GRAS_CL_VPORT_XSCALE_0__SHIFT 0
3150 static inline uint32_t A4XX_GRAS_CL_VPORT_XSCALE_0(float val)
3152 return ((fui(val)) << A4XX_GRAS_CL_VPORT_XSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_XSCALE_0__MASK;
3155 #define REG_A4XX_GRAS_CL_VPORT_YOFFSET_0 0x0000200a
3156 #define A4XX_GRAS_CL_VPORT_YOFFSET_0__MASK 0xffffffff
3157 #define A4XX_GRAS_CL_VPORT_YOFFSET_0__SHIFT 0
3158 static inline uint32_t A4XX_GRAS_CL_VPORT_YOFFSET_0(float val)
3160 return ((fui(val)) << A4XX_GRAS_CL_VPORT_YOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_YOFFSET_0__MASK;
3163 #define REG_A4XX_GRAS_CL_VPORT_YSCALE_0 0x0000200b
3164 #define A4XX_GRAS_CL_VPORT_YSCALE_0__MASK 0xffffffff
3165 #define A4XX_GRAS_CL_VPORT_YSCALE_0__SHIFT 0
3166 static inline uint32_t A4XX_GRAS_CL_VPORT_YSCALE_0(float val)
3168 return ((fui(val)) << A4XX_GRAS_CL_VPORT_YSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_YSCALE_0__MASK;
3171 #define REG_A4XX_GRAS_CL_VPORT_ZOFFSET_0 0x0000200c
3172 #define A4XX_GRAS_CL_VPORT_ZOFFSET_0__MASK 0xffffffff
3173 #define A4XX_GRAS_CL_VPORT_ZOFFSET_0__SHIFT 0
3174 static inline uint32_t A4XX_GRAS_CL_VPORT_ZOFFSET_0(float val)
3176 return ((fui(val)) << A4XX_GRAS_CL_VPORT_ZOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_ZOFFSET_0__MASK;
3179 #define REG_A4XX_GRAS_CL_VPORT_ZSCALE_0 0x0000200d
3180 #define A4XX_GRAS_CL_VPORT_ZSCALE_0__MASK 0xffffffff
3181 #define A4XX_GRAS_CL_VPORT_ZSCALE_0__SHIFT 0
3182 static inline uint32_t A4XX_GRAS_CL_VPORT_ZSCALE_0(float val)
3184 return ((fui(val)) << A4XX_GRAS_CL_VPORT_ZSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_ZSCALE_0__MASK;
3187 #define REG_A4XX_GRAS_SU_POINT_MINMAX 0x00002070
3188 #define A4XX_GRAS_SU_POINT_MINMAX_MIN__MASK 0x0000ffff
3189 #define A4XX_GRAS_SU_POINT_MINMAX_MIN__SHIFT 0
3190 static inline uint32_t A4XX_GRAS_SU_POINT_MINMAX_MIN(float val)
3192 return ((((uint32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_MINMAX_MIN__SHIFT) & A4XX_GRAS_SU_POINT_MINMAX_MIN__MASK;
3194 #define A4XX_GRAS_SU_POINT_MINMAX_MAX__MASK 0xffff0000
3195 #define A4XX_GRAS_SU_POINT_MINMAX_MAX__SHIFT 16
3196 static inline uint32_t A4XX_GRAS_SU_POINT_MINMAX_MAX(float val)
3198 return ((((uint32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_MINMAX_MAX__SHIFT) & A4XX_GRAS_SU_POINT_MINMAX_MAX__MASK;
3201 #define REG_A4XX_GRAS_SU_POINT_SIZE 0x00002071
3202 #define A4XX_GRAS_SU_POINT_SIZE__MASK 0xffffffff
3203 #define A4XX_GRAS_SU_POINT_SIZE__SHIFT 0
3204 static inline uint32_t A4XX_GRAS_SU_POINT_SIZE(float val)
3206 return ((((int32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_SIZE__SHIFT) & A4XX_GRAS_SU_POINT_SIZE__MASK;
3209 #define REG_A4XX_GRAS_ALPHA_CONTROL 0x00002073
3210 #define A4XX_GRAS_ALPHA_CONTROL_ALPHA_TEST_ENABLE 0x00000004
3211 #define A4XX_GRAS_ALPHA_CONTROL_FORCE_FRAGZ_TO_FS 0x00000008
3213 #define REG_A4XX_GRAS_SU_POLY_OFFSET_SCALE 0x00002074
3214 #define A4XX_GRAS_SU_POLY_OFFSET_SCALE__MASK 0xffffffff
3215 #define A4XX_GRAS_SU_POLY_OFFSET_SCALE__SHIFT 0
3216 static inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_SCALE(float val)
3218 return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_SCALE__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_SCALE__MASK;
3221 #define REG_A4XX_GRAS_SU_POLY_OFFSET_OFFSET 0x00002075
3222 #define A4XX_GRAS_SU_POLY_OFFSET_OFFSET__MASK 0xffffffff
3223 #define A4XX_GRAS_SU_POLY_OFFSET_OFFSET__SHIFT 0
3224 static inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_OFFSET(float val)
3226 return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_OFFSET__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_OFFSET__MASK;
3229 #define REG_A4XX_GRAS_SU_POLY_OFFSET_CLAMP 0x00002076
3230 #define A4XX_GRAS_SU_POLY_OFFSET_CLAMP__MASK 0xffffffff
3231 #define A4XX_GRAS_SU_POLY_OFFSET_CLAMP__SHIFT 0
3232 static inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_CLAMP(float val)
3234 return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_CLAMP__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_CLAMP__MASK;
3237 #define REG_A4XX_GRAS_DEPTH_CONTROL 0x00002077
3238 #define A4XX_GRAS_DEPTH_CONTROL_FORMAT__MASK 0x00000003
3239 #define A4XX_GRAS_DEPTH_CONTROL_FORMAT__SHIFT 0
3240 static inline uint32_t A4XX_GRAS_DEPTH_CONTROL_FORMAT(enum a4xx_depth_format val)
3242 return ((val) << A4XX_GRAS_DEPTH_CONTROL_FORMAT__SHIFT) & A4XX_GRAS_DEPTH_CONTROL_FORMAT__MASK;
3245 #define REG_A4XX_GRAS_SU_MODE_CONTROL 0x00002078
3246 #define A4XX_GRAS_SU_MODE_CONTROL_CULL_FRONT 0x00000001
3247 #define A4XX_GRAS_SU_MODE_CONTROL_CULL_BACK 0x00000002
3248 #define A4XX_GRAS_SU_MODE_CONTROL_FRONT_CW 0x00000004
3249 #define A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__MASK 0x000007f8
3250 #define A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__SHIFT 3
3251 static inline uint32_t A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH(float val)
3253 return ((((int32_t)(val * 4.0))) << A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__SHIFT) & A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__MASK;
3255 #define A4XX_GRAS_SU_MODE_CONTROL_POLY_OFFSET 0x00000800
3256 #define A4XX_GRAS_SU_MODE_CONTROL_RENDERING_PASS 0x00100000
3258 #define REG_A4XX_GRAS_SC_CONTROL 0x0000207b
3259 #define A4XX_GRAS_SC_CONTROL_RENDER_MODE__MASK 0x0000000c
3260 #define A4XX_GRAS_SC_CONTROL_RENDER_MODE__SHIFT 2
3261 static inline uint32_t A4XX_GRAS_SC_CONTROL_RENDER_MODE(enum a3xx_render_mode val)
3263 return ((val) << A4XX_GRAS_SC_CONTROL_RENDER_MODE__SHIFT) & A4XX_GRAS_SC_CONTROL_RENDER_MODE__MASK;
3265 #define A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__MASK 0x00000380
3266 #define A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__SHIFT 7
3267 static inline uint32_t A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES(uint32_t val)
3269 return ((val) << A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__SHIFT) & A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__MASK;
3271 #define A4XX_GRAS_SC_CONTROL_MSAA_DISABLE 0x00000800
3272 #define A4XX_GRAS_SC_CONTROL_RASTER_MODE__MASK 0x0000f000
3273 #define A4XX_GRAS_SC_CONTROL_RASTER_MODE__SHIFT 12
3274 static inline uint32_t A4XX_GRAS_SC_CONTROL_RASTER_MODE(uint32_t val)
3276 return ((val) << A4XX_GRAS_SC_CONTROL_RASTER_MODE__SHIFT) & A4XX_GRAS_SC_CONTROL_RASTER_MODE__MASK;
3279 #define REG_A4XX_GRAS_SC_SCREEN_SCISSOR_TL 0x0000207c
3280 #define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_WINDOW_OFFSET_DISABLE 0x80000000
3281 #define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__MASK 0x00007fff
3282 #define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__SHIFT 0
3283 static inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X(uint32_t val)
3285 return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__MASK;
3287 #define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__MASK 0x7fff0000
3288 #define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__SHIFT 16
3289 static inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y(uint32_t val)
3291 return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__MASK;
3294 #define REG_A4XX_GRAS_SC_SCREEN_SCISSOR_BR 0x0000207d
3295 #define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_WINDOW_OFFSET_DISABLE 0x80000000
3296 #define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__MASK 0x00007fff
3297 #define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__SHIFT 0
3298 static inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X(uint32_t val)
3300 return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__MASK;
3302 #define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__MASK 0x7fff0000
3303 #define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__SHIFT 16
3304 static inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y(uint32_t val)
3306 return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__MASK;
3309 #define REG_A4XX_GRAS_SC_WINDOW_SCISSOR_BR 0x0000209c
3310 #define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_WINDOW_OFFSET_DISABLE 0x80000000
3311 #define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__MASK 0x00007fff
3312 #define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__SHIFT 0
3313 static inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X(uint32_t val)
3315 return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__MASK;
3317 #define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__MASK 0x7fff0000
3318 #define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__SHIFT 16
3319 static inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(uint32_t val)
3321 return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__MASK;
3324 #define REG_A4XX_GRAS_SC_WINDOW_SCISSOR_TL 0x0000209d
3325 #define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_WINDOW_OFFSET_DISABLE 0x80000000
3326 #define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__MASK 0x00007fff
3327 #define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__SHIFT 0
3328 static inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X(uint32_t val)
3330 return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__MASK;
3332 #define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__MASK 0x7fff0000
3333 #define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__SHIFT 16
3334 static inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y(uint32_t val)
3336 return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__MASK;
3339 #define REG_A4XX_GRAS_SC_EXTENT_WINDOW_BR 0x0000209e
3340 #define A4XX_GRAS_SC_EXTENT_WINDOW_BR_WINDOW_OFFSET_DISABLE 0x80000000
3341 #define A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__MASK 0x00007fff
3342 #define A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__SHIFT 0
3343 static inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_BR_X(uint32_t val)
3345 return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__MASK;
3347 #define A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__MASK 0x7fff0000
3348 #define A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__SHIFT 16
3349 static inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y(uint32_t val)
3351 return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__MASK;
3354 #define REG_A4XX_GRAS_SC_EXTENT_WINDOW_TL 0x0000209f
3355 #define A4XX_GRAS_SC_EXTENT_WINDOW_TL_WINDOW_OFFSET_DISABLE 0x80000000
3356 #define A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__MASK 0x00007fff
3357 #define A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__SHIFT 0
3358 static inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_TL_X(uint32_t val)
3360 return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__MASK;
3362 #define A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__MASK 0x7fff0000
3363 #define A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__SHIFT 16
3364 static inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y(uint32_t val)
3366 return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__MASK;
3369 #define REG_A4XX_UCHE_CACHE_MODE_CONTROL 0x00000e80
3371 #define REG_A4XX_UCHE_TRAP_BASE_LO 0x00000e83
3373 #define REG_A4XX_UCHE_TRAP_BASE_HI 0x00000e84
3375 #define REG_A4XX_UCHE_CACHE_STATUS 0x00000e88
3377 #define REG_A4XX_UCHE_INVALIDATE0 0x00000e8a
3379 #define REG_A4XX_UCHE_INVALIDATE1 0x00000e8b
3381 #define REG_A4XX_UCHE_CACHE_WAYS_VFD 0x00000e8c
3383 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_0 0x00000e8e
3385 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_1 0x00000e8f
3387 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_2 0x00000e90
3389 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_3 0x00000e91
3391 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_4 0x00000e92
3393 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_5 0x00000e93
3395 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_6 0x00000e94
3397 #define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_7 0x00000e95
3399 #define REG_A4XX_HLSQ_TIMEOUT_THRESHOLD 0x00000e00
3401 #define REG_A4XX_HLSQ_DEBUG_ECO_CONTROL 0x00000e04
3403 #define REG_A4XX_HLSQ_MODE_CONTROL 0x00000e05
3405 #define REG_A4XX_HLSQ_PERF_PIPE_MASK 0x00000e0e
3407 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_0 0x00000e06
3409 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_1 0x00000e07
3411 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_2 0x00000e08
3413 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_3 0x00000e09
3415 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_4 0x00000e0a
3417 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_5 0x00000e0b
3419 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_6 0x00000e0c
3421 #define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_7 0x00000e0d
3423 #define REG_A4XX_HLSQ_CONTROL_0_REG 0x000023c0
3424 #define A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__MASK 0x00000010
3425 #define A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__SHIFT 4
3426 static inline uint32_t A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE(enum a3xx_threadsize val)
3428 return ((val) << A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__SHIFT) & A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__MASK;
3430 #define A4XX_HLSQ_CONTROL_0_REG_FSSUPERTHREADENABLE 0x00000040
3431 #define A4XX_HLSQ_CONTROL_0_REG_SPSHADERRESTART 0x00000200
3432 #define A4XX_HLSQ_CONTROL_0_REG_RESERVED2 0x00000400
3433 #define A4XX_HLSQ_CONTROL_0_REG_CHUNKDISABLE 0x04000000
3434 #define A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__MASK 0x08000000
3435 #define A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__SHIFT 27
3436 static inline uint32_t A4XX_HLSQ_CONTROL_0_REG_CONSTMODE(uint32_t val)
3438 return ((val) << A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__SHIFT) & A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__MASK;
3440 #define A4XX_HLSQ_CONTROL_0_REG_LAZYUPDATEDISABLE 0x10000000
3441 #define A4XX_HLSQ_CONTROL_0_REG_SPCONSTFULLUPDATE 0x20000000
3442 #define A4XX_HLSQ_CONTROL_0_REG_TPFULLUPDATE 0x40000000
3443 #define A4XX_HLSQ_CONTROL_0_REG_SINGLECONTEXT 0x80000000
3445 #define REG_A4XX_HLSQ_CONTROL_1_REG 0x000023c1
3446 #define A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__MASK 0x00000040
3447 #define A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__SHIFT 6
3448 static inline uint32_t A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE(enum a3xx_threadsize val)
3450 return ((val) << A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__MASK;
3452 #define A4XX_HLSQ_CONTROL_1_REG_VSSUPERTHREADENABLE 0x00000100
3453 #define A4XX_HLSQ_CONTROL_1_REG_RESERVED1 0x00000200
3454 #define A4XX_HLSQ_CONTROL_1_REG_COORDREGID__MASK 0x00ff0000
3455 #define A4XX_HLSQ_CONTROL_1_REG_COORDREGID__SHIFT 16
3456 static inline uint32_t A4XX_HLSQ_CONTROL_1_REG_COORDREGID(uint32_t val)
3458 return ((val) << A4XX_HLSQ_CONTROL_1_REG_COORDREGID__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_COORDREGID__MASK;
3460 #define A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__MASK 0xff000000
3461 #define A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__SHIFT 24
3462 static inline uint32_t A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID(uint32_t val)
3464 return ((val) << A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__MASK;
3467 #define REG_A4XX_HLSQ_CONTROL_2_REG 0x000023c2
3468 #define A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__MASK 0xfc000000
3469 #define A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__SHIFT 26
3470 static inline uint32_t A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD(uint32_t val)
3472 return ((val) << A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__MASK;
3474 #define A4XX_HLSQ_CONTROL_2_REG_FACEREGID__MASK 0x000003fc
3475 #define A4XX_HLSQ_CONTROL_2_REG_FACEREGID__SHIFT 2
3476 static inline uint32_t A4XX_HLSQ_CONTROL_2_REG_FACEREGID(uint32_t val)
3478 return ((val) << A4XX_HLSQ_CONTROL_2_REG_FACEREGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_FACEREGID__MASK;
3480 #define A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__MASK 0x0003fc00
3481 #define A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__SHIFT 10
3482 static inline uint32_t A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID(uint32_t val)
3484 return ((val) << A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__MASK;
3486 #define A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__MASK 0x03fc0000
3487 #define A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__SHIFT 18
3488 static inline uint32_t A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID(uint32_t val)
3490 return ((val) << A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__MASK;
3493 #define REG_A4XX_HLSQ_CONTROL_3_REG 0x000023c3
3494 #define A4XX_HLSQ_CONTROL_3_REG_REGID__MASK 0x000000ff
3495 #define A4XX_HLSQ_CONTROL_3_REG_REGID__SHIFT 0
3496 static inline uint32_t A4XX_HLSQ_CONTROL_3_REG_REGID(uint32_t val)
3498 return ((val) << A4XX_HLSQ_CONTROL_3_REG_REGID__SHIFT) & A4XX_HLSQ_CONTROL_3_REG_REGID__MASK;
3501 #define REG_A4XX_HLSQ_CONTROL_4_REG 0x000023c4
3503 #define REG_A4XX_HLSQ_VS_CONTROL_REG 0x000023c5
3504 #define A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__MASK 0x000000ff
3505 #define A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__SHIFT 0
3506 static inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH(uint32_t val)
3508 return ((val) << A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__MASK;
3510 #define A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__MASK 0x0000ff00
3511 #define A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT 8
3512 static inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
3514 return ((val) << A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
3516 #define A4XX_HLSQ_VS_CONTROL_REG_ENABLED 0x00010000
3517 #define A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__MASK 0x00fe0000
3518 #define A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__SHIFT 17
3519 static inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
3521 return ((val) << A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__MASK;
3523 #define A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__MASK 0xff000000
3524 #define A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__SHIFT 24
3525 static inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH(uint32_t val)
3527 return ((val) << A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__MASK;
3530 #define REG_A4XX_HLSQ_FS_CONTROL_REG 0x000023c6
3531 #define A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__MASK 0x000000ff
3532 #define A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__SHIFT 0
3533 static inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH(uint32_t val)
3535 return ((val) << A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__MASK;
3537 #define A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__MASK 0x0000ff00
3538 #define A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT 8
3539 static inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
3541 return ((val) << A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
3543 #define A4XX_HLSQ_FS_CONTROL_REG_ENABLED 0x00010000
3544 #define A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__MASK 0x00fe0000
3545 #define A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__SHIFT 17
3546 static inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
3548 return ((val) << A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__MASK;
3550 #define A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__MASK 0xff000000
3551 #define A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__SHIFT 24
3552 static inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH(uint32_t val)
3554 return ((val) << A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__MASK;
3557 #define REG_A4XX_HLSQ_HS_CONTROL_REG 0x000023c7
3558 #define A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__MASK 0x000000ff
3559 #define A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__SHIFT 0
3560 static inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH(uint32_t val)
3562 return ((val) << A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__MASK;
3564 #define A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__MASK 0x0000ff00
3565 #define A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT 8
3566 static inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
3568 return ((val) << A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
3570 #define A4XX_HLSQ_HS_CONTROL_REG_ENABLED 0x00010000
3571 #define A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__MASK 0x00fe0000
3572 #define A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__SHIFT 17
3573 static inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
3575 return ((val) << A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__MASK;
3577 #define A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__MASK 0xff000000
3578 #define A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__SHIFT 24
3579 static inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH(uint32_t val)
3581 return ((val) << A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__MASK;
3584 #define REG_A4XX_HLSQ_DS_CONTROL_REG 0x000023c8
3585 #define A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__MASK 0x000000ff
3586 #define A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__SHIFT 0
3587 static inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH(uint32_t val)
3589 return ((val) << A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__MASK;
3591 #define A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__MASK 0x0000ff00
3592 #define A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT 8
3593 static inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
3595 return ((val) << A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
3597 #define A4XX_HLSQ_DS_CONTROL_REG_ENABLED 0x00010000
3598 #define A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__MASK 0x00fe0000
3599 #define A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__SHIFT 17
3600 static inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
3602 return ((val) << A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__MASK;
3604 #define A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__MASK 0xff000000
3605 #define A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__SHIFT 24
3606 static inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH(uint32_t val)
3608 return ((val) << A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__MASK;
3611 #define REG_A4XX_HLSQ_GS_CONTROL_REG 0x000023c9
3612 #define A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__MASK 0x000000ff
3613 #define A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__SHIFT 0
3614 static inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH(uint32_t val)
3616 return ((val) << A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__MASK;
3618 #define A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__MASK 0x0000ff00
3619 #define A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT 8
3620 static inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
3622 return ((val) << A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
3624 #define A4XX_HLSQ_GS_CONTROL_REG_ENABLED 0x00010000
3625 #define A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__MASK 0x00fe0000
3626 #define A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__SHIFT 17
3627 static inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
3629 return ((val) << A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__MASK;
3631 #define A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__MASK 0xff000000
3632 #define A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__SHIFT 24
3633 static inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH(uint32_t val)
3635 return ((val) << A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__MASK;
3638 #define REG_A4XX_HLSQ_CS_CONTROL 0x000023ca
3640 #define REG_A4XX_HLSQ_CL_NDRANGE_0 0x000023cd
3642 #define REG_A4XX_HLSQ_CL_NDRANGE_1 0x000023ce
3644 #define REG_A4XX_HLSQ_CL_NDRANGE_2 0x000023cf
3646 #define REG_A4XX_HLSQ_CL_NDRANGE_3 0x000023d0
3648 #define REG_A4XX_HLSQ_CL_NDRANGE_4 0x000023d1
3650 #define REG_A4XX_HLSQ_CL_NDRANGE_5 0x000023d2
3652 #define REG_A4XX_HLSQ_CL_NDRANGE_6 0x000023d3
3654 #define REG_A4XX_HLSQ_CL_CONTROL_0 0x000023d4
3656 #define REG_A4XX_HLSQ_CL_CONTROL_1 0x000023d5
3658 #define REG_A4XX_HLSQ_CL_KERNEL_CONST 0x000023d6
3660 #define REG_A4XX_HLSQ_CL_KERNEL_GROUP_X 0x000023d7
3662 #define REG_A4XX_HLSQ_CL_KERNEL_GROUP_Y 0x000023d8
3664 #define REG_A4XX_HLSQ_CL_KERNEL_GROUP_Z 0x000023d9
3666 #define REG_A4XX_HLSQ_CL_WG_OFFSET 0x000023da
3668 #define REG_A4XX_HLSQ_UPDATE_CONTROL 0x000023db
3670 #define REG_A4XX_PC_BINNING_COMMAND 0x00000d00
3671 #define A4XX_PC_BINNING_COMMAND_BINNING_ENABLE 0x00000001
3673 #define REG_A4XX_PC_DRAWCALL_SETUP_OVERRIDE 0x00000d0c
3675 #define REG_A4XX_PC_PERFCTR_PC_SEL_0 0x00000d10
3677 #define REG_A4XX_PC_PERFCTR_PC_SEL_1 0x00000d11
3679 #define REG_A4XX_PC_PERFCTR_PC_SEL_2 0x00000d12
3681 #define REG_A4XX_PC_PERFCTR_PC_SEL_3 0x00000d13
3683 #define REG_A4XX_PC_PERFCTR_PC_SEL_4 0x00000d14
3685 #define REG_A4XX_PC_PERFCTR_PC_SEL_5 0x00000d15
3687 #define REG_A4XX_PC_PERFCTR_PC_SEL_6 0x00000d16
3689 #define REG_A4XX_PC_PERFCTR_PC_SEL_7 0x00000d17
3691 #define REG_A4XX_PC_BIN_BASE 0x000021c0
3693 #define REG_A4XX_PC_PRIM_VTX_CNTL 0x000021c4
3694 #define A4XX_PC_PRIM_VTX_CNTL_VAROUT__MASK 0x0000000f
3695 #define A4XX_PC_PRIM_VTX_CNTL_VAROUT__SHIFT 0
3696 static inline uint32_t A4XX_PC_PRIM_VTX_CNTL_VAROUT(uint32_t val)
3698 return ((val) << A4XX_PC_PRIM_VTX_CNTL_VAROUT__SHIFT) & A4XX_PC_PRIM_VTX_CNTL_VAROUT__MASK;
3700 #define A4XX_PC_PRIM_VTX_CNTL_PRIMITIVE_RESTART 0x00100000
3701 #define A4XX_PC_PRIM_VTX_CNTL_PROVOKING_VTX_LAST 0x02000000
3702 #define A4XX_PC_PRIM_VTX_CNTL_PSIZE 0x04000000
3704 #define REG_A4XX_PC_PRIM_VTX_CNTL2 0x000021c5
3705 #define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__MASK 0x00000007
3706 #define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__SHIFT 0
3707 static inline uint32_t A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE(enum adreno_pa_su_sc_draw val)
3709 return ((val) << A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__SHIFT) & A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__MASK;
3711 #define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__MASK 0x00000038
3712 #define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__SHIFT 3
3713 static inline uint32_t A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE(enum adreno_pa_su_sc_draw val)
3715 return ((val) << A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__SHIFT) & A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__MASK;
3717 #define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_ENABLE 0x00000040
3719 #define REG_A4XX_PC_RESTART_INDEX 0x000021c6
3721 #define REG_A4XX_PC_GS_PARAM 0x000021e5
3722 #define A4XX_PC_GS_PARAM_MAX_VERTICES__MASK 0x000003ff
3723 #define A4XX_PC_GS_PARAM_MAX_VERTICES__SHIFT 0
3724 static inline uint32_t A4XX_PC_GS_PARAM_MAX_VERTICES(uint32_t val)
3726 return ((val) << A4XX_PC_GS_PARAM_MAX_VERTICES__SHIFT) & A4XX_PC_GS_PARAM_MAX_VERTICES__MASK;
3728 #define A4XX_PC_GS_PARAM_INVOCATIONS__MASK 0x0000f800
3729 #define A4XX_PC_GS_PARAM_INVOCATIONS__SHIFT 11
3730 static inline uint32_t A4XX_PC_GS_PARAM_INVOCATIONS(uint32_t val)
3732 return ((val) << A4XX_PC_GS_PARAM_INVOCATIONS__SHIFT) & A4XX_PC_GS_PARAM_INVOCATIONS__MASK;
3734 #define A4XX_PC_GS_PARAM_PRIMTYPE__MASK 0x01800000
3735 #define A4XX_PC_GS_PARAM_PRIMTYPE__SHIFT 23
3736 static inline uint32_t A4XX_PC_GS_PARAM_PRIMTYPE(enum adreno_pa_su_sc_draw val)
3738 return ((val) << A4XX_PC_GS_PARAM_PRIMTYPE__SHIFT) & A4XX_PC_GS_PARAM_PRIMTYPE__MASK;
3740 #define A4XX_PC_GS_PARAM_LAYER 0x80000000
3742 #define REG_A4XX_PC_HS_PARAM 0x000021e7
3743 #define A4XX_PC_HS_PARAM_VERTICES_OUT__MASK 0x0000003f
3744 #define A4XX_PC_HS_PARAM_VERTICES_OUT__SHIFT 0
3745 static inline uint32_t A4XX_PC_HS_PARAM_VERTICES_OUT(uint32_t val)
3747 return ((val) << A4XX_PC_HS_PARAM_VERTICES_OUT__SHIFT) & A4XX_PC_HS_PARAM_VERTICES_OUT__MASK;
3749 #define A4XX_PC_HS_PARAM_SPACING__MASK 0x00600000
3750 #define A4XX_PC_HS_PARAM_SPACING__SHIFT 21
3751 static inline uint32_t A4XX_PC_HS_PARAM_SPACING(enum a4xx_tess_spacing val)
3753 return ((val) << A4XX_PC_HS_PARAM_SPACING__SHIFT) & A4XX_PC_HS_PARAM_SPACING__MASK;
3755 #define A4XX_PC_HS_PARAM_PRIMTYPE__MASK 0x01800000
3756 #define A4XX_PC_HS_PARAM_PRIMTYPE__SHIFT 23
3757 static inline uint32_t A4XX_PC_HS_PARAM_PRIMTYPE(enum adreno_pa_su_sc_draw val)
3759 return ((val) << A4XX_PC_HS_PARAM_PRIMTYPE__SHIFT) & A4XX_PC_HS_PARAM_PRIMTYPE__MASK;
3762 #define REG_A4XX_VBIF_VERSION 0x00003000
3764 #define REG_A4XX_VBIF_CLKON 0x00003001
3765 #define A4XX_VBIF_CLKON_FORCE_ON_TESTBUS 0x00000001
3767 #define REG_A4XX_VBIF_ABIT_SORT 0x0000301c
3769 #define REG_A4XX_VBIF_ABIT_SORT_CONF 0x0000301d
3771 #define REG_A4XX_VBIF_GATE_OFF_WRREQ_EN 0x0000302a
3773 #define REG_A4XX_VBIF_IN_RD_LIM_CONF0 0x0000302c
3775 #define REG_A4XX_VBIF_IN_RD_LIM_CONF1 0x0000302d
3777 #define REG_A4XX_VBIF_IN_WR_LIM_CONF0 0x00003030
3779 #define REG_A4XX_VBIF_IN_WR_LIM_CONF1 0x00003031
3781 #define REG_A4XX_VBIF_ROUND_ROBIN_QOS_ARB 0x00003049
3783 #define REG_A4XX_UNKNOWN_0CC5 0x00000cc5
3785 #define REG_A4XX_UNKNOWN_0CC6 0x00000cc6
3787 #define REG_A4XX_UNKNOWN_0D01 0x00000d01
3789 #define REG_A4XX_UNKNOWN_0E42 0x00000e42
3791 #define REG_A4XX_UNKNOWN_0EC2 0x00000ec2
3793 #define REG_A4XX_UNKNOWN_2001 0x00002001
3795 #define REG_A4XX_UNKNOWN_209B 0x0000209b
3797 #define REG_A4XX_UNKNOWN_20EF 0x000020ef
3799 #define REG_A4XX_UNKNOWN_2152 0x00002152
3801 #define REG_A4XX_UNKNOWN_2153 0x00002153
3803 #define REG_A4XX_UNKNOWN_2154 0x00002154
3805 #define REG_A4XX_UNKNOWN_2155 0x00002155
3807 #define REG_A4XX_UNKNOWN_2156 0x00002156
3809 #define REG_A4XX_UNKNOWN_2157 0x00002157
3811 #define REG_A4XX_UNKNOWN_21C3 0x000021c3
3813 #define REG_A4XX_UNKNOWN_21E6 0x000021e6
3815 #define REG_A4XX_UNKNOWN_2209 0x00002209
3817 #define REG_A4XX_UNKNOWN_22D7 0x000022d7
3819 #define REG_A4XX_UNKNOWN_2352 0x00002352
3821 #define REG_A4XX_TEX_SAMP_0 0x00000000
3822 #define A4XX_TEX_SAMP_0_MIPFILTER_LINEAR_NEAR 0x00000001
3823 #define A4XX_TEX_SAMP_0_XY_MAG__MASK 0x00000006
3824 #define A4XX_TEX_SAMP_0_XY_MAG__SHIFT 1
3825 static inline uint32_t A4XX_TEX_SAMP_0_XY_MAG(enum a4xx_tex_filter val)
3827 return ((val) << A4XX_TEX_SAMP_0_XY_MAG__SHIFT) & A4XX_TEX_SAMP_0_XY_MAG__MASK;
3829 #define A4XX_TEX_SAMP_0_XY_MIN__MASK 0x00000018
3830 #define A4XX_TEX_SAMP_0_XY_MIN__SHIFT 3
3831 static inline uint32_t A4XX_TEX_SAMP_0_XY_MIN(enum a4xx_tex_filter val)
3833 return ((val) << A4XX_TEX_SAMP_0_XY_MIN__SHIFT) & A4XX_TEX_SAMP_0_XY_MIN__MASK;
3835 #define A4XX_TEX_SAMP_0_WRAP_S__MASK 0x000000e0
3836 #define A4XX_TEX_SAMP_0_WRAP_S__SHIFT 5
3837 static inline uint32_t A4XX_TEX_SAMP_0_WRAP_S(enum a4xx_tex_clamp val)
3839 return ((val) << A4XX_TEX_SAMP_0_WRAP_S__SHIFT) & A4XX_TEX_SAMP_0_WRAP_S__MASK;
3841 #define A4XX_TEX_SAMP_0_WRAP_T__MASK 0x00000700
3842 #define A4XX_TEX_SAMP_0_WRAP_T__SHIFT 8
3843 static inline uint32_t A4XX_TEX_SAMP_0_WRAP_T(enum a4xx_tex_clamp val)
3845 return ((val) << A4XX_TEX_SAMP_0_WRAP_T__SHIFT) & A4XX_TEX_SAMP_0_WRAP_T__MASK;
3847 #define A4XX_TEX_SAMP_0_WRAP_R__MASK 0x00003800
3848 #define A4XX_TEX_SAMP_0_WRAP_R__SHIFT 11
3849 static inline uint32_t A4XX_TEX_SAMP_0_WRAP_R(enum a4xx_tex_clamp val)
3851 return ((val) << A4XX_TEX_SAMP_0_WRAP_R__SHIFT) & A4XX_TEX_SAMP_0_WRAP_R__MASK;
3853 #define A4XX_TEX_SAMP_0_ANISO__MASK 0x0001c000
3854 #define A4XX_TEX_SAMP_0_ANISO__SHIFT 14
3855 static inline uint32_t A4XX_TEX_SAMP_0_ANISO(enum a4xx_tex_aniso val)
3857 return ((val) << A4XX_TEX_SAMP_0_ANISO__SHIFT) & A4XX_TEX_SAMP_0_ANISO__MASK;
3859 #define A4XX_TEX_SAMP_0_LOD_BIAS__MASK 0xfff80000
3860 #define A4XX_TEX_SAMP_0_LOD_BIAS__SHIFT 19
3861 static inline uint32_t A4XX_TEX_SAMP_0_LOD_BIAS(float val)
3863 return ((((int32_t)(val * 256.0))) << A4XX_TEX_SAMP_0_LOD_BIAS__SHIFT) & A4XX_TEX_SAMP_0_LOD_BIAS__MASK;
3866 #define REG_A4XX_TEX_SAMP_1 0x00000001
3867 #define A4XX_TEX_SAMP_1_COMPARE_FUNC__MASK 0x0000000e
3868 #define A4XX_TEX_SAMP_1_COMPARE_FUNC__SHIFT 1
3869 static inline uint32_t A4XX_TEX_SAMP_1_COMPARE_FUNC(enum adreno_compare_func val)
3871 return ((val) << A4XX_TEX_SAMP_1_COMPARE_FUNC__SHIFT) & A4XX_TEX_SAMP_1_COMPARE_FUNC__MASK;
3873 #define A4XX_TEX_SAMP_1_CUBEMAPSEAMLESSFILTOFF 0x00000010
3874 #define A4XX_TEX_SAMP_1_UNNORM_COORDS 0x00000020
3875 #define A4XX_TEX_SAMP_1_MIPFILTER_LINEAR_FAR 0x00000040
3876 #define A4XX_TEX_SAMP_1_MAX_LOD__MASK 0x000fff00
3877 #define A4XX_TEX_SAMP_1_MAX_LOD__SHIFT 8
3878 static inline uint32_t A4XX_TEX_SAMP_1_MAX_LOD(float val)
3880 return ((((uint32_t)(val * 256.0))) << A4XX_TEX_SAMP_1_MAX_LOD__SHIFT) & A4XX_TEX_SAMP_1_MAX_LOD__MASK;
3882 #define A4XX_TEX_SAMP_1_MIN_LOD__MASK 0xfff00000
3883 #define A4XX_TEX_SAMP_1_MIN_LOD__SHIFT 20
3884 static inline uint32_t A4XX_TEX_SAMP_1_MIN_LOD(float val)
3886 return ((((uint32_t)(val * 256.0))) << A4XX_TEX_SAMP_1_MIN_LOD__SHIFT) & A4XX_TEX_SAMP_1_MIN_LOD__MASK;
3889 #define REG_A4XX_TEX_CONST_0 0x00000000
3890 #define A4XX_TEX_CONST_0_TILED 0x00000001
3891 #define A4XX_TEX_CONST_0_SRGB 0x00000004
3892 #define A4XX_TEX_CONST_0_SWIZ_X__MASK 0x00000070
3893 #define A4XX_TEX_CONST_0_SWIZ_X__SHIFT 4
3894 static inline uint32_t A4XX_TEX_CONST_0_SWIZ_X(enum a4xx_tex_swiz val)
3896 return ((val) << A4XX_TEX_CONST_0_SWIZ_X__SHIFT) & A4XX_TEX_CONST_0_SWIZ_X__MASK;
3898 #define A4XX_TEX_CONST_0_SWIZ_Y__MASK 0x00000380
3899 #define A4XX_TEX_CONST_0_SWIZ_Y__SHIFT 7
3900 static inline uint32_t A4XX_TEX_CONST_0_SWIZ_Y(enum a4xx_tex_swiz val)
3902 return ((val) << A4XX_TEX_CONST_0_SWIZ_Y__SHIFT) & A4XX_TEX_CONST_0_SWIZ_Y__MASK;
3904 #define A4XX_TEX_CONST_0_SWIZ_Z__MASK 0x00001c00
3905 #define A4XX_TEX_CONST_0_SWIZ_Z__SHIFT 10
3906 static inline uint32_t A4XX_TEX_CONST_0_SWIZ_Z(enum a4xx_tex_swiz val)
3908 return ((val) << A4XX_TEX_CONST_0_SWIZ_Z__SHIFT) & A4XX_TEX_CONST_0_SWIZ_Z__MASK;
3910 #define A4XX_TEX_CONST_0_SWIZ_W__MASK 0x0000e000
3911 #define A4XX_TEX_CONST_0_SWIZ_W__SHIFT 13
3912 static inline uint32_t A4XX_TEX_CONST_0_SWIZ_W(enum a4xx_tex_swiz val)
3914 return ((val) << A4XX_TEX_CONST_0_SWIZ_W__SHIFT) & A4XX_TEX_CONST_0_SWIZ_W__MASK;
3916 #define A4XX_TEX_CONST_0_MIPLVLS__MASK 0x000f0000
3917 #define A4XX_TEX_CONST_0_MIPLVLS__SHIFT 16
3918 static inline uint32_t A4XX_TEX_CONST_0_MIPLVLS(uint32_t val)
3920 return ((val) << A4XX_TEX_CONST_0_MIPLVLS__SHIFT) & A4XX_TEX_CONST_0_MIPLVLS__MASK;
3922 #define A4XX_TEX_CONST_0_FMT__MASK 0x1fc00000
3923 #define A4XX_TEX_CONST_0_FMT__SHIFT 22
3924 static inline uint32_t A4XX_TEX_CONST_0_FMT(enum a4xx_tex_fmt val)
3926 return ((val) << A4XX_TEX_CONST_0_FMT__SHIFT) & A4XX_TEX_CONST_0_FMT__MASK;
3928 #define A4XX_TEX_CONST_0_TYPE__MASK 0x60000000
3929 #define A4XX_TEX_CONST_0_TYPE__SHIFT 29
3930 static inline uint32_t A4XX_TEX_CONST_0_TYPE(enum a4xx_tex_type val)
3932 return ((val) << A4XX_TEX_CONST_0_TYPE__SHIFT) & A4XX_TEX_CONST_0_TYPE__MASK;
3935 #define REG_A4XX_TEX_CONST_1 0x00000001
3936 #define A4XX_TEX_CONST_1_HEIGHT__MASK 0x00007fff
3937 #define A4XX_TEX_CONST_1_HEIGHT__SHIFT 0
3938 static inline uint32_t A4XX_TEX_CONST_1_HEIGHT(uint32_t val)
3940 return ((val) << A4XX_TEX_CONST_1_HEIGHT__SHIFT) & A4XX_TEX_CONST_1_HEIGHT__MASK;
3942 #define A4XX_TEX_CONST_1_WIDTH__MASK 0x3fff8000
3943 #define A4XX_TEX_CONST_1_WIDTH__SHIFT 15
3944 static inline uint32_t A4XX_TEX_CONST_1_WIDTH(uint32_t val)
3946 return ((val) << A4XX_TEX_CONST_1_WIDTH__SHIFT) & A4XX_TEX_CONST_1_WIDTH__MASK;
3949 #define REG_A4XX_TEX_CONST_2 0x00000002
3950 #define A4XX_TEX_CONST_2_FETCHSIZE__MASK 0x0000000f
3951 #define A4XX_TEX_CONST_2_FETCHSIZE__SHIFT 0
3952 static inline uint32_t A4XX_TEX_CONST_2_FETCHSIZE(enum a4xx_tex_fetchsize val)
3954 return ((val) << A4XX_TEX_CONST_2_FETCHSIZE__SHIFT) & A4XX_TEX_CONST_2_FETCHSIZE__MASK;
3956 #define A4XX_TEX_CONST_2_PITCH__MASK 0x3ffffe00
3957 #define A4XX_TEX_CONST_2_PITCH__SHIFT 9
3958 static inline uint32_t A4XX_TEX_CONST_2_PITCH(uint32_t val)
3960 return ((val) << A4XX_TEX_CONST_2_PITCH__SHIFT) & A4XX_TEX_CONST_2_PITCH__MASK;
3962 #define A4XX_TEX_CONST_2_SWAP__MASK 0xc0000000
3963 #define A4XX_TEX_CONST_2_SWAP__SHIFT 30
3964 static inline uint32_t A4XX_TEX_CONST_2_SWAP(enum a3xx_color_swap val)
3966 return ((val) << A4XX_TEX_CONST_2_SWAP__SHIFT) & A4XX_TEX_CONST_2_SWAP__MASK;
3969 #define REG_A4XX_TEX_CONST_3 0x00000003
3970 #define A4XX_TEX_CONST_3_LAYERSZ__MASK 0x00003fff
3971 #define A4XX_TEX_CONST_3_LAYERSZ__SHIFT 0
3972 static inline uint32_t A4XX_TEX_CONST_3_LAYERSZ(uint32_t val)
3974 return ((val >> 12) << A4XX_TEX_CONST_3_LAYERSZ__SHIFT) & A4XX_TEX_CONST_3_LAYERSZ__MASK;
3976 #define A4XX_TEX_CONST_3_DEPTH__MASK 0x7ffc0000
3977 #define A4XX_TEX_CONST_3_DEPTH__SHIFT 18
3978 static inline uint32_t A4XX_TEX_CONST_3_DEPTH(uint32_t val)
3980 return ((val) << A4XX_TEX_CONST_3_DEPTH__SHIFT) & A4XX_TEX_CONST_3_DEPTH__MASK;
3983 #define REG_A4XX_TEX_CONST_4 0x00000004
3984 #define A4XX_TEX_CONST_4_LAYERSZ__MASK 0x0000000f
3985 #define A4XX_TEX_CONST_4_LAYERSZ__SHIFT 0
3986 static inline uint32_t A4XX_TEX_CONST_4_LAYERSZ(uint32_t val)
3988 return ((val >> 12) << A4XX_TEX_CONST_4_LAYERSZ__SHIFT) & A4XX_TEX_CONST_4_LAYERSZ__MASK;
3990 #define A4XX_TEX_CONST_4_BASE__MASK 0xffffffe0
3991 #define A4XX_TEX_CONST_4_BASE__SHIFT 5
3992 static inline uint32_t A4XX_TEX_CONST_4_BASE(uint32_t val)
3994 return ((val >> 5) << A4XX_TEX_CONST_4_BASE__SHIFT) & A4XX_TEX_CONST_4_BASE__MASK;
3997 #define REG_A4XX_TEX_CONST_5 0x00000005
3999 #define REG_A4XX_TEX_CONST_6 0x00000006
4001 #define REG_A4XX_TEX_CONST_7 0x00000007
4004 #endif /* A4XX_XML */