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 ( 364 bytes, from 2013-11-30 14:47:15)
12 - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1453 bytes, from 2013-03-31 16:51:27)
13 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a2xx.xml ( 32901 bytes, from 2014-06-02 15:21:30)
14 - /home/robclark/src/freedreno/envytools/rnndb/adreno/adreno_common.xml ( 10551 bytes, from 2014-11-13 22:44:30)
15 - /home/robclark/src/freedreno/envytools/rnndb/adreno/adreno_pm4.xml ( 15085 bytes, from 2014-12-20 21:49:41)
16 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a3xx.xml ( 64344 bytes, from 2014-12-12 20:22:26)
17 - /home/robclark/src/freedreno/envytools/rnndb/adreno/a4xx.xml ( 51069 bytes, from 2014-12-21 15:51:54)
19 Copyright (C) 2013-2014 by the following authors:
20 - Rob Clark <robdclark@gmail.com> (robclark)
22 Permission is hereby granted, free of charge, to any person obtaining
23 a copy of this software and associated documentation files (the
24 "Software"), to deal in the Software without restriction, including
25 without limitation the rights to use, copy, modify, merge, publish,
26 distribute, sublicense, and/or sell copies of the Software, and to
27 permit persons to whom the Software is furnished to do so, subject to
28 the following conditions:
30 The above copyright notice and this permission notice (including the
31 next paragraph) shall be included in all copies or substantial
32 portions of the Software.
34 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
37 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
38 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
39 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
40 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44 enum a2xx_rb_dither_type
{
49 enum a2xx_colorformatx
{
58 COLORX_16_16_FLOAT
= 8,
59 COLORX_16_16_16_16_FLOAT
= 9,
61 COLORX_32_32_FLOAT
= 11,
62 COLORX_32_32_32_32_FLOAT
= 12,
67 enum a2xx_sq_surfaceformat
{
95 FMT_16_16_EXPAND
= 28,
96 FMT_16_16_16_16_EXPAND
= 29,
99 FMT_16_16_16_16_FLOAT
= 32,
102 FMT_32_32_32_32
= 35,
104 FMT_32_32_FLOAT
= 37,
105 FMT_32_32_32_32_FLOAT
= 38,
110 FMT_8_INTERLACED
= 43,
111 FMT_32_AS_8_INTERLACED
= 44,
112 FMT_32_AS_8_8_INTERLACED
= 45,
113 FMT_16_INTERLACED
= 46,
114 FMT_16_MPEG_INTERLACED
= 47,
115 FMT_16_16_MPEG_INTERLACED
= 48,
117 FMT_8_8_8_8_AS_16_16_16_16
= 50,
118 FMT_DXT1_AS_16_16_16_16
= 51,
119 FMT_DXT2_3_AS_16_16_16_16
= 52,
120 FMT_DXT4_5_AS_16_16_16_16
= 53,
121 FMT_2_10_10_10_AS_16_16_16_16
= 54,
122 FMT_10_11_11_AS_16_16_16_16
= 55,
123 FMT_11_11_10_AS_16_16_16_16
= 56,
124 FMT_32_32_32_FLOAT
= 57,
128 FMT_DXT3A_AS_1_1_1_1
= 61,
131 enum a2xx_sq_ps_vtx_mode
{
132 POSITION_1_VECTOR
= 0,
133 POSITION_2_VECTORS_UNUSED
= 1,
134 POSITION_2_VECTORS_SPRITE
= 2,
135 POSITION_2_VECTORS_EDGE
= 3,
136 POSITION_2_VECTORS_KILL
= 4,
137 POSITION_2_VECTORS_SPRITE_KILL
= 5,
138 POSITION_2_VECTORS_EDGE_KILL
= 6,
142 enum a2xx_sq_sample_cntl
{
145 CENTROIDS_AND_CENTERS
= 2,
148 enum a2xx_dx_clip_space
{
153 enum a2xx_pa_su_sc_polymode
{
158 enum a2xx_rb_edram_mode
{
165 enum a2xx_pa_sc_pattern_bit_order
{
170 enum a2xx_pa_sc_auto_reset_cntl
{
176 enum a2xx_pa_pixcenter
{
181 enum a2xx_pa_roundmode
{
188 enum a2xx_pa_quantmode
{
196 enum a2xx_rb_copy_sample_select
{
206 enum a2xx_rb_blend_opcode
{
207 BLEND_DST_PLUS_SRC
= 0,
208 BLEND_SRC_MINUS_DST
= 1,
209 BLEND_MIN_DST_SRC
= 2,
210 BLEND_MAX_DST_SRC
= 3,
211 BLEND_DST_MINUS_SRC
= 4,
212 BLEND_DST_PLUS_SRC_BIAS
= 5,
215 enum adreno_mmu_clnt_beh
{
224 SQ_TEX_CLAMP_LAST_TEXEL
= 2,
225 SQ_TEX_MIRROR_ONCE_LAST_TEXEL
= 3,
226 SQ_TEX_CLAMP_HALF_BORDER
= 4,
227 SQ_TEX_MIRROR_ONCE_HALF_BORDER
= 5,
228 SQ_TEX_CLAMP_BORDER
= 6,
229 SQ_TEX_MIRROR_ONCE_BORDER
= 7,
242 SQ_TEX_FILTER_POINT
= 0,
243 SQ_TEX_FILTER_BILINEAR
= 1,
244 SQ_TEX_FILTER_BICUBIC
= 2,
247 #define REG_A2XX_RBBM_PATCH_RELEASE 0x00000001
249 #define REG_A2XX_RBBM_CNTL 0x0000003b
251 #define REG_A2XX_RBBM_SOFT_RESET 0x0000003c
253 #define REG_A2XX_CP_PFP_UCODE_ADDR 0x000000c0
255 #define REG_A2XX_CP_PFP_UCODE_DATA 0x000000c1
257 #define REG_A2XX_MH_MMU_CONFIG 0x00000040
258 #define A2XX_MH_MMU_CONFIG_MMU_ENABLE 0x00000001
259 #define A2XX_MH_MMU_CONFIG_SPLIT_MODE_ENABLE 0x00000002
260 #define A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR__MASK 0x00000030
261 #define A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR__SHIFT 4
262 static inline uint32_t A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
264 return ((val
) << A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR__MASK
;
266 #define A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR__MASK 0x000000c0
267 #define A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR__SHIFT 6
268 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
270 return ((val
) << A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR__MASK
;
272 #define A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR__MASK 0x00000300
273 #define A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR__SHIFT 8
274 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
276 return ((val
) << A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR__MASK
;
278 #define A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR__MASK 0x00000c00
279 #define A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR__SHIFT 10
280 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
282 return ((val
) << A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR__MASK
;
284 #define A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR__MASK 0x00003000
285 #define A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR__SHIFT 12
286 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
288 return ((val
) << A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR__MASK
;
290 #define A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR__MASK 0x0000c000
291 #define A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR__SHIFT 14
292 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
294 return ((val
) << A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR__MASK
;
296 #define A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR__MASK 0x00030000
297 #define A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR__SHIFT 16
298 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
300 return ((val
) << A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR__MASK
;
302 #define A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR__MASK 0x000c0000
303 #define A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR__SHIFT 18
304 static inline uint32_t A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
306 return ((val
) << A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR__MASK
;
308 #define A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR__MASK 0x00300000
309 #define A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR__SHIFT 20
310 static inline uint32_t A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
312 return ((val
) << A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR__MASK
;
314 #define A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR__MASK 0x00c00000
315 #define A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR__SHIFT 22
316 static inline uint32_t A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
318 return ((val
) << A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR__MASK
;
320 #define A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR__MASK 0x03000000
321 #define A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR__SHIFT 24
322 static inline uint32_t A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val
)
324 return ((val
) << A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR__SHIFT
) & A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR__MASK
;
327 #define REG_A2XX_MH_MMU_VA_RANGE 0x00000041
329 #define REG_A2XX_MH_MMU_PT_BASE 0x00000042
331 #define REG_A2XX_MH_MMU_PAGE_FAULT 0x00000043
333 #define REG_A2XX_MH_MMU_TRAN_ERROR 0x00000044
335 #define REG_A2XX_MH_MMU_INVALIDATE 0x00000045
337 #define REG_A2XX_MH_MMU_MPU_BASE 0x00000046
339 #define REG_A2XX_MH_MMU_MPU_END 0x00000047
341 #define REG_A2XX_NQWAIT_UNTIL 0x00000394
343 #define REG_A2XX_RBBM_PERFCOUNTER1_SELECT 0x00000395
345 #define REG_A2XX_RBBM_PERFCOUNTER1_LO 0x00000397
347 #define REG_A2XX_RBBM_PERFCOUNTER1_HI 0x00000398
349 #define REG_A2XX_RBBM_DEBUG 0x0000039b
351 #define REG_A2XX_RBBM_PM_OVERRIDE1 0x0000039c
353 #define REG_A2XX_RBBM_PM_OVERRIDE2 0x0000039d
355 #define REG_A2XX_RBBM_DEBUG_OUT 0x000003a0
357 #define REG_A2XX_RBBM_DEBUG_CNTL 0x000003a1
359 #define REG_A2XX_RBBM_READ_ERROR 0x000003b3
361 #define REG_A2XX_RBBM_INT_CNTL 0x000003b4
363 #define REG_A2XX_RBBM_INT_STATUS 0x000003b5
365 #define REG_A2XX_RBBM_INT_ACK 0x000003b6
367 #define REG_A2XX_MASTER_INT_SIGNAL 0x000003b7
369 #define REG_A2XX_RBBM_PERIPHID1 0x000003f9
371 #define REG_A2XX_RBBM_PERIPHID2 0x000003fa
373 #define REG_A2XX_CP_PERFMON_CNTL 0x00000444
375 #define REG_A2XX_CP_PERFCOUNTER_SELECT 0x00000445
377 #define REG_A2XX_CP_PERFCOUNTER_LO 0x00000446
379 #define REG_A2XX_CP_PERFCOUNTER_HI 0x00000447
381 #define REG_A2XX_RBBM_STATUS 0x000005d0
382 #define A2XX_RBBM_STATUS_CMDFIFO_AVAIL__MASK 0x0000001f
383 #define A2XX_RBBM_STATUS_CMDFIFO_AVAIL__SHIFT 0
384 static inline uint32_t A2XX_RBBM_STATUS_CMDFIFO_AVAIL(uint32_t val
)
386 return ((val
) << A2XX_RBBM_STATUS_CMDFIFO_AVAIL__SHIFT
) & A2XX_RBBM_STATUS_CMDFIFO_AVAIL__MASK
;
388 #define A2XX_RBBM_STATUS_TC_BUSY 0x00000020
389 #define A2XX_RBBM_STATUS_HIRQ_PENDING 0x00000100
390 #define A2XX_RBBM_STATUS_CPRQ_PENDING 0x00000200
391 #define A2XX_RBBM_STATUS_CFRQ_PENDING 0x00000400
392 #define A2XX_RBBM_STATUS_PFRQ_PENDING 0x00000800
393 #define A2XX_RBBM_STATUS_VGT_BUSY_NO_DMA 0x00001000
394 #define A2XX_RBBM_STATUS_RBBM_WU_BUSY 0x00004000
395 #define A2XX_RBBM_STATUS_CP_NRT_BUSY 0x00010000
396 #define A2XX_RBBM_STATUS_MH_BUSY 0x00040000
397 #define A2XX_RBBM_STATUS_MH_COHERENCY_BUSY 0x00080000
398 #define A2XX_RBBM_STATUS_SX_BUSY 0x00200000
399 #define A2XX_RBBM_STATUS_TPC_BUSY 0x00400000
400 #define A2XX_RBBM_STATUS_SC_CNTX_BUSY 0x01000000
401 #define A2XX_RBBM_STATUS_PA_BUSY 0x02000000
402 #define A2XX_RBBM_STATUS_VGT_BUSY 0x04000000
403 #define A2XX_RBBM_STATUS_SQ_CNTX17_BUSY 0x08000000
404 #define A2XX_RBBM_STATUS_SQ_CNTX0_BUSY 0x10000000
405 #define A2XX_RBBM_STATUS_RB_CNTX_BUSY 0x40000000
406 #define A2XX_RBBM_STATUS_GUI_ACTIVE 0x80000000
408 #define REG_A2XX_MH_ARBITER_CONFIG 0x00000a40
409 #define A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT__MASK 0x0000003f
410 #define A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT__SHIFT 0
411 static inline uint32_t A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT(uint32_t val
)
413 return ((val
) << A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT__SHIFT
) & A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT__MASK
;
415 #define A2XX_MH_ARBITER_CONFIG_SAME_PAGE_GRANULARITY 0x00000040
416 #define A2XX_MH_ARBITER_CONFIG_L1_ARB_ENABLE 0x00000080
417 #define A2XX_MH_ARBITER_CONFIG_L1_ARB_HOLD_ENABLE 0x00000100
418 #define A2XX_MH_ARBITER_CONFIG_L2_ARB_CONTROL 0x00000200
419 #define A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__MASK 0x00001c00
420 #define A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__SHIFT 10
421 static inline uint32_t A2XX_MH_ARBITER_CONFIG_PAGE_SIZE(uint32_t val
)
423 return ((val
) << A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__SHIFT
) & A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__MASK
;
425 #define A2XX_MH_ARBITER_CONFIG_TC_REORDER_ENABLE 0x00002000
426 #define A2XX_MH_ARBITER_CONFIG_TC_ARB_HOLD_ENABLE 0x00004000
427 #define A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT_ENABLE 0x00008000
428 #define A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT__MASK 0x003f0000
429 #define A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT__SHIFT 16
430 static inline uint32_t A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT(uint32_t val
)
432 return ((val
) << A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT__SHIFT
) & A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT__MASK
;
434 #define A2XX_MH_ARBITER_CONFIG_CP_CLNT_ENABLE 0x00400000
435 #define A2XX_MH_ARBITER_CONFIG_VGT_CLNT_ENABLE 0x00800000
436 #define A2XX_MH_ARBITER_CONFIG_TC_CLNT_ENABLE 0x01000000
437 #define A2XX_MH_ARBITER_CONFIG_RB_CLNT_ENABLE 0x02000000
438 #define A2XX_MH_ARBITER_CONFIG_PA_CLNT_ENABLE 0x04000000
440 #define REG_A2XX_A220_VSC_BIN_SIZE 0x00000c01
441 #define A2XX_A220_VSC_BIN_SIZE_WIDTH__MASK 0x0000001f
442 #define A2XX_A220_VSC_BIN_SIZE_WIDTH__SHIFT 0
443 static inline uint32_t A2XX_A220_VSC_BIN_SIZE_WIDTH(uint32_t val
)
445 return ((val
>> 5) << A2XX_A220_VSC_BIN_SIZE_WIDTH__SHIFT
) & A2XX_A220_VSC_BIN_SIZE_WIDTH__MASK
;
447 #define A2XX_A220_VSC_BIN_SIZE_HEIGHT__MASK 0x000003e0
448 #define A2XX_A220_VSC_BIN_SIZE_HEIGHT__SHIFT 5
449 static inline uint32_t A2XX_A220_VSC_BIN_SIZE_HEIGHT(uint32_t val
)
451 return ((val
>> 5) << A2XX_A220_VSC_BIN_SIZE_HEIGHT__SHIFT
) & A2XX_A220_VSC_BIN_SIZE_HEIGHT__MASK
;
454 static inline uint32_t REG_A2XX_VSC_PIPE(uint32_t i0
) { return 0x00000c06 + 0x3*i0
; }
456 static inline uint32_t REG_A2XX_VSC_PIPE_CONFIG(uint32_t i0
) { return 0x00000c06 + 0x3*i0
; }
458 static inline uint32_t REG_A2XX_VSC_PIPE_DATA_ADDRESS(uint32_t i0
) { return 0x00000c07 + 0x3*i0
; }
460 static inline uint32_t REG_A2XX_VSC_PIPE_DATA_LENGTH(uint32_t i0
) { return 0x00000c08 + 0x3*i0
; }
462 #define REG_A2XX_PC_DEBUG_CNTL 0x00000c38
464 #define REG_A2XX_PC_DEBUG_DATA 0x00000c39
466 #define REG_A2XX_PA_SC_VIZ_QUERY_STATUS 0x00000c44
468 #define REG_A2XX_GRAS_DEBUG_CNTL 0x00000c80
470 #define REG_A2XX_PA_SU_DEBUG_CNTL 0x00000c80
472 #define REG_A2XX_GRAS_DEBUG_DATA 0x00000c81
474 #define REG_A2XX_PA_SU_DEBUG_DATA 0x00000c81
476 #define REG_A2XX_PA_SU_FACE_DATA 0x00000c86
478 #define REG_A2XX_SQ_GPR_MANAGEMENT 0x00000d00
480 #define REG_A2XX_SQ_FLOW_CONTROL 0x00000d01
482 #define REG_A2XX_SQ_INST_STORE_MANAGMENT 0x00000d02
484 #define REG_A2XX_SQ_DEBUG_MISC 0x00000d05
486 #define REG_A2XX_SQ_INT_CNTL 0x00000d34
488 #define REG_A2XX_SQ_INT_STATUS 0x00000d35
490 #define REG_A2XX_SQ_INT_ACK 0x00000d36
492 #define REG_A2XX_SQ_DEBUG_INPUT_FSM 0x00000dae
494 #define REG_A2XX_SQ_DEBUG_CONST_MGR_FSM 0x00000daf
496 #define REG_A2XX_SQ_DEBUG_TP_FSM 0x00000db0
498 #define REG_A2XX_SQ_DEBUG_FSM_ALU_0 0x00000db1
500 #define REG_A2XX_SQ_DEBUG_FSM_ALU_1 0x00000db2
502 #define REG_A2XX_SQ_DEBUG_EXP_ALLOC 0x00000db3
504 #define REG_A2XX_SQ_DEBUG_PTR_BUFF 0x00000db4
506 #define REG_A2XX_SQ_DEBUG_GPR_VTX 0x00000db5
508 #define REG_A2XX_SQ_DEBUG_GPR_PIX 0x00000db6
510 #define REG_A2XX_SQ_DEBUG_TB_STATUS_SEL 0x00000db7
512 #define REG_A2XX_SQ_DEBUG_VTX_TB_0 0x00000db8
514 #define REG_A2XX_SQ_DEBUG_VTX_TB_1 0x00000db9
516 #define REG_A2XX_SQ_DEBUG_VTX_TB_STATUS_REG 0x00000dba
518 #define REG_A2XX_SQ_DEBUG_VTX_TB_STATE_MEM 0x00000dbb
520 #define REG_A2XX_SQ_DEBUG_PIX_TB_0 0x00000dbc
522 #define REG_A2XX_SQ_DEBUG_PIX_TB_STATUS_REG_0 0x00000dbd
524 #define REG_A2XX_SQ_DEBUG_PIX_TB_STATUS_REG_1 0x00000dbe
526 #define REG_A2XX_SQ_DEBUG_PIX_TB_STATUS_REG_2 0x00000dbf
528 #define REG_A2XX_SQ_DEBUG_PIX_TB_STATUS_REG_3 0x00000dc0
530 #define REG_A2XX_SQ_DEBUG_PIX_TB_STATE_MEM 0x00000dc1
532 #define REG_A2XX_TC_CNTL_STATUS 0x00000e00
533 #define A2XX_TC_CNTL_STATUS_L2_INVALIDATE 0x00000001
535 #define REG_A2XX_TP0_CHICKEN 0x00000e1e
537 #define REG_A2XX_RB_BC_CONTROL 0x00000f01
538 #define A2XX_RB_BC_CONTROL_ACCUM_LINEAR_MODE_ENABLE 0x00000001
539 #define A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT__MASK 0x00000006
540 #define A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT__SHIFT 1
541 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT(uint32_t val
)
543 return ((val
) << A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT__SHIFT
) & A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT__MASK
;
545 #define A2XX_RB_BC_CONTROL_DISABLE_EDRAM_CAM 0x00000008
546 #define A2XX_RB_BC_CONTROL_DISABLE_EZ_FAST_CONTEXT_SWITCH 0x00000010
547 #define A2XX_RB_BC_CONTROL_DISABLE_EZ_NULL_ZCMD_DROP 0x00000020
548 #define A2XX_RB_BC_CONTROL_DISABLE_LZ_NULL_ZCMD_DROP 0x00000040
549 #define A2XX_RB_BC_CONTROL_ENABLE_AZ_THROTTLE 0x00000080
550 #define A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT__MASK 0x00001f00
551 #define A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT__SHIFT 8
552 static inline uint32_t A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT(uint32_t val
)
554 return ((val
) << A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT__SHIFT
) & A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT__MASK
;
556 #define A2XX_RB_BC_CONTROL_ENABLE_CRC_UPDATE 0x00004000
557 #define A2XX_RB_BC_CONTROL_CRC_MODE 0x00008000
558 #define A2XX_RB_BC_CONTROL_DISABLE_SAMPLE_COUNTERS 0x00010000
559 #define A2XX_RB_BC_CONTROL_DISABLE_ACCUM 0x00020000
560 #define A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK__MASK 0x003c0000
561 #define A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK__SHIFT 18
562 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK(uint32_t val
)
564 return ((val
) << A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK__SHIFT
) & A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK__MASK
;
566 #define A2XX_RB_BC_CONTROL_LINEAR_PERFORMANCE_ENABLE 0x00400000
567 #define A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT__MASK 0x07800000
568 #define A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT__SHIFT 23
569 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT(uint32_t val
)
571 return ((val
) << A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT__SHIFT
) & A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT__MASK
;
573 #define A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT__MASK 0x18000000
574 #define A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT__SHIFT 27
575 static inline uint32_t A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT(uint32_t val
)
577 return ((val
) << A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT__SHIFT
) & A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT__MASK
;
579 #define A2XX_RB_BC_CONTROL_MEM_EXPORT_LINEAR_MODE_ENABLE 0x20000000
580 #define A2XX_RB_BC_CONTROL_CRC_SYSTEM 0x40000000
581 #define A2XX_RB_BC_CONTROL_RESERVED6 0x80000000
583 #define REG_A2XX_RB_EDRAM_INFO 0x00000f02
585 #define REG_A2XX_RB_DEBUG_CNTL 0x00000f26
587 #define REG_A2XX_RB_DEBUG_DATA 0x00000f27
589 #define REG_A2XX_RB_SURFACE_INFO 0x00002000
591 #define REG_A2XX_RB_COLOR_INFO 0x00002001
592 #define A2XX_RB_COLOR_INFO_FORMAT__MASK 0x0000000f
593 #define A2XX_RB_COLOR_INFO_FORMAT__SHIFT 0
594 static inline uint32_t A2XX_RB_COLOR_INFO_FORMAT(enum a2xx_colorformatx val
)
596 return ((val
) << A2XX_RB_COLOR_INFO_FORMAT__SHIFT
) & A2XX_RB_COLOR_INFO_FORMAT__MASK
;
598 #define A2XX_RB_COLOR_INFO_ROUND_MODE__MASK 0x00000030
599 #define A2XX_RB_COLOR_INFO_ROUND_MODE__SHIFT 4
600 static inline uint32_t A2XX_RB_COLOR_INFO_ROUND_MODE(uint32_t val
)
602 return ((val
) << A2XX_RB_COLOR_INFO_ROUND_MODE__SHIFT
) & A2XX_RB_COLOR_INFO_ROUND_MODE__MASK
;
604 #define A2XX_RB_COLOR_INFO_LINEAR 0x00000040
605 #define A2XX_RB_COLOR_INFO_ENDIAN__MASK 0x00000180
606 #define A2XX_RB_COLOR_INFO_ENDIAN__SHIFT 7
607 static inline uint32_t A2XX_RB_COLOR_INFO_ENDIAN(uint32_t val
)
609 return ((val
) << A2XX_RB_COLOR_INFO_ENDIAN__SHIFT
) & A2XX_RB_COLOR_INFO_ENDIAN__MASK
;
611 #define A2XX_RB_COLOR_INFO_SWAP__MASK 0x00000600
612 #define A2XX_RB_COLOR_INFO_SWAP__SHIFT 9
613 static inline uint32_t A2XX_RB_COLOR_INFO_SWAP(uint32_t val
)
615 return ((val
) << A2XX_RB_COLOR_INFO_SWAP__SHIFT
) & A2XX_RB_COLOR_INFO_SWAP__MASK
;
617 #define A2XX_RB_COLOR_INFO_BASE__MASK 0xfffff000
618 #define A2XX_RB_COLOR_INFO_BASE__SHIFT 12
619 static inline uint32_t A2XX_RB_COLOR_INFO_BASE(uint32_t val
)
621 return ((val
>> 10) << A2XX_RB_COLOR_INFO_BASE__SHIFT
) & A2XX_RB_COLOR_INFO_BASE__MASK
;
624 #define REG_A2XX_RB_DEPTH_INFO 0x00002002
625 #define A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK 0x00000001
626 #define A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT 0
627 static inline uint32_t A2XX_RB_DEPTH_INFO_DEPTH_FORMAT(enum adreno_rb_depth_format val
)
629 return ((val
) << A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT
) & A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK
;
631 #define A2XX_RB_DEPTH_INFO_DEPTH_BASE__MASK 0xfffff000
632 #define A2XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT 12
633 static inline uint32_t A2XX_RB_DEPTH_INFO_DEPTH_BASE(uint32_t val
)
635 return ((val
>> 10) << A2XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT
) & A2XX_RB_DEPTH_INFO_DEPTH_BASE__MASK
;
638 #define REG_A2XX_A225_RB_COLOR_INFO3 0x00002005
640 #define REG_A2XX_COHER_DEST_BASE_0 0x00002006
642 #define REG_A2XX_PA_SC_SCREEN_SCISSOR_TL 0x0000200e
643 #define A2XX_PA_SC_SCREEN_SCISSOR_TL_WINDOW_OFFSET_DISABLE 0x80000000
644 #define A2XX_PA_SC_SCREEN_SCISSOR_TL_X__MASK 0x00007fff
645 #define A2XX_PA_SC_SCREEN_SCISSOR_TL_X__SHIFT 0
646 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_TL_X(uint32_t val
)
648 return ((val
) << A2XX_PA_SC_SCREEN_SCISSOR_TL_X__SHIFT
) & A2XX_PA_SC_SCREEN_SCISSOR_TL_X__MASK
;
650 #define A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__MASK 0x7fff0000
651 #define A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__SHIFT 16
652 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_TL_Y(uint32_t val
)
654 return ((val
) << A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__SHIFT
) & A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__MASK
;
657 #define REG_A2XX_PA_SC_SCREEN_SCISSOR_BR 0x0000200f
658 #define A2XX_PA_SC_SCREEN_SCISSOR_BR_WINDOW_OFFSET_DISABLE 0x80000000
659 #define A2XX_PA_SC_SCREEN_SCISSOR_BR_X__MASK 0x00007fff
660 #define A2XX_PA_SC_SCREEN_SCISSOR_BR_X__SHIFT 0
661 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_BR_X(uint32_t val
)
663 return ((val
) << A2XX_PA_SC_SCREEN_SCISSOR_BR_X__SHIFT
) & A2XX_PA_SC_SCREEN_SCISSOR_BR_X__MASK
;
665 #define A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__MASK 0x7fff0000
666 #define A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__SHIFT 16
667 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_BR_Y(uint32_t val
)
669 return ((val
) << A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__SHIFT
) & A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__MASK
;
672 #define REG_A2XX_PA_SC_WINDOW_OFFSET 0x00002080
673 #define A2XX_PA_SC_WINDOW_OFFSET_X__MASK 0x00007fff
674 #define A2XX_PA_SC_WINDOW_OFFSET_X__SHIFT 0
675 static inline uint32_t A2XX_PA_SC_WINDOW_OFFSET_X(int32_t val
)
677 return ((val
) << A2XX_PA_SC_WINDOW_OFFSET_X__SHIFT
) & A2XX_PA_SC_WINDOW_OFFSET_X__MASK
;
679 #define A2XX_PA_SC_WINDOW_OFFSET_Y__MASK 0x7fff0000
680 #define A2XX_PA_SC_WINDOW_OFFSET_Y__SHIFT 16
681 static inline uint32_t A2XX_PA_SC_WINDOW_OFFSET_Y(int32_t val
)
683 return ((val
) << A2XX_PA_SC_WINDOW_OFFSET_Y__SHIFT
) & A2XX_PA_SC_WINDOW_OFFSET_Y__MASK
;
685 #define A2XX_PA_SC_WINDOW_OFFSET_DISABLE 0x80000000
687 #define REG_A2XX_PA_SC_WINDOW_SCISSOR_TL 0x00002081
688 #define A2XX_PA_SC_WINDOW_SCISSOR_TL_WINDOW_OFFSET_DISABLE 0x80000000
689 #define A2XX_PA_SC_WINDOW_SCISSOR_TL_X__MASK 0x00007fff
690 #define A2XX_PA_SC_WINDOW_SCISSOR_TL_X__SHIFT 0
691 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_TL_X(uint32_t val
)
693 return ((val
) << A2XX_PA_SC_WINDOW_SCISSOR_TL_X__SHIFT
) & A2XX_PA_SC_WINDOW_SCISSOR_TL_X__MASK
;
695 #define A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__MASK 0x7fff0000
696 #define A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__SHIFT 16
697 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_TL_Y(uint32_t val
)
699 return ((val
) << A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__SHIFT
) & A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__MASK
;
702 #define REG_A2XX_PA_SC_WINDOW_SCISSOR_BR 0x00002082
703 #define A2XX_PA_SC_WINDOW_SCISSOR_BR_WINDOW_OFFSET_DISABLE 0x80000000
704 #define A2XX_PA_SC_WINDOW_SCISSOR_BR_X__MASK 0x00007fff
705 #define A2XX_PA_SC_WINDOW_SCISSOR_BR_X__SHIFT 0
706 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_BR_X(uint32_t val
)
708 return ((val
) << A2XX_PA_SC_WINDOW_SCISSOR_BR_X__SHIFT
) & A2XX_PA_SC_WINDOW_SCISSOR_BR_X__MASK
;
710 #define A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__MASK 0x7fff0000
711 #define A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__SHIFT 16
712 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_BR_Y(uint32_t val
)
714 return ((val
) << A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__SHIFT
) & A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__MASK
;
717 #define REG_A2XX_UNKNOWN_2010 0x00002010
719 #define REG_A2XX_VGT_MAX_VTX_INDX 0x00002100
721 #define REG_A2XX_VGT_MIN_VTX_INDX 0x00002101
723 #define REG_A2XX_VGT_INDX_OFFSET 0x00002102
725 #define REG_A2XX_A225_PC_MULTI_PRIM_IB_RESET_INDX 0x00002103
727 #define REG_A2XX_RB_COLOR_MASK 0x00002104
728 #define A2XX_RB_COLOR_MASK_WRITE_RED 0x00000001
729 #define A2XX_RB_COLOR_MASK_WRITE_GREEN 0x00000002
730 #define A2XX_RB_COLOR_MASK_WRITE_BLUE 0x00000004
731 #define A2XX_RB_COLOR_MASK_WRITE_ALPHA 0x00000008
733 #define REG_A2XX_RB_BLEND_RED 0x00002105
735 #define REG_A2XX_RB_BLEND_GREEN 0x00002106
737 #define REG_A2XX_RB_BLEND_BLUE 0x00002107
739 #define REG_A2XX_RB_BLEND_ALPHA 0x00002108
741 #define REG_A2XX_RB_FOG_COLOR 0x00002109
743 #define REG_A2XX_RB_STENCILREFMASK_BF 0x0000210c
744 #define A2XX_RB_STENCILREFMASK_BF_STENCILREF__MASK 0x000000ff
745 #define A2XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT 0
746 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILREF(uint32_t val
)
748 return ((val
) << A2XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT
) & A2XX_RB_STENCILREFMASK_BF_STENCILREF__MASK
;
750 #define A2XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK 0x0000ff00
751 #define A2XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT 8
752 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILMASK(uint32_t val
)
754 return ((val
) << A2XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT
) & A2XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK
;
756 #define A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK 0x00ff0000
757 #define A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT 16
758 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK(uint32_t val
)
760 return ((val
) << A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT
) & A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK
;
763 #define REG_A2XX_RB_STENCILREFMASK 0x0000210d
764 #define A2XX_RB_STENCILREFMASK_STENCILREF__MASK 0x000000ff
765 #define A2XX_RB_STENCILREFMASK_STENCILREF__SHIFT 0
766 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILREF(uint32_t val
)
768 return ((val
) << A2XX_RB_STENCILREFMASK_STENCILREF__SHIFT
) & A2XX_RB_STENCILREFMASK_STENCILREF__MASK
;
770 #define A2XX_RB_STENCILREFMASK_STENCILMASK__MASK 0x0000ff00
771 #define A2XX_RB_STENCILREFMASK_STENCILMASK__SHIFT 8
772 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILMASK(uint32_t val
)
774 return ((val
) << A2XX_RB_STENCILREFMASK_STENCILMASK__SHIFT
) & A2XX_RB_STENCILREFMASK_STENCILMASK__MASK
;
776 #define A2XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK 0x00ff0000
777 #define A2XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT 16
778 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILWRITEMASK(uint32_t val
)
780 return ((val
) << A2XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT
) & A2XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK
;
783 #define REG_A2XX_RB_ALPHA_REF 0x0000210e
785 #define REG_A2XX_PA_CL_VPORT_XSCALE 0x0000210f
786 #define A2XX_PA_CL_VPORT_XSCALE__MASK 0xffffffff
787 #define A2XX_PA_CL_VPORT_XSCALE__SHIFT 0
788 static inline uint32_t A2XX_PA_CL_VPORT_XSCALE(float val
)
790 return ((fui(val
)) << A2XX_PA_CL_VPORT_XSCALE__SHIFT
) & A2XX_PA_CL_VPORT_XSCALE__MASK
;
793 #define REG_A2XX_PA_CL_VPORT_XOFFSET 0x00002110
794 #define A2XX_PA_CL_VPORT_XOFFSET__MASK 0xffffffff
795 #define A2XX_PA_CL_VPORT_XOFFSET__SHIFT 0
796 static inline uint32_t A2XX_PA_CL_VPORT_XOFFSET(float val
)
798 return ((fui(val
)) << A2XX_PA_CL_VPORT_XOFFSET__SHIFT
) & A2XX_PA_CL_VPORT_XOFFSET__MASK
;
801 #define REG_A2XX_PA_CL_VPORT_YSCALE 0x00002111
802 #define A2XX_PA_CL_VPORT_YSCALE__MASK 0xffffffff
803 #define A2XX_PA_CL_VPORT_YSCALE__SHIFT 0
804 static inline uint32_t A2XX_PA_CL_VPORT_YSCALE(float val
)
806 return ((fui(val
)) << A2XX_PA_CL_VPORT_YSCALE__SHIFT
) & A2XX_PA_CL_VPORT_YSCALE__MASK
;
809 #define REG_A2XX_PA_CL_VPORT_YOFFSET 0x00002112
810 #define A2XX_PA_CL_VPORT_YOFFSET__MASK 0xffffffff
811 #define A2XX_PA_CL_VPORT_YOFFSET__SHIFT 0
812 static inline uint32_t A2XX_PA_CL_VPORT_YOFFSET(float val
)
814 return ((fui(val
)) << A2XX_PA_CL_VPORT_YOFFSET__SHIFT
) & A2XX_PA_CL_VPORT_YOFFSET__MASK
;
817 #define REG_A2XX_PA_CL_VPORT_ZSCALE 0x00002113
818 #define A2XX_PA_CL_VPORT_ZSCALE__MASK 0xffffffff
819 #define A2XX_PA_CL_VPORT_ZSCALE__SHIFT 0
820 static inline uint32_t A2XX_PA_CL_VPORT_ZSCALE(float val
)
822 return ((fui(val
)) << A2XX_PA_CL_VPORT_ZSCALE__SHIFT
) & A2XX_PA_CL_VPORT_ZSCALE__MASK
;
825 #define REG_A2XX_PA_CL_VPORT_ZOFFSET 0x00002114
826 #define A2XX_PA_CL_VPORT_ZOFFSET__MASK 0xffffffff
827 #define A2XX_PA_CL_VPORT_ZOFFSET__SHIFT 0
828 static inline uint32_t A2XX_PA_CL_VPORT_ZOFFSET(float val
)
830 return ((fui(val
)) << A2XX_PA_CL_VPORT_ZOFFSET__SHIFT
) & A2XX_PA_CL_VPORT_ZOFFSET__MASK
;
833 #define REG_A2XX_SQ_PROGRAM_CNTL 0x00002180
834 #define A2XX_SQ_PROGRAM_CNTL_VS_REGS__MASK 0x000000ff
835 #define A2XX_SQ_PROGRAM_CNTL_VS_REGS__SHIFT 0
836 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_REGS(uint32_t val
)
838 return ((val
) << A2XX_SQ_PROGRAM_CNTL_VS_REGS__SHIFT
) & A2XX_SQ_PROGRAM_CNTL_VS_REGS__MASK
;
840 #define A2XX_SQ_PROGRAM_CNTL_PS_REGS__MASK 0x0000ff00
841 #define A2XX_SQ_PROGRAM_CNTL_PS_REGS__SHIFT 8
842 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_PS_REGS(uint32_t val
)
844 return ((val
) << A2XX_SQ_PROGRAM_CNTL_PS_REGS__SHIFT
) & A2XX_SQ_PROGRAM_CNTL_PS_REGS__MASK
;
846 #define A2XX_SQ_PROGRAM_CNTL_VS_RESOURCE 0x00010000
847 #define A2XX_SQ_PROGRAM_CNTL_PS_RESOURCE 0x00020000
848 #define A2XX_SQ_PROGRAM_CNTL_PARAM_GEN 0x00040000
849 #define A2XX_SQ_PROGRAM_CNTL_GEN_INDEX_PIX 0x00080000
850 #define A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT__MASK 0x00f00000
851 #define A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT__SHIFT 20
852 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT(uint32_t val
)
854 return ((val
) << A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT__SHIFT
) & A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT__MASK
;
856 #define A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE__MASK 0x07000000
857 #define A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE__SHIFT 24
858 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE(enum a2xx_sq_ps_vtx_mode val
)
860 return ((val
) << A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE__SHIFT
) & A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE__MASK
;
862 #define A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE__MASK 0x78000000
863 #define A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE__SHIFT 27
864 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE(uint32_t val
)
866 return ((val
) << A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE__SHIFT
) & A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE__MASK
;
868 #define A2XX_SQ_PROGRAM_CNTL_GEN_INDEX_VTX 0x80000000
870 #define REG_A2XX_SQ_CONTEXT_MISC 0x00002181
871 #define A2XX_SQ_CONTEXT_MISC_INST_PRED_OPTIMIZE 0x00000001
872 #define A2XX_SQ_CONTEXT_MISC_SC_OUTPUT_SCREEN_XY 0x00000002
873 #define A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL__MASK 0x0000000c
874 #define A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL__SHIFT 2
875 static inline uint32_t A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL(enum a2xx_sq_sample_cntl val
)
877 return ((val
) << A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL__SHIFT
) & A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL__MASK
;
879 #define A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__MASK 0x0000ff00
880 #define A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__SHIFT 8
881 static inline uint32_t A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS(uint32_t val
)
883 return ((val
) << A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__SHIFT
) & A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__MASK
;
885 #define A2XX_SQ_CONTEXT_MISC_PERFCOUNTER_REF 0x00010000
886 #define A2XX_SQ_CONTEXT_MISC_YEILD_OPTIMIZE 0x00020000
887 #define A2XX_SQ_CONTEXT_MISC_TX_CACHE_SEL 0x00040000
889 #define REG_A2XX_SQ_INTERPOLATOR_CNTL 0x00002182
891 #define REG_A2XX_SQ_WRAPPING_0 0x00002183
893 #define REG_A2XX_SQ_WRAPPING_1 0x00002184
895 #define REG_A2XX_SQ_PS_PROGRAM 0x000021f6
897 #define REG_A2XX_SQ_VS_PROGRAM 0x000021f7
899 #define REG_A2XX_VGT_EVENT_INITIATOR 0x000021f9
901 #define REG_A2XX_VGT_DRAW_INITIATOR 0x000021fc
902 #define A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__MASK 0x0000003f
903 #define A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__SHIFT 0
904 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE(enum pc_di_primtype val
)
906 return ((val
) << A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__SHIFT
) & A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__MASK
;
908 #define A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT__MASK 0x000000c0
909 #define A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT__SHIFT 6
910 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT(enum pc_di_src_sel val
)
912 return ((val
) << A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT__SHIFT
) & A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT__MASK
;
914 #define A2XX_VGT_DRAW_INITIATOR_VIS_CULL__MASK 0x00000600
915 #define A2XX_VGT_DRAW_INITIATOR_VIS_CULL__SHIFT 9
916 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_VIS_CULL(enum pc_di_vis_cull_mode val
)
918 return ((val
) << A2XX_VGT_DRAW_INITIATOR_VIS_CULL__SHIFT
) & A2XX_VGT_DRAW_INITIATOR_VIS_CULL__MASK
;
920 #define A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__MASK 0x00000800
921 #define A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__SHIFT 11
922 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE(enum pc_di_index_size val
)
924 return ((val
) << A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__SHIFT
) & A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__MASK
;
926 #define A2XX_VGT_DRAW_INITIATOR_NOT_EOP 0x00001000
927 #define A2XX_VGT_DRAW_INITIATOR_SMALL_INDEX 0x00002000
928 #define A2XX_VGT_DRAW_INITIATOR_PRE_DRAW_INITIATOR_ENABLE 0x00004000
929 #define A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES__MASK 0xff000000
930 #define A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES__SHIFT 24
931 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES(uint32_t val
)
933 return ((val
) << A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES__SHIFT
) & A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES__MASK
;
936 #define REG_A2XX_VGT_IMMED_DATA 0x000021fd
938 #define REG_A2XX_RB_DEPTHCONTROL 0x00002200
939 #define A2XX_RB_DEPTHCONTROL_STENCIL_ENABLE 0x00000001
940 #define A2XX_RB_DEPTHCONTROL_Z_ENABLE 0x00000002
941 #define A2XX_RB_DEPTHCONTROL_Z_WRITE_ENABLE 0x00000004
942 #define A2XX_RB_DEPTHCONTROL_EARLY_Z_ENABLE 0x00000008
943 #define A2XX_RB_DEPTHCONTROL_ZFUNC__MASK 0x00000070
944 #define A2XX_RB_DEPTHCONTROL_ZFUNC__SHIFT 4
945 static inline uint32_t A2XX_RB_DEPTHCONTROL_ZFUNC(enum adreno_compare_func val
)
947 return ((val
) << A2XX_RB_DEPTHCONTROL_ZFUNC__SHIFT
) & A2XX_RB_DEPTHCONTROL_ZFUNC__MASK
;
949 #define A2XX_RB_DEPTHCONTROL_BACKFACE_ENABLE 0x00000080
950 #define A2XX_RB_DEPTHCONTROL_STENCILFUNC__MASK 0x00000700
951 #define A2XX_RB_DEPTHCONTROL_STENCILFUNC__SHIFT 8
952 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFUNC(enum adreno_compare_func val
)
954 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILFUNC__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILFUNC__MASK
;
956 #define A2XX_RB_DEPTHCONTROL_STENCILFAIL__MASK 0x00003800
957 #define A2XX_RB_DEPTHCONTROL_STENCILFAIL__SHIFT 11
958 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFAIL(enum adreno_stencil_op val
)
960 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILFAIL__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILFAIL__MASK
;
962 #define A2XX_RB_DEPTHCONTROL_STENCILZPASS__MASK 0x0001c000
963 #define A2XX_RB_DEPTHCONTROL_STENCILZPASS__SHIFT 14
964 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZPASS(enum adreno_stencil_op val
)
966 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILZPASS__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILZPASS__MASK
;
968 #define A2XX_RB_DEPTHCONTROL_STENCILZFAIL__MASK 0x000e0000
969 #define A2XX_RB_DEPTHCONTROL_STENCILZFAIL__SHIFT 17
970 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZFAIL(enum adreno_stencil_op val
)
972 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILZFAIL__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILZFAIL__MASK
;
974 #define A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF__MASK 0x00700000
975 #define A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF__SHIFT 20
976 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF(enum adreno_compare_func val
)
978 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF__MASK
;
980 #define A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF__MASK 0x03800000
981 #define A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF__SHIFT 23
982 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF(enum adreno_stencil_op val
)
984 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF__MASK
;
986 #define A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF__MASK 0x1c000000
987 #define A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF__SHIFT 26
988 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF(enum adreno_stencil_op val
)
990 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF__MASK
;
992 #define A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF__MASK 0xe0000000
993 #define A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF__SHIFT 29
994 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF(enum adreno_stencil_op val
)
996 return ((val
) << A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF__SHIFT
) & A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF__MASK
;
999 #define REG_A2XX_RB_BLEND_CONTROL 0x00002201
1000 #define A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND__MASK 0x0000001f
1001 #define A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND__SHIFT 0
1002 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND(enum adreno_rb_blend_factor val
)
1004 return ((val
) << A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND__SHIFT
) & A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND__MASK
;
1006 #define A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN__MASK 0x000000e0
1007 #define A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN__SHIFT 5
1008 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN(enum a2xx_rb_blend_opcode val
)
1010 return ((val
) << A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN__SHIFT
) & A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN__MASK
;
1012 #define A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND__MASK 0x00001f00
1013 #define A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND__SHIFT 8
1014 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND(enum adreno_rb_blend_factor val
)
1016 return ((val
) << A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND__SHIFT
) & A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND__MASK
;
1018 #define A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND__MASK 0x001f0000
1019 #define A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND__SHIFT 16
1020 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND(enum adreno_rb_blend_factor val
)
1022 return ((val
) << A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND__SHIFT
) & A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND__MASK
;
1024 #define A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN__MASK 0x00e00000
1025 #define A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN__SHIFT 21
1026 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN(enum a2xx_rb_blend_opcode val
)
1028 return ((val
) << A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN__SHIFT
) & A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN__MASK
;
1030 #define A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND__MASK 0x1f000000
1031 #define A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND__SHIFT 24
1032 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND(enum adreno_rb_blend_factor val
)
1034 return ((val
) << A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND__SHIFT
) & A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND__MASK
;
1036 #define A2XX_RB_BLEND_CONTROL_BLEND_FORCE_ENABLE 0x20000000
1037 #define A2XX_RB_BLEND_CONTROL_BLEND_FORCE 0x40000000
1039 #define REG_A2XX_RB_COLORCONTROL 0x00002202
1040 #define A2XX_RB_COLORCONTROL_ALPHA_FUNC__MASK 0x00000007
1041 #define A2XX_RB_COLORCONTROL_ALPHA_FUNC__SHIFT 0
1042 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_FUNC(enum adreno_compare_func val
)
1044 return ((val
) << A2XX_RB_COLORCONTROL_ALPHA_FUNC__SHIFT
) & A2XX_RB_COLORCONTROL_ALPHA_FUNC__MASK
;
1046 #define A2XX_RB_COLORCONTROL_ALPHA_TEST_ENABLE 0x00000008
1047 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_ENABLE 0x00000010
1048 #define A2XX_RB_COLORCONTROL_BLEND_DISABLE 0x00000020
1049 #define A2XX_RB_COLORCONTROL_VOB_ENABLE 0x00000040
1050 #define A2XX_RB_COLORCONTROL_VS_EXPORTS_FOG 0x00000080
1051 #define A2XX_RB_COLORCONTROL_ROP_CODE__MASK 0x00000f00
1052 #define A2XX_RB_COLORCONTROL_ROP_CODE__SHIFT 8
1053 static inline uint32_t A2XX_RB_COLORCONTROL_ROP_CODE(uint32_t val
)
1055 return ((val
) << A2XX_RB_COLORCONTROL_ROP_CODE__SHIFT
) & A2XX_RB_COLORCONTROL_ROP_CODE__MASK
;
1057 #define A2XX_RB_COLORCONTROL_DITHER_MODE__MASK 0x00003000
1058 #define A2XX_RB_COLORCONTROL_DITHER_MODE__SHIFT 12
1059 static inline uint32_t A2XX_RB_COLORCONTROL_DITHER_MODE(enum adreno_rb_dither_mode val
)
1061 return ((val
) << A2XX_RB_COLORCONTROL_DITHER_MODE__SHIFT
) & A2XX_RB_COLORCONTROL_DITHER_MODE__MASK
;
1063 #define A2XX_RB_COLORCONTROL_DITHER_TYPE__MASK 0x0000c000
1064 #define A2XX_RB_COLORCONTROL_DITHER_TYPE__SHIFT 14
1065 static inline uint32_t A2XX_RB_COLORCONTROL_DITHER_TYPE(enum a2xx_rb_dither_type val
)
1067 return ((val
) << A2XX_RB_COLORCONTROL_DITHER_TYPE__SHIFT
) & A2XX_RB_COLORCONTROL_DITHER_TYPE__MASK
;
1069 #define A2XX_RB_COLORCONTROL_PIXEL_FOG 0x00010000
1070 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0__MASK 0x03000000
1071 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0__SHIFT 24
1072 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0(uint32_t val
)
1074 return ((val
) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0__SHIFT
) & A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0__MASK
;
1076 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1__MASK 0x0c000000
1077 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1__SHIFT 26
1078 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1(uint32_t val
)
1080 return ((val
) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1__SHIFT
) & A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1__MASK
;
1082 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2__MASK 0x30000000
1083 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2__SHIFT 28
1084 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2(uint32_t val
)
1086 return ((val
) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2__SHIFT
) & A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2__MASK
;
1088 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3__MASK 0xc0000000
1089 #define A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3__SHIFT 30
1090 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3(uint32_t val
)
1092 return ((val
) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3__SHIFT
) & A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3__MASK
;
1095 #define REG_A2XX_VGT_CURRENT_BIN_ID_MAX 0x00002203
1096 #define A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__MASK 0x00000007
1097 #define A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__SHIFT 0
1098 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN(uint32_t val
)
1100 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__MASK
;
1102 #define A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__MASK 0x00000038
1103 #define A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__SHIFT 3
1104 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_ROW(uint32_t val
)
1106 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__MASK
;
1108 #define A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK__MASK 0x000001c0
1109 #define A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK__SHIFT 6
1110 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK(uint32_t val
)
1112 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK__MASK
;
1115 #define REG_A2XX_PA_CL_CLIP_CNTL 0x00002204
1116 #define A2XX_PA_CL_CLIP_CNTL_CLIP_DISABLE 0x00010000
1117 #define A2XX_PA_CL_CLIP_CNTL_BOUNDARY_EDGE_FLAG_ENA 0x00040000
1118 #define A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF__MASK 0x00080000
1119 #define A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF__SHIFT 19
1120 static inline uint32_t A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF(enum a2xx_dx_clip_space val
)
1122 return ((val
) << A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF__SHIFT
) & A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF__MASK
;
1124 #define A2XX_PA_CL_CLIP_CNTL_DIS_CLIP_ERR_DETECT 0x00100000
1125 #define A2XX_PA_CL_CLIP_CNTL_VTX_KILL_OR 0x00200000
1126 #define A2XX_PA_CL_CLIP_CNTL_XY_NAN_RETAIN 0x00400000
1127 #define A2XX_PA_CL_CLIP_CNTL_Z_NAN_RETAIN 0x00800000
1128 #define A2XX_PA_CL_CLIP_CNTL_W_NAN_RETAIN 0x01000000
1130 #define REG_A2XX_PA_SU_SC_MODE_CNTL 0x00002205
1131 #define A2XX_PA_SU_SC_MODE_CNTL_CULL_FRONT 0x00000001
1132 #define A2XX_PA_SU_SC_MODE_CNTL_CULL_BACK 0x00000002
1133 #define A2XX_PA_SU_SC_MODE_CNTL_FACE 0x00000004
1134 #define A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__MASK 0x00000018
1135 #define A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__SHIFT 3
1136 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_POLYMODE(enum a2xx_pa_su_sc_polymode val
)
1138 return ((val
) << A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__SHIFT
) & A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__MASK
;
1140 #define A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE__MASK 0x000000e0
1141 #define A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE__SHIFT 5
1142 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE(enum adreno_pa_su_sc_draw val
)
1144 return ((val
) << A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE__SHIFT
) & A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE__MASK
;
1146 #define A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__MASK 0x00000700
1147 #define A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__SHIFT 8
1148 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE(enum adreno_pa_su_sc_draw val
)
1150 return ((val
) << A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__SHIFT
) & A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__MASK
;
1152 #define A2XX_PA_SU_SC_MODE_CNTL_POLY_OFFSET_FRONT_ENABLE 0x00000800
1153 #define A2XX_PA_SU_SC_MODE_CNTL_POLY_OFFSET_BACK_ENABLE 0x00001000
1154 #define A2XX_PA_SU_SC_MODE_CNTL_POLY_OFFSET_PARA_ENABLE 0x00002000
1155 #define A2XX_PA_SU_SC_MODE_CNTL_MSAA_ENABLE 0x00008000
1156 #define A2XX_PA_SU_SC_MODE_CNTL_VTX_WINDOW_OFFSET_ENABLE 0x00010000
1157 #define A2XX_PA_SU_SC_MODE_CNTL_LINE_STIPPLE_ENABLE 0x00040000
1158 #define A2XX_PA_SU_SC_MODE_CNTL_PROVOKING_VTX_LAST 0x00080000
1159 #define A2XX_PA_SU_SC_MODE_CNTL_PERSP_CORR_DIS 0x00100000
1160 #define A2XX_PA_SU_SC_MODE_CNTL_MULTI_PRIM_IB_ENA 0x00200000
1161 #define A2XX_PA_SU_SC_MODE_CNTL_QUAD_ORDER_ENABLE 0x00800000
1162 #define A2XX_PA_SU_SC_MODE_CNTL_WAIT_RB_IDLE_ALL_TRI 0x02000000
1163 #define A2XX_PA_SU_SC_MODE_CNTL_WAIT_RB_IDLE_FIRST_TRI_NEW_STATE 0x04000000
1164 #define A2XX_PA_SU_SC_MODE_CNTL_CLAMPED_FACENESS 0x10000000
1165 #define A2XX_PA_SU_SC_MODE_CNTL_ZERO_AREA_FACENESS 0x20000000
1166 #define A2XX_PA_SU_SC_MODE_CNTL_FACE_KILL_ENABLE 0x40000000
1167 #define A2XX_PA_SU_SC_MODE_CNTL_FACE_WRITE_ENABLE 0x80000000
1169 #define REG_A2XX_PA_CL_VTE_CNTL 0x00002206
1170 #define A2XX_PA_CL_VTE_CNTL_VPORT_X_SCALE_ENA 0x00000001
1171 #define A2XX_PA_CL_VTE_CNTL_VPORT_X_OFFSET_ENA 0x00000002
1172 #define A2XX_PA_CL_VTE_CNTL_VPORT_Y_SCALE_ENA 0x00000004
1173 #define A2XX_PA_CL_VTE_CNTL_VPORT_Y_OFFSET_ENA 0x00000008
1174 #define A2XX_PA_CL_VTE_CNTL_VPORT_Z_SCALE_ENA 0x00000010
1175 #define A2XX_PA_CL_VTE_CNTL_VPORT_Z_OFFSET_ENA 0x00000020
1176 #define A2XX_PA_CL_VTE_CNTL_VTX_XY_FMT 0x00000100
1177 #define A2XX_PA_CL_VTE_CNTL_VTX_Z_FMT 0x00000200
1178 #define A2XX_PA_CL_VTE_CNTL_VTX_W0_FMT 0x00000400
1179 #define A2XX_PA_CL_VTE_CNTL_PERFCOUNTER_REF 0x00000800
1181 #define REG_A2XX_VGT_CURRENT_BIN_ID_MIN 0x00002207
1182 #define A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__MASK 0x00000007
1183 #define A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__SHIFT 0
1184 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN(uint32_t val
)
1186 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__MASK
;
1188 #define A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__MASK 0x00000038
1189 #define A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__SHIFT 3
1190 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_ROW(uint32_t val
)
1192 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__MASK
;
1194 #define A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK__MASK 0x000001c0
1195 #define A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK__SHIFT 6
1196 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK(uint32_t val
)
1198 return ((val
) << A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK__SHIFT
) & A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK__MASK
;
1201 #define REG_A2XX_RB_MODECONTROL 0x00002208
1202 #define A2XX_RB_MODECONTROL_EDRAM_MODE__MASK 0x00000007
1203 #define A2XX_RB_MODECONTROL_EDRAM_MODE__SHIFT 0
1204 static inline uint32_t A2XX_RB_MODECONTROL_EDRAM_MODE(enum a2xx_rb_edram_mode val
)
1206 return ((val
) << A2XX_RB_MODECONTROL_EDRAM_MODE__SHIFT
) & A2XX_RB_MODECONTROL_EDRAM_MODE__MASK
;
1209 #define REG_A2XX_A220_RB_LRZ_VSC_CONTROL 0x00002209
1211 #define REG_A2XX_RB_SAMPLE_POS 0x0000220a
1213 #define REG_A2XX_CLEAR_COLOR 0x0000220b
1214 #define A2XX_CLEAR_COLOR_RED__MASK 0x000000ff
1215 #define A2XX_CLEAR_COLOR_RED__SHIFT 0
1216 static inline uint32_t A2XX_CLEAR_COLOR_RED(uint32_t val
)
1218 return ((val
) << A2XX_CLEAR_COLOR_RED__SHIFT
) & A2XX_CLEAR_COLOR_RED__MASK
;
1220 #define A2XX_CLEAR_COLOR_GREEN__MASK 0x0000ff00
1221 #define A2XX_CLEAR_COLOR_GREEN__SHIFT 8
1222 static inline uint32_t A2XX_CLEAR_COLOR_GREEN(uint32_t val
)
1224 return ((val
) << A2XX_CLEAR_COLOR_GREEN__SHIFT
) & A2XX_CLEAR_COLOR_GREEN__MASK
;
1226 #define A2XX_CLEAR_COLOR_BLUE__MASK 0x00ff0000
1227 #define A2XX_CLEAR_COLOR_BLUE__SHIFT 16
1228 static inline uint32_t A2XX_CLEAR_COLOR_BLUE(uint32_t val
)
1230 return ((val
) << A2XX_CLEAR_COLOR_BLUE__SHIFT
) & A2XX_CLEAR_COLOR_BLUE__MASK
;
1232 #define A2XX_CLEAR_COLOR_ALPHA__MASK 0xff000000
1233 #define A2XX_CLEAR_COLOR_ALPHA__SHIFT 24
1234 static inline uint32_t A2XX_CLEAR_COLOR_ALPHA(uint32_t val
)
1236 return ((val
) << A2XX_CLEAR_COLOR_ALPHA__SHIFT
) & A2XX_CLEAR_COLOR_ALPHA__MASK
;
1239 #define REG_A2XX_A220_GRAS_CONTROL 0x00002210
1241 #define REG_A2XX_PA_SU_POINT_SIZE 0x00002280
1242 #define A2XX_PA_SU_POINT_SIZE_HEIGHT__MASK 0x0000ffff
1243 #define A2XX_PA_SU_POINT_SIZE_HEIGHT__SHIFT 0
1244 static inline uint32_t A2XX_PA_SU_POINT_SIZE_HEIGHT(float val
)
1246 return ((((uint32_t)(val
* 16.0))) << A2XX_PA_SU_POINT_SIZE_HEIGHT__SHIFT
) & A2XX_PA_SU_POINT_SIZE_HEIGHT__MASK
;
1248 #define A2XX_PA_SU_POINT_SIZE_WIDTH__MASK 0xffff0000
1249 #define A2XX_PA_SU_POINT_SIZE_WIDTH__SHIFT 16
1250 static inline uint32_t A2XX_PA_SU_POINT_SIZE_WIDTH(float val
)
1252 return ((((uint32_t)(val
* 16.0))) << A2XX_PA_SU_POINT_SIZE_WIDTH__SHIFT
) & A2XX_PA_SU_POINT_SIZE_WIDTH__MASK
;
1255 #define REG_A2XX_PA_SU_POINT_MINMAX 0x00002281
1256 #define A2XX_PA_SU_POINT_MINMAX_MIN__MASK 0x0000ffff
1257 #define A2XX_PA_SU_POINT_MINMAX_MIN__SHIFT 0
1258 static inline uint32_t A2XX_PA_SU_POINT_MINMAX_MIN(float val
)
1260 return ((((uint32_t)(val
* 16.0))) << A2XX_PA_SU_POINT_MINMAX_MIN__SHIFT
) & A2XX_PA_SU_POINT_MINMAX_MIN__MASK
;
1262 #define A2XX_PA_SU_POINT_MINMAX_MAX__MASK 0xffff0000
1263 #define A2XX_PA_SU_POINT_MINMAX_MAX__SHIFT 16
1264 static inline uint32_t A2XX_PA_SU_POINT_MINMAX_MAX(float val
)
1266 return ((((uint32_t)(val
* 16.0))) << A2XX_PA_SU_POINT_MINMAX_MAX__SHIFT
) & A2XX_PA_SU_POINT_MINMAX_MAX__MASK
;
1269 #define REG_A2XX_PA_SU_LINE_CNTL 0x00002282
1270 #define A2XX_PA_SU_LINE_CNTL_WIDTH__MASK 0x0000ffff
1271 #define A2XX_PA_SU_LINE_CNTL_WIDTH__SHIFT 0
1272 static inline uint32_t A2XX_PA_SU_LINE_CNTL_WIDTH(float val
)
1274 return ((((uint32_t)(val
* 16.0))) << A2XX_PA_SU_LINE_CNTL_WIDTH__SHIFT
) & A2XX_PA_SU_LINE_CNTL_WIDTH__MASK
;
1277 #define REG_A2XX_PA_SC_LINE_STIPPLE 0x00002283
1278 #define A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN__MASK 0x0000ffff
1279 #define A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN__SHIFT 0
1280 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN(uint32_t val
)
1282 return ((val
) << A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN__SHIFT
) & A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN__MASK
;
1284 #define A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT__MASK 0x00ff0000
1285 #define A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT__SHIFT 16
1286 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT(uint32_t val
)
1288 return ((val
) << A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT__SHIFT
) & A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT__MASK
;
1290 #define A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER__MASK 0x10000000
1291 #define A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER__SHIFT 28
1292 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER(enum a2xx_pa_sc_pattern_bit_order val
)
1294 return ((val
) << A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER__SHIFT
) & A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER__MASK
;
1296 #define A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL__MASK 0x60000000
1297 #define A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL__SHIFT 29
1298 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL(enum a2xx_pa_sc_auto_reset_cntl val
)
1300 return ((val
) << A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL__SHIFT
) & A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL__MASK
;
1303 #define REG_A2XX_PA_SC_VIZ_QUERY 0x00002293
1305 #define REG_A2XX_VGT_ENHANCE 0x00002294
1307 #define REG_A2XX_PA_SC_LINE_CNTL 0x00002300
1308 #define A2XX_PA_SC_LINE_CNTL_BRES_CNTL__MASK 0x0000ffff
1309 #define A2XX_PA_SC_LINE_CNTL_BRES_CNTL__SHIFT 0
1310 static inline uint32_t A2XX_PA_SC_LINE_CNTL_BRES_CNTL(uint32_t val
)
1312 return ((val
) << A2XX_PA_SC_LINE_CNTL_BRES_CNTL__SHIFT
) & A2XX_PA_SC_LINE_CNTL_BRES_CNTL__MASK
;
1314 #define A2XX_PA_SC_LINE_CNTL_USE_BRES_CNTL 0x00000100
1315 #define A2XX_PA_SC_LINE_CNTL_EXPAND_LINE_WIDTH 0x00000200
1316 #define A2XX_PA_SC_LINE_CNTL_LAST_PIXEL 0x00000400
1318 #define REG_A2XX_PA_SC_AA_CONFIG 0x00002301
1320 #define REG_A2XX_PA_SU_VTX_CNTL 0x00002302
1321 #define A2XX_PA_SU_VTX_CNTL_PIX_CENTER__MASK 0x00000001
1322 #define A2XX_PA_SU_VTX_CNTL_PIX_CENTER__SHIFT 0
1323 static inline uint32_t A2XX_PA_SU_VTX_CNTL_PIX_CENTER(enum a2xx_pa_pixcenter val
)
1325 return ((val
) << A2XX_PA_SU_VTX_CNTL_PIX_CENTER__SHIFT
) & A2XX_PA_SU_VTX_CNTL_PIX_CENTER__MASK
;
1327 #define A2XX_PA_SU_VTX_CNTL_ROUND_MODE__MASK 0x00000006
1328 #define A2XX_PA_SU_VTX_CNTL_ROUND_MODE__SHIFT 1
1329 static inline uint32_t A2XX_PA_SU_VTX_CNTL_ROUND_MODE(enum a2xx_pa_roundmode val
)
1331 return ((val
) << A2XX_PA_SU_VTX_CNTL_ROUND_MODE__SHIFT
) & A2XX_PA_SU_VTX_CNTL_ROUND_MODE__MASK
;
1333 #define A2XX_PA_SU_VTX_CNTL_QUANT_MODE__MASK 0x00000380
1334 #define A2XX_PA_SU_VTX_CNTL_QUANT_MODE__SHIFT 7
1335 static inline uint32_t A2XX_PA_SU_VTX_CNTL_QUANT_MODE(enum a2xx_pa_quantmode val
)
1337 return ((val
) << A2XX_PA_SU_VTX_CNTL_QUANT_MODE__SHIFT
) & A2XX_PA_SU_VTX_CNTL_QUANT_MODE__MASK
;
1340 #define REG_A2XX_PA_CL_GB_VERT_CLIP_ADJ 0x00002303
1341 #define A2XX_PA_CL_GB_VERT_CLIP_ADJ__MASK 0xffffffff
1342 #define A2XX_PA_CL_GB_VERT_CLIP_ADJ__SHIFT 0
1343 static inline uint32_t A2XX_PA_CL_GB_VERT_CLIP_ADJ(float val
)
1345 return ((fui(val
)) << A2XX_PA_CL_GB_VERT_CLIP_ADJ__SHIFT
) & A2XX_PA_CL_GB_VERT_CLIP_ADJ__MASK
;
1348 #define REG_A2XX_PA_CL_GB_VERT_DISC_ADJ 0x00002304
1349 #define A2XX_PA_CL_GB_VERT_DISC_ADJ__MASK 0xffffffff
1350 #define A2XX_PA_CL_GB_VERT_DISC_ADJ__SHIFT 0
1351 static inline uint32_t A2XX_PA_CL_GB_VERT_DISC_ADJ(float val
)
1353 return ((fui(val
)) << A2XX_PA_CL_GB_VERT_DISC_ADJ__SHIFT
) & A2XX_PA_CL_GB_VERT_DISC_ADJ__MASK
;
1356 #define REG_A2XX_PA_CL_GB_HORZ_CLIP_ADJ 0x00002305
1357 #define A2XX_PA_CL_GB_HORZ_CLIP_ADJ__MASK 0xffffffff
1358 #define A2XX_PA_CL_GB_HORZ_CLIP_ADJ__SHIFT 0
1359 static inline uint32_t A2XX_PA_CL_GB_HORZ_CLIP_ADJ(float val
)
1361 return ((fui(val
)) << A2XX_PA_CL_GB_HORZ_CLIP_ADJ__SHIFT
) & A2XX_PA_CL_GB_HORZ_CLIP_ADJ__MASK
;
1364 #define REG_A2XX_PA_CL_GB_HORZ_DISC_ADJ 0x00002306
1365 #define A2XX_PA_CL_GB_HORZ_DISC_ADJ__MASK 0xffffffff
1366 #define A2XX_PA_CL_GB_HORZ_DISC_ADJ__SHIFT 0
1367 static inline uint32_t A2XX_PA_CL_GB_HORZ_DISC_ADJ(float val
)
1369 return ((fui(val
)) << A2XX_PA_CL_GB_HORZ_DISC_ADJ__SHIFT
) & A2XX_PA_CL_GB_HORZ_DISC_ADJ__MASK
;
1372 #define REG_A2XX_SQ_VS_CONST 0x00002307
1373 #define A2XX_SQ_VS_CONST_BASE__MASK 0x000001ff
1374 #define A2XX_SQ_VS_CONST_BASE__SHIFT 0
1375 static inline uint32_t A2XX_SQ_VS_CONST_BASE(uint32_t val
)
1377 return ((val
) << A2XX_SQ_VS_CONST_BASE__SHIFT
) & A2XX_SQ_VS_CONST_BASE__MASK
;
1379 #define A2XX_SQ_VS_CONST_SIZE__MASK 0x001ff000
1380 #define A2XX_SQ_VS_CONST_SIZE__SHIFT 12
1381 static inline uint32_t A2XX_SQ_VS_CONST_SIZE(uint32_t val
)
1383 return ((val
) << A2XX_SQ_VS_CONST_SIZE__SHIFT
) & A2XX_SQ_VS_CONST_SIZE__MASK
;
1386 #define REG_A2XX_SQ_PS_CONST 0x00002308
1387 #define A2XX_SQ_PS_CONST_BASE__MASK 0x000001ff
1388 #define A2XX_SQ_PS_CONST_BASE__SHIFT 0
1389 static inline uint32_t A2XX_SQ_PS_CONST_BASE(uint32_t val
)
1391 return ((val
) << A2XX_SQ_PS_CONST_BASE__SHIFT
) & A2XX_SQ_PS_CONST_BASE__MASK
;
1393 #define A2XX_SQ_PS_CONST_SIZE__MASK 0x001ff000
1394 #define A2XX_SQ_PS_CONST_SIZE__SHIFT 12
1395 static inline uint32_t A2XX_SQ_PS_CONST_SIZE(uint32_t val
)
1397 return ((val
) << A2XX_SQ_PS_CONST_SIZE__SHIFT
) & A2XX_SQ_PS_CONST_SIZE__MASK
;
1400 #define REG_A2XX_SQ_DEBUG_MISC_0 0x00002309
1402 #define REG_A2XX_SQ_DEBUG_MISC_1 0x0000230a
1404 #define REG_A2XX_PA_SC_AA_MASK 0x00002312
1406 #define REG_A2XX_VGT_VERTEX_REUSE_BLOCK_CNTL 0x00002316
1408 #define REG_A2XX_VGT_OUT_DEALLOC_CNTL 0x00002317
1410 #define REG_A2XX_RB_COPY_CONTROL 0x00002318
1411 #define A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT__MASK 0x00000007
1412 #define A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT__SHIFT 0
1413 static inline uint32_t A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT(enum a2xx_rb_copy_sample_select val
)
1415 return ((val
) << A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT__SHIFT
) & A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT__MASK
;
1417 #define A2XX_RB_COPY_CONTROL_DEPTH_CLEAR_ENABLE 0x00000008
1418 #define A2XX_RB_COPY_CONTROL_CLEAR_MASK__MASK 0x000000f0
1419 #define A2XX_RB_COPY_CONTROL_CLEAR_MASK__SHIFT 4
1420 static inline uint32_t A2XX_RB_COPY_CONTROL_CLEAR_MASK(uint32_t val
)
1422 return ((val
) << A2XX_RB_COPY_CONTROL_CLEAR_MASK__SHIFT
) & A2XX_RB_COPY_CONTROL_CLEAR_MASK__MASK
;
1425 #define REG_A2XX_RB_COPY_DEST_BASE 0x00002319
1427 #define REG_A2XX_RB_COPY_DEST_PITCH 0x0000231a
1428 #define A2XX_RB_COPY_DEST_PITCH__MASK 0xffffffff
1429 #define A2XX_RB_COPY_DEST_PITCH__SHIFT 0
1430 static inline uint32_t A2XX_RB_COPY_DEST_PITCH(uint32_t val
)
1432 return ((val
>> 5) << A2XX_RB_COPY_DEST_PITCH__SHIFT
) & A2XX_RB_COPY_DEST_PITCH__MASK
;
1435 #define REG_A2XX_RB_COPY_DEST_INFO 0x0000231b
1436 #define A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__MASK 0x00000007
1437 #define A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__SHIFT 0
1438 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN(enum adreno_rb_surface_endian val
)
1440 return ((val
) << A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__SHIFT
) & A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__MASK
;
1442 #define A2XX_RB_COPY_DEST_INFO_LINEAR 0x00000008
1443 #define A2XX_RB_COPY_DEST_INFO_FORMAT__MASK 0x000000f0
1444 #define A2XX_RB_COPY_DEST_INFO_FORMAT__SHIFT 4
1445 static inline uint32_t A2XX_RB_COPY_DEST_INFO_FORMAT(enum a2xx_colorformatx val
)
1447 return ((val
) << A2XX_RB_COPY_DEST_INFO_FORMAT__SHIFT
) & A2XX_RB_COPY_DEST_INFO_FORMAT__MASK
;
1449 #define A2XX_RB_COPY_DEST_INFO_SWAP__MASK 0x00000300
1450 #define A2XX_RB_COPY_DEST_INFO_SWAP__SHIFT 8
1451 static inline uint32_t A2XX_RB_COPY_DEST_INFO_SWAP(uint32_t val
)
1453 return ((val
) << A2XX_RB_COPY_DEST_INFO_SWAP__SHIFT
) & A2XX_RB_COPY_DEST_INFO_SWAP__MASK
;
1455 #define A2XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK 0x00000c00
1456 #define A2XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT 10
1457 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DITHER_MODE(enum adreno_rb_dither_mode val
)
1459 return ((val
) << A2XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT
) & A2XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK
;
1461 #define A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__MASK 0x00003000
1462 #define A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__SHIFT 12
1463 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DITHER_TYPE(enum a2xx_rb_dither_type val
)
1465 return ((val
) << A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__SHIFT
) & A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__MASK
;
1467 #define A2XX_RB_COPY_DEST_INFO_WRITE_RED 0x00004000
1468 #define A2XX_RB_COPY_DEST_INFO_WRITE_GREEN 0x00008000
1469 #define A2XX_RB_COPY_DEST_INFO_WRITE_BLUE 0x00010000
1470 #define A2XX_RB_COPY_DEST_INFO_WRITE_ALPHA 0x00020000
1472 #define REG_A2XX_RB_COPY_DEST_OFFSET 0x0000231c
1473 #define A2XX_RB_COPY_DEST_OFFSET_X__MASK 0x00001fff
1474 #define A2XX_RB_COPY_DEST_OFFSET_X__SHIFT 0
1475 static inline uint32_t A2XX_RB_COPY_DEST_OFFSET_X(uint32_t val
)
1477 return ((val
) << A2XX_RB_COPY_DEST_OFFSET_X__SHIFT
) & A2XX_RB_COPY_DEST_OFFSET_X__MASK
;
1479 #define A2XX_RB_COPY_DEST_OFFSET_Y__MASK 0x03ffe000
1480 #define A2XX_RB_COPY_DEST_OFFSET_Y__SHIFT 13
1481 static inline uint32_t A2XX_RB_COPY_DEST_OFFSET_Y(uint32_t val
)
1483 return ((val
) << A2XX_RB_COPY_DEST_OFFSET_Y__SHIFT
) & A2XX_RB_COPY_DEST_OFFSET_Y__MASK
;
1486 #define REG_A2XX_RB_DEPTH_CLEAR 0x0000231d
1488 #define REG_A2XX_RB_SAMPLE_COUNT_CTL 0x00002324
1490 #define REG_A2XX_RB_COLOR_DEST_MASK 0x00002326
1492 #define REG_A2XX_A225_GRAS_UCP0X 0x00002340
1494 #define REG_A2XX_A225_GRAS_UCP5W 0x00002357
1496 #define REG_A2XX_A225_GRAS_UCP_ENABLED 0x00002360
1498 #define REG_A2XX_PA_SU_POLY_OFFSET_FRONT_SCALE 0x00002380
1500 #define REG_A2XX_PA_SU_POLY_OFFSET_BACK_OFFSET 0x00002383
1502 #define REG_A2XX_SQ_CONSTANT_0 0x00004000
1504 #define REG_A2XX_SQ_FETCH_0 0x00004800
1506 #define REG_A2XX_SQ_CF_BOOLEANS 0x00004900
1508 #define REG_A2XX_SQ_CF_LOOP 0x00004908
1510 #define REG_A2XX_COHER_SIZE_PM4 0x00000a29
1512 #define REG_A2XX_COHER_BASE_PM4 0x00000a2a
1514 #define REG_A2XX_COHER_STATUS_PM4 0x00000a2b
1516 #define REG_A2XX_SQ_TEX_0 0x00000000
1517 #define A2XX_SQ_TEX_0_CLAMP_X__MASK 0x00001c00
1518 #define A2XX_SQ_TEX_0_CLAMP_X__SHIFT 10
1519 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_X(enum sq_tex_clamp val
)
1521 return ((val
) << A2XX_SQ_TEX_0_CLAMP_X__SHIFT
) & A2XX_SQ_TEX_0_CLAMP_X__MASK
;
1523 #define A2XX_SQ_TEX_0_CLAMP_Y__MASK 0x0000e000
1524 #define A2XX_SQ_TEX_0_CLAMP_Y__SHIFT 13
1525 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_Y(enum sq_tex_clamp val
)
1527 return ((val
) << A2XX_SQ_TEX_0_CLAMP_Y__SHIFT
) & A2XX_SQ_TEX_0_CLAMP_Y__MASK
;
1529 #define A2XX_SQ_TEX_0_CLAMP_Z__MASK 0x00070000
1530 #define A2XX_SQ_TEX_0_CLAMP_Z__SHIFT 16
1531 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_Z(enum sq_tex_clamp val
)
1533 return ((val
) << A2XX_SQ_TEX_0_CLAMP_Z__SHIFT
) & A2XX_SQ_TEX_0_CLAMP_Z__MASK
;
1535 #define A2XX_SQ_TEX_0_PITCH__MASK 0xffc00000
1536 #define A2XX_SQ_TEX_0_PITCH__SHIFT 22
1537 static inline uint32_t A2XX_SQ_TEX_0_PITCH(uint32_t val
)
1539 return ((val
>> 5) << A2XX_SQ_TEX_0_PITCH__SHIFT
) & A2XX_SQ_TEX_0_PITCH__MASK
;
1542 #define REG_A2XX_SQ_TEX_1 0x00000001
1544 #define REG_A2XX_SQ_TEX_2 0x00000002
1545 #define A2XX_SQ_TEX_2_WIDTH__MASK 0x00001fff
1546 #define A2XX_SQ_TEX_2_WIDTH__SHIFT 0
1547 static inline uint32_t A2XX_SQ_TEX_2_WIDTH(uint32_t val
)
1549 return ((val
) << A2XX_SQ_TEX_2_WIDTH__SHIFT
) & A2XX_SQ_TEX_2_WIDTH__MASK
;
1551 #define A2XX_SQ_TEX_2_HEIGHT__MASK 0x03ffe000
1552 #define A2XX_SQ_TEX_2_HEIGHT__SHIFT 13
1553 static inline uint32_t A2XX_SQ_TEX_2_HEIGHT(uint32_t val
)
1555 return ((val
) << A2XX_SQ_TEX_2_HEIGHT__SHIFT
) & A2XX_SQ_TEX_2_HEIGHT__MASK
;
1558 #define REG_A2XX_SQ_TEX_3 0x00000003
1559 #define A2XX_SQ_TEX_3_SWIZ_X__MASK 0x0000000e
1560 #define A2XX_SQ_TEX_3_SWIZ_X__SHIFT 1
1561 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_X(enum sq_tex_swiz val
)
1563 return ((val
) << A2XX_SQ_TEX_3_SWIZ_X__SHIFT
) & A2XX_SQ_TEX_3_SWIZ_X__MASK
;
1565 #define A2XX_SQ_TEX_3_SWIZ_Y__MASK 0x00000070
1566 #define A2XX_SQ_TEX_3_SWIZ_Y__SHIFT 4
1567 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_Y(enum sq_tex_swiz val
)
1569 return ((val
) << A2XX_SQ_TEX_3_SWIZ_Y__SHIFT
) & A2XX_SQ_TEX_3_SWIZ_Y__MASK
;
1571 #define A2XX_SQ_TEX_3_SWIZ_Z__MASK 0x00000380
1572 #define A2XX_SQ_TEX_3_SWIZ_Z__SHIFT 7
1573 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_Z(enum sq_tex_swiz val
)
1575 return ((val
) << A2XX_SQ_TEX_3_SWIZ_Z__SHIFT
) & A2XX_SQ_TEX_3_SWIZ_Z__MASK
;
1577 #define A2XX_SQ_TEX_3_SWIZ_W__MASK 0x00001c00
1578 #define A2XX_SQ_TEX_3_SWIZ_W__SHIFT 10
1579 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_W(enum sq_tex_swiz val
)
1581 return ((val
) << A2XX_SQ_TEX_3_SWIZ_W__SHIFT
) & A2XX_SQ_TEX_3_SWIZ_W__MASK
;
1583 #define A2XX_SQ_TEX_3_XY_MAG_FILTER__MASK 0x00180000
1584 #define A2XX_SQ_TEX_3_XY_MAG_FILTER__SHIFT 19
1585 static inline uint32_t A2XX_SQ_TEX_3_XY_MAG_FILTER(enum sq_tex_filter val
)
1587 return ((val
) << A2XX_SQ_TEX_3_XY_MAG_FILTER__SHIFT
) & A2XX_SQ_TEX_3_XY_MAG_FILTER__MASK
;
1589 #define A2XX_SQ_TEX_3_XY_MIN_FILTER__MASK 0x00600000
1590 #define A2XX_SQ_TEX_3_XY_MIN_FILTER__SHIFT 21
1591 static inline uint32_t A2XX_SQ_TEX_3_XY_MIN_FILTER(enum sq_tex_filter val
)
1593 return ((val
) << A2XX_SQ_TEX_3_XY_MIN_FILTER__SHIFT
) & A2XX_SQ_TEX_3_XY_MIN_FILTER__MASK
;
1597 #endif /* A2XX_XML */