1b8e80941Smrg/*
2b8e80941Smrg * Vega 3D Registers
3b8e80941Smrg *
4b8e80941Smrg * Copyright (C) 2016  Advanced Micro Devices, Inc.
5b8e80941Smrg *
6b8e80941Smrg * Permission is hereby granted, free of charge, to any person obtaining a
7b8e80941Smrg * copy of this software and associated documentation files (the "Software"),
8b8e80941Smrg * to deal in the Software without restriction, including without limitation
9b8e80941Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10b8e80941Smrg * and/or sell copies of the Software, and to permit persons to whom the
11b8e80941Smrg * Software is furnished to do so, subject to the following conditions:
12b8e80941Smrg *
13b8e80941Smrg * The above copyright notice and this permission notice shall be included
14b8e80941Smrg * in all copies or substantial portions of the Software.
15b8e80941Smrg *
16b8e80941Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17b8e80941Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18b8e80941Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19b8e80941Smrg * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20b8e80941Smrg * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21b8e80941Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22b8e80941Smrg */
23b8e80941Smrg
24b8e80941Smrg#ifndef GFX9D_H
25b8e80941Smrg#define GFX9D_H
26b8e80941Smrg
27b8e80941Smrg#define R_008008_GRBM_STATUS2                                           0x008008
28b8e80941Smrg#define   S_008008_ME0PIPE1_CMDFIFO_AVAIL(x)                          (((unsigned)(x) & 0x0F) << 0)
29b8e80941Smrg#define   G_008008_ME0PIPE1_CMDFIFO_AVAIL(x)                          (((x) >> 0) & 0x0F)
30b8e80941Smrg#define   C_008008_ME0PIPE1_CMDFIFO_AVAIL                             0xFFFFFFF0
31b8e80941Smrg#define   S_008008_ME0PIPE1_CF_RQ_PENDING(x)                          (((unsigned)(x) & 0x1) << 4)
32b8e80941Smrg#define   G_008008_ME0PIPE1_CF_RQ_PENDING(x)                          (((x) >> 4) & 0x1)
33b8e80941Smrg#define   C_008008_ME0PIPE1_CF_RQ_PENDING                             0xFFFFFFEF
34b8e80941Smrg#define   S_008008_ME0PIPE1_PF_RQ_PENDING(x)                          (((unsigned)(x) & 0x1) << 5)
35b8e80941Smrg#define   G_008008_ME0PIPE1_PF_RQ_PENDING(x)                          (((x) >> 5) & 0x1)
36b8e80941Smrg#define   C_008008_ME0PIPE1_PF_RQ_PENDING                             0xFFFFFFDF
37b8e80941Smrg#define   S_008008_ME1PIPE0_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 6)
38b8e80941Smrg#define   G_008008_ME1PIPE0_RQ_PENDING(x)                             (((x) >> 6) & 0x1)
39b8e80941Smrg#define   C_008008_ME1PIPE0_RQ_PENDING                                0xFFFFFFBF
40b8e80941Smrg#define   S_008008_ME1PIPE1_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 7)
41b8e80941Smrg#define   G_008008_ME1PIPE1_RQ_PENDING(x)                             (((x) >> 7) & 0x1)
42b8e80941Smrg#define   C_008008_ME1PIPE1_RQ_PENDING                                0xFFFFFF7F
43b8e80941Smrg#define   S_008008_ME1PIPE2_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 8)
44b8e80941Smrg#define   G_008008_ME1PIPE2_RQ_PENDING(x)                             (((x) >> 8) & 0x1)
45b8e80941Smrg#define   C_008008_ME1PIPE2_RQ_PENDING                                0xFFFFFEFF
46b8e80941Smrg#define   S_008008_ME1PIPE3_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 9)
47b8e80941Smrg#define   G_008008_ME1PIPE3_RQ_PENDING(x)                             (((x) >> 9) & 0x1)
48b8e80941Smrg#define   C_008008_ME1PIPE3_RQ_PENDING                                0xFFFFFDFF
49b8e80941Smrg#define   S_008008_ME2PIPE0_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 10)
50b8e80941Smrg#define   G_008008_ME2PIPE0_RQ_PENDING(x)                             (((x) >> 10) & 0x1)
51b8e80941Smrg#define   C_008008_ME2PIPE0_RQ_PENDING                                0xFFFFFBFF
52b8e80941Smrg#define   S_008008_ME2PIPE1_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 11)
53b8e80941Smrg#define   G_008008_ME2PIPE1_RQ_PENDING(x)                             (((x) >> 11) & 0x1)
54b8e80941Smrg#define   C_008008_ME2PIPE1_RQ_PENDING                                0xFFFFF7FF
55b8e80941Smrg#define   S_008008_ME2PIPE2_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 12)
56b8e80941Smrg#define   G_008008_ME2PIPE2_RQ_PENDING(x)                             (((x) >> 12) & 0x1)
57b8e80941Smrg#define   C_008008_ME2PIPE2_RQ_PENDING                                0xFFFFEFFF
58b8e80941Smrg#define   S_008008_ME2PIPE3_RQ_PENDING(x)                             (((unsigned)(x) & 0x1) << 13)
59b8e80941Smrg#define   G_008008_ME2PIPE3_RQ_PENDING(x)                             (((x) >> 13) & 0x1)
60b8e80941Smrg#define   C_008008_ME2PIPE3_RQ_PENDING                                0xFFFFDFFF
61b8e80941Smrg#define   S_008008_RLC_RQ_PENDING(x)                                  (((unsigned)(x) & 0x1) << 14)
62b8e80941Smrg#define   G_008008_RLC_RQ_PENDING(x)                                  (((x) >> 14) & 0x1)
63b8e80941Smrg#define   C_008008_RLC_RQ_PENDING                                     0xFFFFBFFF
64b8e80941Smrg#define   S_008008_UTCL2_BUSY(x)                                      (((unsigned)(x) & 0x1) << 15)
65b8e80941Smrg#define   G_008008_UTCL2_BUSY(x)                                      (((x) >> 15) & 0x1)
66b8e80941Smrg#define   C_008008_UTCL2_BUSY                                         0xFFFF7FFF
67b8e80941Smrg#define   S_008008_EA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 16)
68b8e80941Smrg#define   G_008008_EA_BUSY(x)                                         (((x) >> 16) & 0x1)
69b8e80941Smrg#define   C_008008_EA_BUSY                                            0xFFFEFFFF
70b8e80941Smrg#define   S_008008_RMI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 17)
71b8e80941Smrg#define   G_008008_RMI_BUSY(x)                                        (((x) >> 17) & 0x1)
72b8e80941Smrg#define   C_008008_RMI_BUSY                                           0xFFFDFFFF
73b8e80941Smrg#define   S_008008_UTCL2_RQ_PENDING(x)                                (((unsigned)(x) & 0x1) << 18)
74b8e80941Smrg#define   G_008008_UTCL2_RQ_PENDING(x)                                (((x) >> 18) & 0x1)
75b8e80941Smrg#define   C_008008_UTCL2_RQ_PENDING                                   0xFFFBFFFF
76b8e80941Smrg#define   S_008008_CPF_RQ_PENDING(x)                                  (((unsigned)(x) & 0x1) << 19)
77b8e80941Smrg#define   G_008008_CPF_RQ_PENDING(x)                                  (((x) >> 19) & 0x1)
78b8e80941Smrg#define   C_008008_CPF_RQ_PENDING                                     0xFFF7FFFF
79b8e80941Smrg#define   S_008008_EA_LINK_BUSY(x)                                    (((unsigned)(x) & 0x1) << 20)
80b8e80941Smrg#define   G_008008_EA_LINK_BUSY(x)                                    (((x) >> 20) & 0x1)
81b8e80941Smrg#define   C_008008_EA_LINK_BUSY                                       0xFFEFFFFF
82b8e80941Smrg#define   S_008008_RLC_BUSY(x)                                        (((unsigned)(x) & 0x1) << 24)
83b8e80941Smrg#define   G_008008_RLC_BUSY(x)                                        (((x) >> 24) & 0x1)
84b8e80941Smrg#define   C_008008_RLC_BUSY                                           0xFEFFFFFF
85b8e80941Smrg#define   S_008008_TC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
86b8e80941Smrg#define   G_008008_TC_BUSY(x)                                         (((x) >> 25) & 0x1)
87b8e80941Smrg#define   C_008008_TC_BUSY                                            0xFDFFFFFF
88b8e80941Smrg#define   S_008008_TCC_CC_RESIDENT(x)                                 (((unsigned)(x) & 0x1) << 26)
89b8e80941Smrg#define   G_008008_TCC_CC_RESIDENT(x)                                 (((x) >> 26) & 0x1)
90b8e80941Smrg#define   C_008008_TCC_CC_RESIDENT                                    0xFBFFFFFF
91b8e80941Smrg#define   S_008008_CPF_BUSY(x)                                        (((unsigned)(x) & 0x1) << 28)
92b8e80941Smrg#define   G_008008_CPF_BUSY(x)                                        (((x) >> 28) & 0x1)
93b8e80941Smrg#define   C_008008_CPF_BUSY                                           0xEFFFFFFF
94b8e80941Smrg#define   S_008008_CPC_BUSY(x)                                        (((unsigned)(x) & 0x1) << 29)
95b8e80941Smrg#define   G_008008_CPC_BUSY(x)                                        (((x) >> 29) & 0x1)
96b8e80941Smrg#define   C_008008_CPC_BUSY                                           0xDFFFFFFF
97b8e80941Smrg#define   S_008008_CPG_BUSY(x)                                        (((unsigned)(x) & 0x1) << 30)
98b8e80941Smrg#define   G_008008_CPG_BUSY(x)                                        (((x) >> 30) & 0x1)
99b8e80941Smrg#define   C_008008_CPG_BUSY                                           0xBFFFFFFF
100b8e80941Smrg#define   S_008008_CPAXI_BUSY(x)                                      (((unsigned)(x) & 0x1) << 31)
101b8e80941Smrg#define   G_008008_CPAXI_BUSY(x)                                      (((x) >> 31) & 0x1)
102b8e80941Smrg#define   C_008008_CPAXI_BUSY                                         0x7FFFFFFF
103b8e80941Smrg#define R_008010_GRBM_STATUS                                            0x008010
104b8e80941Smrg#define   S_008010_ME0PIPE0_CMDFIFO_AVAIL(x)                          (((unsigned)(x) & 0x0F) << 0)
105b8e80941Smrg#define   G_008010_ME0PIPE0_CMDFIFO_AVAIL(x)                          (((x) >> 0) & 0x0F)
106b8e80941Smrg#define   C_008010_ME0PIPE0_CMDFIFO_AVAIL                             0xFFFFFFF0
107b8e80941Smrg#define   S_008010_RSMU_RQ_PENDING(x)                                 (((unsigned)(x) & 0x1) << 5)
108b8e80941Smrg#define   G_008010_RSMU_RQ_PENDING(x)                                 (((x) >> 5) & 0x1)
109b8e80941Smrg#define   C_008010_RSMU_RQ_PENDING                                    0xFFFFFFDF
110b8e80941Smrg#define   S_008010_ME0PIPE0_CF_RQ_PENDING(x)                          (((unsigned)(x) & 0x1) << 7)
111b8e80941Smrg#define   G_008010_ME0PIPE0_CF_RQ_PENDING(x)                          (((x) >> 7) & 0x1)
112b8e80941Smrg#define   C_008010_ME0PIPE0_CF_RQ_PENDING                             0xFFFFFF7F
113b8e80941Smrg#define   S_008010_ME0PIPE0_PF_RQ_PENDING(x)                          (((unsigned)(x) & 0x1) << 8)
114b8e80941Smrg#define   G_008010_ME0PIPE0_PF_RQ_PENDING(x)                          (((x) >> 8) & 0x1)
115b8e80941Smrg#define   C_008010_ME0PIPE0_PF_RQ_PENDING                             0xFFFFFEFF
116b8e80941Smrg#define   S_008010_GDS_DMA_RQ_PENDING(x)                              (((unsigned)(x) & 0x1) << 9)
117b8e80941Smrg#define   G_008010_GDS_DMA_RQ_PENDING(x)                              (((x) >> 9) & 0x1)
118b8e80941Smrg#define   C_008010_GDS_DMA_RQ_PENDING                                 0xFFFFFDFF
119b8e80941Smrg#define   S_008010_DB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 12)
120b8e80941Smrg#define   G_008010_DB_CLEAN(x)                                        (((x) >> 12) & 0x1)
121b8e80941Smrg#define   C_008010_DB_CLEAN                                           0xFFFFEFFF
122b8e80941Smrg#define   S_008010_CB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 13)
123b8e80941Smrg#define   G_008010_CB_CLEAN(x)                                        (((x) >> 13) & 0x1)
124b8e80941Smrg#define   C_008010_CB_CLEAN                                           0xFFFFDFFF
125b8e80941Smrg#define   S_008010_TA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 14)
126b8e80941Smrg#define   G_008010_TA_BUSY(x)                                         (((x) >> 14) & 0x1)
127b8e80941Smrg#define   C_008010_TA_BUSY                                            0xFFFFBFFF
128b8e80941Smrg#define   S_008010_GDS_BUSY(x)                                        (((unsigned)(x) & 0x1) << 15)
129b8e80941Smrg#define   G_008010_GDS_BUSY(x)                                        (((x) >> 15) & 0x1)
130b8e80941Smrg#define   C_008010_GDS_BUSY                                           0xFFFF7FFF
131b8e80941Smrg#define   S_008010_WD_BUSY_NO_DMA(x)                                  (((unsigned)(x) & 0x1) << 16)
132b8e80941Smrg#define   G_008010_WD_BUSY_NO_DMA(x)                                  (((x) >> 16) & 0x1)
133b8e80941Smrg#define   C_008010_WD_BUSY_NO_DMA                                     0xFFFEFFFF
134b8e80941Smrg#define   S_008010_VGT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 17)
135b8e80941Smrg#define   G_008010_VGT_BUSY(x)                                        (((x) >> 17) & 0x1)
136b8e80941Smrg#define   C_008010_VGT_BUSY                                           0xFFFDFFFF
137b8e80941Smrg#define   S_008010_IA_BUSY_NO_DMA(x)                                  (((unsigned)(x) & 0x1) << 18)
138b8e80941Smrg#define   G_008010_IA_BUSY_NO_DMA(x)                                  (((x) >> 18) & 0x1)
139b8e80941Smrg#define   C_008010_IA_BUSY_NO_DMA                                     0xFFFBFFFF
140b8e80941Smrg#define   S_008010_IA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 19)
141b8e80941Smrg#define   G_008010_IA_BUSY(x)                                         (((x) >> 19) & 0x1)
142b8e80941Smrg#define   C_008010_IA_BUSY                                            0xFFF7FFFF
143b8e80941Smrg#define   S_008010_SX_BUSY(x)                                         (((unsigned)(x) & 0x1) << 20)
144b8e80941Smrg#define   G_008010_SX_BUSY(x)                                         (((x) >> 20) & 0x1)
145b8e80941Smrg#define   C_008010_SX_BUSY                                            0xFFEFFFFF
146b8e80941Smrg#define   S_008010_WD_BUSY(x)                                         (((unsigned)(x) & 0x1) << 21)
147b8e80941Smrg#define   G_008010_WD_BUSY(x)                                         (((x) >> 21) & 0x1)
148b8e80941Smrg#define   C_008010_WD_BUSY                                            0xFFDFFFFF
149b8e80941Smrg#define   S_008010_SPI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
150b8e80941Smrg#define   G_008010_SPI_BUSY(x)                                        (((x) >> 22) & 0x1)
151b8e80941Smrg#define   C_008010_SPI_BUSY                                           0xFFBFFFFF
152b8e80941Smrg#define   S_008010_BCI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 23)
153b8e80941Smrg#define   G_008010_BCI_BUSY(x)                                        (((x) >> 23) & 0x1)
154b8e80941Smrg#define   C_008010_BCI_BUSY                                           0xFF7FFFFF
155b8e80941Smrg#define   S_008010_SC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 24)
156b8e80941Smrg#define   G_008010_SC_BUSY(x)                                         (((x) >> 24) & 0x1)
157b8e80941Smrg#define   C_008010_SC_BUSY                                            0xFEFFFFFF
158b8e80941Smrg#define   S_008010_PA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
159b8e80941Smrg#define   G_008010_PA_BUSY(x)                                         (((x) >> 25) & 0x1)
160b8e80941Smrg#define   C_008010_PA_BUSY                                            0xFDFFFFFF
161b8e80941Smrg#define   S_008010_DB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
162b8e80941Smrg#define   G_008010_DB_BUSY(x)                                         (((x) >> 26) & 0x1)
163b8e80941Smrg#define   C_008010_DB_BUSY                                            0xFBFFFFFF
164b8e80941Smrg#define   S_008010_CP_COHERENCY_BUSY(x)                               (((unsigned)(x) & 0x1) << 28)
165b8e80941Smrg#define   G_008010_CP_COHERENCY_BUSY(x)                               (((x) >> 28) & 0x1)
166b8e80941Smrg#define   C_008010_CP_COHERENCY_BUSY                                  0xEFFFFFFF
167b8e80941Smrg#define   S_008010_CP_BUSY(x)                                         (((unsigned)(x) & 0x1) << 29)
168b8e80941Smrg#define   G_008010_CP_BUSY(x)                                         (((x) >> 29) & 0x1)
169b8e80941Smrg#define   C_008010_CP_BUSY                                            0xDFFFFFFF
170b8e80941Smrg#define   S_008010_CB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 30)
171b8e80941Smrg#define   G_008010_CB_BUSY(x)                                         (((x) >> 30) & 0x1)
172b8e80941Smrg#define   C_008010_CB_BUSY                                            0xBFFFFFFF
173b8e80941Smrg#define   S_008010_GUI_ACTIVE(x)                                      (((unsigned)(x) & 0x1) << 31)
174b8e80941Smrg#define   G_008010_GUI_ACTIVE(x)                                      (((x) >> 31) & 0x1)
175b8e80941Smrg#define   C_008010_GUI_ACTIVE                                         0x7FFFFFFF
176b8e80941Smrg#define R_008014_GRBM_STATUS_SE0                                        0x008014
177b8e80941Smrg#define   S_008014_DB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 1)
178b8e80941Smrg#define   G_008014_DB_CLEAN(x)                                        (((x) >> 1) & 0x1)
179b8e80941Smrg#define   C_008014_DB_CLEAN                                           0xFFFFFFFD
180b8e80941Smrg#define   S_008014_CB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 2)
181b8e80941Smrg#define   G_008014_CB_CLEAN(x)                                        (((x) >> 2) & 0x1)
182b8e80941Smrg#define   C_008014_CB_CLEAN                                           0xFFFFFFFB
183b8e80941Smrg#define   S_008014_RMI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 21)
184b8e80941Smrg#define   G_008014_RMI_BUSY(x)                                        (((x) >> 21) & 0x1)
185b8e80941Smrg#define   C_008014_RMI_BUSY                                           0xFFDFFFFF
186b8e80941Smrg#define   S_008014_BCI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
187b8e80941Smrg#define   G_008014_BCI_BUSY(x)                                        (((x) >> 22) & 0x1)
188b8e80941Smrg#define   C_008014_BCI_BUSY                                           0xFFBFFFFF
189b8e80941Smrg#define   S_008014_VGT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 23)
190b8e80941Smrg#define   G_008014_VGT_BUSY(x)                                        (((x) >> 23) & 0x1)
191b8e80941Smrg#define   C_008014_VGT_BUSY                                           0xFF7FFFFF
192b8e80941Smrg#define   S_008014_PA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 24)
193b8e80941Smrg#define   G_008014_PA_BUSY(x)                                         (((x) >> 24) & 0x1)
194b8e80941Smrg#define   C_008014_PA_BUSY                                            0xFEFFFFFF
195b8e80941Smrg#define   S_008014_TA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
196b8e80941Smrg#define   G_008014_TA_BUSY(x)                                         (((x) >> 25) & 0x1)
197b8e80941Smrg#define   C_008014_TA_BUSY                                            0xFDFFFFFF
198b8e80941Smrg#define   S_008014_SX_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
199b8e80941Smrg#define   G_008014_SX_BUSY(x)                                         (((x) >> 26) & 0x1)
200b8e80941Smrg#define   C_008014_SX_BUSY                                            0xFBFFFFFF
201b8e80941Smrg#define   S_008014_SPI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 27)
202b8e80941Smrg#define   G_008014_SPI_BUSY(x)                                        (((x) >> 27) & 0x1)
203b8e80941Smrg#define   C_008014_SPI_BUSY                                           0xF7FFFFFF
204b8e80941Smrg#define   S_008014_SC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 29)
205b8e80941Smrg#define   G_008014_SC_BUSY(x)                                         (((x) >> 29) & 0x1)
206b8e80941Smrg#define   C_008014_SC_BUSY                                            0xDFFFFFFF
207b8e80941Smrg#define   S_008014_DB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 30)
208b8e80941Smrg#define   G_008014_DB_BUSY(x)                                         (((x) >> 30) & 0x1)
209b8e80941Smrg#define   C_008014_DB_BUSY                                            0xBFFFFFFF
210b8e80941Smrg#define   S_008014_CB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 31)
211b8e80941Smrg#define   G_008014_CB_BUSY(x)                                         (((x) >> 31) & 0x1)
212b8e80941Smrg#define   C_008014_CB_BUSY                                            0x7FFFFFFF
213b8e80941Smrg#define R_008018_GRBM_STATUS_SE1                                        0x008018
214b8e80941Smrg#define   S_008018_DB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 1)
215b8e80941Smrg#define   G_008018_DB_CLEAN(x)                                        (((x) >> 1) & 0x1)
216b8e80941Smrg#define   C_008018_DB_CLEAN                                           0xFFFFFFFD
217b8e80941Smrg#define   S_008018_CB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 2)
218b8e80941Smrg#define   G_008018_CB_CLEAN(x)                                        (((x) >> 2) & 0x1)
219b8e80941Smrg#define   C_008018_CB_CLEAN                                           0xFFFFFFFB
220b8e80941Smrg#define   S_008018_RMI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 21)
221b8e80941Smrg#define   G_008018_RMI_BUSY(x)                                        (((x) >> 21) & 0x1)
222b8e80941Smrg#define   C_008018_RMI_BUSY                                           0xFFDFFFFF
223b8e80941Smrg#define   S_008018_BCI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
224b8e80941Smrg#define   G_008018_BCI_BUSY(x)                                        (((x) >> 22) & 0x1)
225b8e80941Smrg#define   C_008018_BCI_BUSY                                           0xFFBFFFFF
226b8e80941Smrg#define   S_008018_VGT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 23)
227b8e80941Smrg#define   G_008018_VGT_BUSY(x)                                        (((x) >> 23) & 0x1)
228b8e80941Smrg#define   C_008018_VGT_BUSY                                           0xFF7FFFFF
229b8e80941Smrg#define   S_008018_PA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 24)
230b8e80941Smrg#define   G_008018_PA_BUSY(x)                                         (((x) >> 24) & 0x1)
231b8e80941Smrg#define   C_008018_PA_BUSY                                            0xFEFFFFFF
232b8e80941Smrg#define   S_008018_TA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
233b8e80941Smrg#define   G_008018_TA_BUSY(x)                                         (((x) >> 25) & 0x1)
234b8e80941Smrg#define   C_008018_TA_BUSY                                            0xFDFFFFFF
235b8e80941Smrg#define   S_008018_SX_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
236b8e80941Smrg#define   G_008018_SX_BUSY(x)                                         (((x) >> 26) & 0x1)
237b8e80941Smrg#define   C_008018_SX_BUSY                                            0xFBFFFFFF
238b8e80941Smrg#define   S_008018_SPI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 27)
239b8e80941Smrg#define   G_008018_SPI_BUSY(x)                                        (((x) >> 27) & 0x1)
240b8e80941Smrg#define   C_008018_SPI_BUSY                                           0xF7FFFFFF
241b8e80941Smrg#define   S_008018_SC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 29)
242b8e80941Smrg#define   G_008018_SC_BUSY(x)                                         (((x) >> 29) & 0x1)
243b8e80941Smrg#define   C_008018_SC_BUSY                                            0xDFFFFFFF
244b8e80941Smrg#define   S_008018_DB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 30)
245b8e80941Smrg#define   G_008018_DB_BUSY(x)                                         (((x) >> 30) & 0x1)
246b8e80941Smrg#define   C_008018_DB_BUSY                                            0xBFFFFFFF
247b8e80941Smrg#define   S_008018_CB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 31)
248b8e80941Smrg#define   G_008018_CB_BUSY(x)                                         (((x) >> 31) & 0x1)
249b8e80941Smrg#define   C_008018_CB_BUSY                                            0x7FFFFFFF
250b8e80941Smrg#define R_008038_GRBM_STATUS_SE2                                        0x008038
251b8e80941Smrg#define   S_008038_DB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 1)
252b8e80941Smrg#define   G_008038_DB_CLEAN(x)                                        (((x) >> 1) & 0x1)
253b8e80941Smrg#define   C_008038_DB_CLEAN                                           0xFFFFFFFD
254b8e80941Smrg#define   S_008038_CB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 2)
255b8e80941Smrg#define   G_008038_CB_CLEAN(x)                                        (((x) >> 2) & 0x1)
256b8e80941Smrg#define   C_008038_CB_CLEAN                                           0xFFFFFFFB
257b8e80941Smrg#define   S_008038_RMI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 21)
258b8e80941Smrg#define   G_008038_RMI_BUSY(x)                                        (((x) >> 21) & 0x1)
259b8e80941Smrg#define   C_008038_RMI_BUSY                                           0xFFDFFFFF
260b8e80941Smrg#define   S_008038_BCI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
261b8e80941Smrg#define   G_008038_BCI_BUSY(x)                                        (((x) >> 22) & 0x1)
262b8e80941Smrg#define   C_008038_BCI_BUSY                                           0xFFBFFFFF
263b8e80941Smrg#define   S_008038_VGT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 23)
264b8e80941Smrg#define   G_008038_VGT_BUSY(x)                                        (((x) >> 23) & 0x1)
265b8e80941Smrg#define   C_008038_VGT_BUSY                                           0xFF7FFFFF
266b8e80941Smrg#define   S_008038_PA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 24)
267b8e80941Smrg#define   G_008038_PA_BUSY(x)                                         (((x) >> 24) & 0x1)
268b8e80941Smrg#define   C_008038_PA_BUSY                                            0xFEFFFFFF
269b8e80941Smrg#define   S_008038_TA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
270b8e80941Smrg#define   G_008038_TA_BUSY(x)                                         (((x) >> 25) & 0x1)
271b8e80941Smrg#define   C_008038_TA_BUSY                                            0xFDFFFFFF
272b8e80941Smrg#define   S_008038_SX_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
273b8e80941Smrg#define   G_008038_SX_BUSY(x)                                         (((x) >> 26) & 0x1)
274b8e80941Smrg#define   C_008038_SX_BUSY                                            0xFBFFFFFF
275b8e80941Smrg#define   S_008038_SPI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 27)
276b8e80941Smrg#define   G_008038_SPI_BUSY(x)                                        (((x) >> 27) & 0x1)
277b8e80941Smrg#define   C_008038_SPI_BUSY                                           0xF7FFFFFF
278b8e80941Smrg#define   S_008038_SC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 29)
279b8e80941Smrg#define   G_008038_SC_BUSY(x)                                         (((x) >> 29) & 0x1)
280b8e80941Smrg#define   C_008038_SC_BUSY                                            0xDFFFFFFF
281b8e80941Smrg#define   S_008038_DB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 30)
282b8e80941Smrg#define   G_008038_DB_BUSY(x)                                         (((x) >> 30) & 0x1)
283b8e80941Smrg#define   C_008038_DB_BUSY                                            0xBFFFFFFF
284b8e80941Smrg#define   S_008038_CB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 31)
285b8e80941Smrg#define   G_008038_CB_BUSY(x)                                         (((x) >> 31) & 0x1)
286b8e80941Smrg#define   C_008038_CB_BUSY                                            0x7FFFFFFF
287b8e80941Smrg#define R_00803C_GRBM_STATUS_SE3                                        0x00803C
288b8e80941Smrg#define   S_00803C_DB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 1)
289b8e80941Smrg#define   G_00803C_DB_CLEAN(x)                                        (((x) >> 1) & 0x1)
290b8e80941Smrg#define   C_00803C_DB_CLEAN                                           0xFFFFFFFD
291b8e80941Smrg#define   S_00803C_CB_CLEAN(x)                                        (((unsigned)(x) & 0x1) << 2)
292b8e80941Smrg#define   G_00803C_CB_CLEAN(x)                                        (((x) >> 2) & 0x1)
293b8e80941Smrg#define   C_00803C_CB_CLEAN                                           0xFFFFFFFB
294b8e80941Smrg#define   S_00803C_RMI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 21)
295b8e80941Smrg#define   G_00803C_RMI_BUSY(x)                                        (((x) >> 21) & 0x1)
296b8e80941Smrg#define   C_00803C_RMI_BUSY                                           0xFFDFFFFF
297b8e80941Smrg#define   S_00803C_BCI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
298b8e80941Smrg#define   G_00803C_BCI_BUSY(x)                                        (((x) >> 22) & 0x1)
299b8e80941Smrg#define   C_00803C_BCI_BUSY                                           0xFFBFFFFF
300b8e80941Smrg#define   S_00803C_VGT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 23)
301b8e80941Smrg#define   G_00803C_VGT_BUSY(x)                                        (((x) >> 23) & 0x1)
302b8e80941Smrg#define   C_00803C_VGT_BUSY                                           0xFF7FFFFF
303b8e80941Smrg#define   S_00803C_PA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 24)
304b8e80941Smrg#define   G_00803C_PA_BUSY(x)                                         (((x) >> 24) & 0x1)
305b8e80941Smrg#define   C_00803C_PA_BUSY                                            0xFEFFFFFF
306b8e80941Smrg#define   S_00803C_TA_BUSY(x)                                         (((unsigned)(x) & 0x1) << 25)
307b8e80941Smrg#define   G_00803C_TA_BUSY(x)                                         (((x) >> 25) & 0x1)
308b8e80941Smrg#define   C_00803C_TA_BUSY                                            0xFDFFFFFF
309b8e80941Smrg#define   S_00803C_SX_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
310b8e80941Smrg#define   G_00803C_SX_BUSY(x)                                         (((x) >> 26) & 0x1)
311b8e80941Smrg#define   C_00803C_SX_BUSY                                            0xFBFFFFFF
312b8e80941Smrg#define   S_00803C_SPI_BUSY(x)                                        (((unsigned)(x) & 0x1) << 27)
313b8e80941Smrg#define   G_00803C_SPI_BUSY(x)                                        (((x) >> 27) & 0x1)
314b8e80941Smrg#define   C_00803C_SPI_BUSY                                           0xF7FFFFFF
315b8e80941Smrg#define   S_00803C_SC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 29)
316b8e80941Smrg#define   G_00803C_SC_BUSY(x)                                         (((x) >> 29) & 0x1)
317b8e80941Smrg#define   C_00803C_SC_BUSY                                            0xDFFFFFFF
318b8e80941Smrg#define   S_00803C_DB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 30)
319b8e80941Smrg#define   G_00803C_DB_BUSY(x)                                         (((x) >> 30) & 0x1)
320b8e80941Smrg#define   C_00803C_DB_BUSY                                            0xBFFFFFFF
321b8e80941Smrg#define   S_00803C_CB_BUSY(x)                                         (((unsigned)(x) & 0x1) << 31)
322b8e80941Smrg#define   G_00803C_CB_BUSY(x)                                         (((x) >> 31) & 0x1)
323b8e80941Smrg#define   C_00803C_CB_BUSY                                            0x7FFFFFFF
324b8e80941Smrg#define R_0300FC_CP_STRMOUT_CNTL                                        0x0300FC
325b8e80941Smrg#define   S_0300FC_OFFSET_UPDATE_DONE(x)                              (((unsigned)(x) & 0x1) << 0)
326b8e80941Smrg#define   G_0300FC_OFFSET_UPDATE_DONE(x)                              (((x) >> 0) & 0x1)
327b8e80941Smrg#define   C_0300FC_OFFSET_UPDATE_DONE                                 0xFFFFFFFE
328b8e80941Smrg#define R_0301E4_CP_COHER_BASE_HI                                       0x0301E4
329b8e80941Smrg#define   S_0301E4_COHER_BASE_HI_256B(x)                              (((unsigned)(x) & 0xFF) << 0)
330b8e80941Smrg#define   G_0301E4_COHER_BASE_HI_256B(x)                              (((x) >> 0) & 0xFF)
331b8e80941Smrg#define   C_0301E4_COHER_BASE_HI_256B                                 0xFFFFFF00
332b8e80941Smrg#define R_0301EC_CP_COHER_START_DELAY                                   0x0301EC
333b8e80941Smrg#define   S_0301EC_START_DELAY_COUNT(x)                               (((unsigned)(x) & 0x3F) << 0)
334b8e80941Smrg#define   G_0301EC_START_DELAY_COUNT(x)                               (((x) >> 0) & 0x3F)
335b8e80941Smrg#define   C_0301EC_START_DELAY_COUNT                                  0xFFFFFFC0
336b8e80941Smrg#define R_0301F0_CP_COHER_CNTL                                          0x0301F0
337b8e80941Smrg#define   S_0301F0_TC_NC_ACTION_ENA(x)                                (((unsigned)(x) & 0x1) << 3)
338b8e80941Smrg#define   G_0301F0_TC_NC_ACTION_ENA(x)                                (((x) >> 3) & 0x1)
339b8e80941Smrg#define   C_0301F0_TC_NC_ACTION_ENA                                   0xFFFFFFF7
340b8e80941Smrg#define   S_0301F0_TC_WC_ACTION_ENA(x)                                (((unsigned)(x) & 0x1) << 4)
341b8e80941Smrg#define   G_0301F0_TC_WC_ACTION_ENA(x)                                (((x) >> 4) & 0x1)
342b8e80941Smrg#define   C_0301F0_TC_WC_ACTION_ENA                                   0xFFFFFFEF
343b8e80941Smrg#define   S_0301F0_TC_INV_METADATA_ACTION_ENA(x)                      (((unsigned)(x) & 0x1) << 5)
344b8e80941Smrg#define   G_0301F0_TC_INV_METADATA_ACTION_ENA(x)                      (((x) >> 5) & 0x1)
345b8e80941Smrg#define   C_0301F0_TC_INV_METADATA_ACTION_ENA                         0xFFFFFFDF
346b8e80941Smrg#define   S_0301F0_TCL1_VOL_ACTION_ENA(x)                             (((unsigned)(x) & 0x1) << 15)
347b8e80941Smrg#define   G_0301F0_TCL1_VOL_ACTION_ENA(x)                             (((x) >> 15) & 0x1)
348b8e80941Smrg#define   C_0301F0_TCL1_VOL_ACTION_ENA                                0xFFFF7FFF
349b8e80941Smrg#define   S_0301F0_TC_WB_ACTION_ENA(x)                                (((unsigned)(x) & 0x1) << 18)
350b8e80941Smrg#define   G_0301F0_TC_WB_ACTION_ENA(x)                                (((x) >> 18) & 0x1)
351b8e80941Smrg#define   C_0301F0_TC_WB_ACTION_ENA                                   0xFFFBFFFF
352b8e80941Smrg#define   S_0301F0_TCL1_ACTION_ENA(x)                                 (((unsigned)(x) & 0x1) << 22)
353b8e80941Smrg#define   G_0301F0_TCL1_ACTION_ENA(x)                                 (((x) >> 22) & 0x1)
354b8e80941Smrg#define   C_0301F0_TCL1_ACTION_ENA                                    0xFFBFFFFF
355b8e80941Smrg#define   S_0301F0_TC_ACTION_ENA(x)                                   (((unsigned)(x) & 0x1) << 23)
356b8e80941Smrg#define   G_0301F0_TC_ACTION_ENA(x)                                   (((x) >> 23) & 0x1)
357b8e80941Smrg#define   C_0301F0_TC_ACTION_ENA                                      0xFF7FFFFF
358b8e80941Smrg#define   S_0301F0_CB_ACTION_ENA(x)                                   (((unsigned)(x) & 0x1) << 25)
359b8e80941Smrg#define   G_0301F0_CB_ACTION_ENA(x)                                   (((x) >> 25) & 0x1)
360b8e80941Smrg#define   C_0301F0_CB_ACTION_ENA                                      0xFDFFFFFF
361b8e80941Smrg#define   S_0301F0_DB_ACTION_ENA(x)                                   (((unsigned)(x) & 0x1) << 26)
362b8e80941Smrg#define   G_0301F0_DB_ACTION_ENA(x)                                   (((x) >> 26) & 0x1)
363b8e80941Smrg#define   C_0301F0_DB_ACTION_ENA                                      0xFBFFFFFF
364b8e80941Smrg#define   S_0301F0_SH_KCACHE_ACTION_ENA(x)                            (((unsigned)(x) & 0x1) << 27)
365b8e80941Smrg#define   G_0301F0_SH_KCACHE_ACTION_ENA(x)                            (((x) >> 27) & 0x1)
366b8e80941Smrg#define   C_0301F0_SH_KCACHE_ACTION_ENA                               0xF7FFFFFF
367b8e80941Smrg#define   S_0301F0_SH_KCACHE_VOL_ACTION_ENA(x)                        (((unsigned)(x) & 0x1) << 28)
368b8e80941Smrg#define   G_0301F0_SH_KCACHE_VOL_ACTION_ENA(x)                        (((x) >> 28) & 0x1)
369b8e80941Smrg#define   C_0301F0_SH_KCACHE_VOL_ACTION_ENA                           0xEFFFFFFF
370b8e80941Smrg#define   S_0301F0_SH_ICACHE_ACTION_ENA(x)                            (((unsigned)(x) & 0x1) << 29)
371b8e80941Smrg#define   G_0301F0_SH_ICACHE_ACTION_ENA(x)                            (((x) >> 29) & 0x1)
372b8e80941Smrg#define   C_0301F0_SH_ICACHE_ACTION_ENA                               0xDFFFFFFF
373b8e80941Smrg#define   S_0301F0_SH_KCACHE_WB_ACTION_ENA(x)                         (((unsigned)(x) & 0x1) << 30)
374b8e80941Smrg#define   G_0301F0_SH_KCACHE_WB_ACTION_ENA(x)                         (((x) >> 30) & 0x1)
375b8e80941Smrg#define   C_0301F0_SH_KCACHE_WB_ACTION_ENA                            0xBFFFFFFF
376b8e80941Smrg#define R_0301F4_CP_COHER_SIZE                                          0x0301F4
377b8e80941Smrg#define R_0301F8_CP_COHER_BASE                                          0x0301F8
378b8e80941Smrg#define R_0301FC_CP_COHER_STATUS                                        0x0301FC
379b8e80941Smrg#define   S_0301FC_MEID(x)                                            (((unsigned)(x) & 0x03) << 24)
380b8e80941Smrg#define   G_0301FC_MEID(x)                                            (((x) >> 24) & 0x03)
381b8e80941Smrg#define   C_0301FC_MEID                                               0xFCFFFFFF
382b8e80941Smrg#define   S_0301FC_STATUS(x)                                          (((unsigned)(x) & 0x1) << 31)
383b8e80941Smrg#define   G_0301FC_STATUS(x)                                          (((x) >> 31) & 0x1)
384b8e80941Smrg#define   C_0301FC_STATUS                                             0x7FFFFFFF
385b8e80941Smrg#define R_008210_CP_CPC_STATUS                                          0x008210
386b8e80941Smrg#define   S_008210_MEC1_BUSY(x)                                       (((unsigned)(x) & 0x1) << 0)
387b8e80941Smrg#define   G_008210_MEC1_BUSY(x)                                       (((x) >> 0) & 0x1)
388b8e80941Smrg#define   C_008210_MEC1_BUSY                                          0xFFFFFFFE
389b8e80941Smrg#define   S_008210_MEC2_BUSY(x)                                       (((unsigned)(x) & 0x1) << 1)
390b8e80941Smrg#define   G_008210_MEC2_BUSY(x)                                       (((x) >> 1) & 0x1)
391b8e80941Smrg#define   C_008210_MEC2_BUSY                                          0xFFFFFFFD
392b8e80941Smrg#define   S_008210_DC0_BUSY(x)                                        (((unsigned)(x) & 0x1) << 2)
393b8e80941Smrg#define   G_008210_DC0_BUSY(x)                                        (((x) >> 2) & 0x1)
394b8e80941Smrg#define   C_008210_DC0_BUSY                                           0xFFFFFFFB
395b8e80941Smrg#define   S_008210_DC1_BUSY(x)                                        (((unsigned)(x) & 0x1) << 3)
396b8e80941Smrg#define   G_008210_DC1_BUSY(x)                                        (((x) >> 3) & 0x1)
397b8e80941Smrg#define   C_008210_DC1_BUSY                                           0xFFFFFFF7
398b8e80941Smrg#define   S_008210_RCIU1_BUSY(x)                                      (((unsigned)(x) & 0x1) << 4)
399b8e80941Smrg#define   G_008210_RCIU1_BUSY(x)                                      (((x) >> 4) & 0x1)
400b8e80941Smrg#define   C_008210_RCIU1_BUSY                                         0xFFFFFFEF
401b8e80941Smrg#define   S_008210_RCIU2_BUSY(x)                                      (((unsigned)(x) & 0x1) << 5)
402b8e80941Smrg#define   G_008210_RCIU2_BUSY(x)                                      (((x) >> 5) & 0x1)
403b8e80941Smrg#define   C_008210_RCIU2_BUSY                                         0xFFFFFFDF
404b8e80941Smrg#define   S_008210_ROQ1_BUSY(x)                                       (((unsigned)(x) & 0x1) << 6)
405b8e80941Smrg#define   G_008210_ROQ1_BUSY(x)                                       (((x) >> 6) & 0x1)
406b8e80941Smrg#define   C_008210_ROQ1_BUSY                                          0xFFFFFFBF
407b8e80941Smrg#define   S_008210_ROQ2_BUSY(x)                                       (((unsigned)(x) & 0x1) << 7)
408b8e80941Smrg#define   G_008210_ROQ2_BUSY(x)                                       (((x) >> 7) & 0x1)
409b8e80941Smrg#define   C_008210_ROQ2_BUSY                                          0xFFFFFF7F
410b8e80941Smrg#define   S_008210_TCIU_BUSY(x)                                       (((unsigned)(x) & 0x1) << 10)
411b8e80941Smrg#define   G_008210_TCIU_BUSY(x)                                       (((x) >> 10) & 0x1)
412b8e80941Smrg#define   C_008210_TCIU_BUSY                                          0xFFFFFBFF
413b8e80941Smrg#define   S_008210_SCRATCH_RAM_BUSY(x)                                (((unsigned)(x) & 0x1) << 11)
414b8e80941Smrg#define   G_008210_SCRATCH_RAM_BUSY(x)                                (((x) >> 11) & 0x1)
415b8e80941Smrg#define   C_008210_SCRATCH_RAM_BUSY                                   0xFFFFF7FF
416b8e80941Smrg#define   S_008210_QU_BUSY(x)                                         (((unsigned)(x) & 0x1) << 12)
417b8e80941Smrg#define   G_008210_QU_BUSY(x)                                         (((x) >> 12) & 0x1)
418b8e80941Smrg#define   C_008210_QU_BUSY                                            0xFFFFEFFF
419b8e80941Smrg#define   S_008210_UTCL2IU_BUSY(x)                                    (((unsigned)(x) & 0x1) << 13)
420b8e80941Smrg#define   G_008210_UTCL2IU_BUSY(x)                                    (((x) >> 13) & 0x1)
421b8e80941Smrg#define   C_008210_UTCL2IU_BUSY                                       0xFFFFDFFF
422b8e80941Smrg#define   S_008210_SAVE_RESTORE_BUSY(x)                               (((unsigned)(x) & 0x1) << 14)
423b8e80941Smrg#define   G_008210_SAVE_RESTORE_BUSY(x)                               (((x) >> 14) & 0x1)
424b8e80941Smrg#define   C_008210_SAVE_RESTORE_BUSY                                  0xFFFFBFFF
425b8e80941Smrg#define   S_008210_CPG_CPC_BUSY(x)                                    (((unsigned)(x) & 0x1) << 29)
426b8e80941Smrg#define   G_008210_CPG_CPC_BUSY(x)                                    (((x) >> 29) & 0x1)
427b8e80941Smrg#define   C_008210_CPG_CPC_BUSY                                       0xDFFFFFFF
428b8e80941Smrg#define   S_008210_CPF_CPC_BUSY(x)                                    (((unsigned)(x) & 0x1) << 30)
429b8e80941Smrg#define   G_008210_CPF_CPC_BUSY(x)                                    (((x) >> 30) & 0x1)
430b8e80941Smrg#define   C_008210_CPF_CPC_BUSY                                       0xBFFFFFFF
431b8e80941Smrg#define   S_008210_CPC_BUSY(x)                                        (((unsigned)(x) & 0x1) << 31)
432b8e80941Smrg#define   G_008210_CPC_BUSY(x)                                        (((x) >> 31) & 0x1)
433b8e80941Smrg#define   C_008210_CPC_BUSY                                           0x7FFFFFFF
434b8e80941Smrg#define R_008214_CP_CPC_BUSY_STAT                                       0x008214
435b8e80941Smrg#define   S_008214_MEC1_LOAD_BUSY(x)                                  (((unsigned)(x) & 0x1) << 0)
436b8e80941Smrg#define   G_008214_MEC1_LOAD_BUSY(x)                                  (((x) >> 0) & 0x1)
437b8e80941Smrg#define   C_008214_MEC1_LOAD_BUSY                                     0xFFFFFFFE
438b8e80941Smrg#define   S_008214_MEC1_SEMAPOHRE_BUSY(x)                             (((unsigned)(x) & 0x1) << 1)
439b8e80941Smrg#define   G_008214_MEC1_SEMAPOHRE_BUSY(x)                             (((x) >> 1) & 0x1)
440b8e80941Smrg#define   C_008214_MEC1_SEMAPOHRE_BUSY                                0xFFFFFFFD
441b8e80941Smrg#define   S_008214_MEC1_MUTEX_BUSY(x)                                 (((unsigned)(x) & 0x1) << 2)
442b8e80941Smrg#define   G_008214_MEC1_MUTEX_BUSY(x)                                 (((x) >> 2) & 0x1)
443b8e80941Smrg#define   C_008214_MEC1_MUTEX_BUSY                                    0xFFFFFFFB
444b8e80941Smrg#define   S_008214_MEC1_MESSAGE_BUSY(x)                               (((unsigned)(x) & 0x1) << 3)
445b8e80941Smrg#define   G_008214_MEC1_MESSAGE_BUSY(x)                               (((x) >> 3) & 0x1)
446b8e80941Smrg#define   C_008214_MEC1_MESSAGE_BUSY                                  0xFFFFFFF7
447b8e80941Smrg#define   S_008214_MEC1_EOP_QUEUE_BUSY(x)                             (((unsigned)(x) & 0x1) << 4)
448b8e80941Smrg#define   G_008214_MEC1_EOP_QUEUE_BUSY(x)                             (((x) >> 4) & 0x1)
449b8e80941Smrg#define   C_008214_MEC1_EOP_QUEUE_BUSY                                0xFFFFFFEF
450b8e80941Smrg#define   S_008214_MEC1_IQ_QUEUE_BUSY(x)                              (((unsigned)(x) & 0x1) << 5)
451b8e80941Smrg#define   G_008214_MEC1_IQ_QUEUE_BUSY(x)                              (((x) >> 5) & 0x1)
452b8e80941Smrg#define   C_008214_MEC1_IQ_QUEUE_BUSY                                 0xFFFFFFDF
453b8e80941Smrg#define   S_008214_MEC1_IB_QUEUE_BUSY(x)                              (((unsigned)(x) & 0x1) << 6)
454b8e80941Smrg#define   G_008214_MEC1_IB_QUEUE_BUSY(x)                              (((x) >> 6) & 0x1)
455b8e80941Smrg#define   C_008214_MEC1_IB_QUEUE_BUSY                                 0xFFFFFFBF
456b8e80941Smrg#define   S_008214_MEC1_TC_BUSY(x)                                    (((unsigned)(x) & 0x1) << 7)
457b8e80941Smrg#define   G_008214_MEC1_TC_BUSY(x)                                    (((x) >> 7) & 0x1)
458b8e80941Smrg#define   C_008214_MEC1_TC_BUSY                                       0xFFFFFF7F
459b8e80941Smrg#define   S_008214_MEC1_DMA_BUSY(x)                                   (((unsigned)(x) & 0x1) << 8)
460b8e80941Smrg#define   G_008214_MEC1_DMA_BUSY(x)                                   (((x) >> 8) & 0x1)
461b8e80941Smrg#define   C_008214_MEC1_DMA_BUSY                                      0xFFFFFEFF
462b8e80941Smrg#define   S_008214_MEC1_PARTIAL_FLUSH_BUSY(x)                         (((unsigned)(x) & 0x1) << 9)
463b8e80941Smrg#define   G_008214_MEC1_PARTIAL_FLUSH_BUSY(x)                         (((x) >> 9) & 0x1)
464b8e80941Smrg#define   C_008214_MEC1_PARTIAL_FLUSH_BUSY                            0xFFFFFDFF
465b8e80941Smrg#define   S_008214_MEC1_PIPE0_BUSY(x)                                 (((unsigned)(x) & 0x1) << 10)
466b8e80941Smrg#define   G_008214_MEC1_PIPE0_BUSY(x)                                 (((x) >> 10) & 0x1)
467b8e80941Smrg#define   C_008214_MEC1_PIPE0_BUSY                                    0xFFFFFBFF
468b8e80941Smrg#define   S_008214_MEC1_PIPE1_BUSY(x)                                 (((unsigned)(x) & 0x1) << 11)
469b8e80941Smrg#define   G_008214_MEC1_PIPE1_BUSY(x)                                 (((x) >> 11) & 0x1)
470b8e80941Smrg#define   C_008214_MEC1_PIPE1_BUSY                                    0xFFFFF7FF
471b8e80941Smrg#define   S_008214_MEC1_PIPE2_BUSY(x)                                 (((unsigned)(x) & 0x1) << 12)
472b8e80941Smrg#define   G_008214_MEC1_PIPE2_BUSY(x)                                 (((x) >> 12) & 0x1)
473b8e80941Smrg#define   C_008214_MEC1_PIPE2_BUSY                                    0xFFFFEFFF
474b8e80941Smrg#define   S_008214_MEC1_PIPE3_BUSY(x)                                 (((unsigned)(x) & 0x1) << 13)
475b8e80941Smrg#define   G_008214_MEC1_PIPE3_BUSY(x)                                 (((x) >> 13) & 0x1)
476b8e80941Smrg#define   C_008214_MEC1_PIPE3_BUSY                                    0xFFFFDFFF
477b8e80941Smrg#define   S_008214_MEC2_LOAD_BUSY(x)                                  (((unsigned)(x) & 0x1) << 16)
478b8e80941Smrg#define   G_008214_MEC2_LOAD_BUSY(x)                                  (((x) >> 16) & 0x1)
479b8e80941Smrg#define   C_008214_MEC2_LOAD_BUSY                                     0xFFFEFFFF
480b8e80941Smrg#define   S_008214_MEC2_SEMAPOHRE_BUSY(x)                             (((unsigned)(x) & 0x1) << 17)
481b8e80941Smrg#define   G_008214_MEC2_SEMAPOHRE_BUSY(x)                             (((x) >> 17) & 0x1)
482b8e80941Smrg#define   C_008214_MEC2_SEMAPOHRE_BUSY                                0xFFFDFFFF
483b8e80941Smrg#define   S_008214_MEC2_MUTEX_BUSY(x)                                 (((unsigned)(x) & 0x1) << 18)
484b8e80941Smrg#define   G_008214_MEC2_MUTEX_BUSY(x)                                 (((x) >> 18) & 0x1)
485b8e80941Smrg#define   C_008214_MEC2_MUTEX_BUSY                                    0xFFFBFFFF
486b8e80941Smrg#define   S_008214_MEC2_MESSAGE_BUSY(x)                               (((unsigned)(x) & 0x1) << 19)
487b8e80941Smrg#define   G_008214_MEC2_MESSAGE_BUSY(x)                               (((x) >> 19) & 0x1)
488b8e80941Smrg#define   C_008214_MEC2_MESSAGE_BUSY                                  0xFFF7FFFF
489b8e80941Smrg#define   S_008214_MEC2_EOP_QUEUE_BUSY(x)                             (((unsigned)(x) & 0x1) << 20)
490b8e80941Smrg#define   G_008214_MEC2_EOP_QUEUE_BUSY(x)                             (((x) >> 20) & 0x1)
491b8e80941Smrg#define   C_008214_MEC2_EOP_QUEUE_BUSY                                0xFFEFFFFF
492b8e80941Smrg#define   S_008214_MEC2_IQ_QUEUE_BUSY(x)                              (((unsigned)(x) & 0x1) << 21)
493b8e80941Smrg#define   G_008214_MEC2_IQ_QUEUE_BUSY(x)                              (((x) >> 21) & 0x1)
494b8e80941Smrg#define   C_008214_MEC2_IQ_QUEUE_BUSY                                 0xFFDFFFFF
495b8e80941Smrg#define   S_008214_MEC2_IB_QUEUE_BUSY(x)                              (((unsigned)(x) & 0x1) << 22)
496b8e80941Smrg#define   G_008214_MEC2_IB_QUEUE_BUSY(x)                              (((x) >> 22) & 0x1)
497b8e80941Smrg#define   C_008214_MEC2_IB_QUEUE_BUSY                                 0xFFBFFFFF
498b8e80941Smrg#define   S_008214_MEC2_TC_BUSY(x)                                    (((unsigned)(x) & 0x1) << 23)
499b8e80941Smrg#define   G_008214_MEC2_TC_BUSY(x)                                    (((x) >> 23) & 0x1)
500b8e80941Smrg#define   C_008214_MEC2_TC_BUSY                                       0xFF7FFFFF
501b8e80941Smrg#define   S_008214_MEC2_DMA_BUSY(x)                                   (((unsigned)(x) & 0x1) << 24)
502b8e80941Smrg#define   G_008214_MEC2_DMA_BUSY(x)                                   (((x) >> 24) & 0x1)
503b8e80941Smrg#define   C_008214_MEC2_DMA_BUSY                                      0xFEFFFFFF
504b8e80941Smrg#define   S_008214_MEC2_PARTIAL_FLUSH_BUSY(x)                         (((unsigned)(x) & 0x1) << 25)
505b8e80941Smrg#define   G_008214_MEC2_PARTIAL_FLUSH_BUSY(x)                         (((x) >> 25) & 0x1)
506b8e80941Smrg#define   C_008214_MEC2_PARTIAL_FLUSH_BUSY                            0xFDFFFFFF
507b8e80941Smrg#define   S_008214_MEC2_PIPE0_BUSY(x)                                 (((unsigned)(x) & 0x1) << 26)
508b8e80941Smrg#define   G_008214_MEC2_PIPE0_BUSY(x)                                 (((x) >> 26) & 0x1)
509b8e80941Smrg#define   C_008214_MEC2_PIPE0_BUSY                                    0xFBFFFFFF
510b8e80941Smrg#define   S_008214_MEC2_PIPE1_BUSY(x)                                 (((unsigned)(x) & 0x1) << 27)
511b8e80941Smrg#define   G_008214_MEC2_PIPE1_BUSY(x)                                 (((x) >> 27) & 0x1)
512b8e80941Smrg#define   C_008214_MEC2_PIPE1_BUSY                                    0xF7FFFFFF
513b8e80941Smrg#define   S_008214_MEC2_PIPE2_BUSY(x)                                 (((unsigned)(x) & 0x1) << 28)
514b8e80941Smrg#define   G_008214_MEC2_PIPE2_BUSY(x)                                 (((x) >> 28) & 0x1)
515b8e80941Smrg#define   C_008214_MEC2_PIPE2_BUSY                                    0xEFFFFFFF
516b8e80941Smrg#define   S_008214_MEC2_PIPE3_BUSY(x)                                 (((unsigned)(x) & 0x1) << 29)
517b8e80941Smrg#define   G_008214_MEC2_PIPE3_BUSY(x)                                 (((x) >> 29) & 0x1)
518b8e80941Smrg#define   C_008214_MEC2_PIPE3_BUSY                                    0xDFFFFFFF
519b8e80941Smrg#define R_008218_CP_CPC_STALLED_STAT1                                   0x008218
520b8e80941Smrg#define   S_008218_RCIU_TX_FREE_STALL(x)                              (((unsigned)(x) & 0x1) << 3)
521b8e80941Smrg#define   G_008218_RCIU_TX_FREE_STALL(x)                              (((x) >> 3) & 0x1)
522b8e80941Smrg#define   C_008218_RCIU_TX_FREE_STALL                                 0xFFFFFFF7
523b8e80941Smrg#define   S_008218_RCIU_PRIV_VIOLATION(x)                             (((unsigned)(x) & 0x1) << 4)
524b8e80941Smrg#define   G_008218_RCIU_PRIV_VIOLATION(x)                             (((x) >> 4) & 0x1)
525b8e80941Smrg#define   C_008218_RCIU_PRIV_VIOLATION                                0xFFFFFFEF
526b8e80941Smrg#define   S_008218_TCIU_TX_FREE_STALL(x)                              (((unsigned)(x) & 0x1) << 6)
527b8e80941Smrg#define   G_008218_TCIU_TX_FREE_STALL(x)                              (((x) >> 6) & 0x1)
528b8e80941Smrg#define   C_008218_TCIU_TX_FREE_STALL                                 0xFFFFFFBF
529b8e80941Smrg#define   S_008218_MEC1_DECODING_PACKET(x)                            (((unsigned)(x) & 0x1) << 8)
530b8e80941Smrg#define   G_008218_MEC1_DECODING_PACKET(x)                            (((x) >> 8) & 0x1)
531b8e80941Smrg#define   C_008218_MEC1_DECODING_PACKET                               0xFFFFFEFF
532b8e80941Smrg#define   S_008218_MEC1_WAIT_ON_RCIU(x)                               (((unsigned)(x) & 0x1) << 9)
533b8e80941Smrg#define   G_008218_MEC1_WAIT_ON_RCIU(x)                               (((x) >> 9) & 0x1)
534b8e80941Smrg#define   C_008218_MEC1_WAIT_ON_RCIU                                  0xFFFFFDFF
535b8e80941Smrg#define   S_008218_MEC1_WAIT_ON_RCIU_READ(x)                          (((unsigned)(x) & 0x1) << 10)
536b8e80941Smrg#define   G_008218_MEC1_WAIT_ON_RCIU_READ(x)                          (((x) >> 10) & 0x1)
537b8e80941Smrg#define   C_008218_MEC1_WAIT_ON_RCIU_READ                             0xFFFFFBFF
538b8e80941Smrg#define   S_008218_MEC1_WAIT_ON_ROQ_DATA(x)                           (((unsigned)(x) & 0x1) << 13)
539b8e80941Smrg#define   G_008218_MEC1_WAIT_ON_ROQ_DATA(x)                           (((x) >> 13) & 0x1)
540b8e80941Smrg#define   C_008218_MEC1_WAIT_ON_ROQ_DATA                              0xFFFFDFFF
541b8e80941Smrg#define   S_008218_MEC2_DECODING_PACKET(x)                            (((unsigned)(x) & 0x1) << 16)
542b8e80941Smrg#define   G_008218_MEC2_DECODING_PACKET(x)                            (((x) >> 16) & 0x1)
543b8e80941Smrg#define   C_008218_MEC2_DECODING_PACKET                               0xFFFEFFFF
544b8e80941Smrg#define   S_008218_MEC2_WAIT_ON_RCIU(x)                               (((unsigned)(x) & 0x1) << 17)
545b8e80941Smrg#define   G_008218_MEC2_WAIT_ON_RCIU(x)                               (((x) >> 17) & 0x1)
546b8e80941Smrg#define   C_008218_MEC2_WAIT_ON_RCIU                                  0xFFFDFFFF
547b8e80941Smrg#define   S_008218_MEC2_WAIT_ON_RCIU_READ(x)                          (((unsigned)(x) & 0x1) << 18)
548b8e80941Smrg#define   G_008218_MEC2_WAIT_ON_RCIU_READ(x)                          (((x) >> 18) & 0x1)
549b8e80941Smrg#define   C_008218_MEC2_WAIT_ON_RCIU_READ                             0xFFFBFFFF
550b8e80941Smrg#define   S_008218_MEC2_WAIT_ON_ROQ_DATA(x)                           (((unsigned)(x) & 0x1) << 21)
551b8e80941Smrg#define   G_008218_MEC2_WAIT_ON_ROQ_DATA(x)                           (((x) >> 21) & 0x1)
552b8e80941Smrg#define   C_008218_MEC2_WAIT_ON_ROQ_DATA                              0xFFDFFFFF
553b8e80941Smrg#define   S_008218_UTCL2IU_WAITING_ON_FREE(x)                         (((unsigned)(x) & 0x1) << 22)
554b8e80941Smrg#define   G_008218_UTCL2IU_WAITING_ON_FREE(x)                         (((x) >> 22) & 0x1)
555b8e80941Smrg#define   C_008218_UTCL2IU_WAITING_ON_FREE                            0xFFBFFFFF
556b8e80941Smrg#define   S_008218_UTCL2IU_WAITING_ON_TAGS(x)                         (((unsigned)(x) & 0x1) << 23)
557b8e80941Smrg#define   G_008218_UTCL2IU_WAITING_ON_TAGS(x)                         (((x) >> 23) & 0x1)
558b8e80941Smrg#define   C_008218_UTCL2IU_WAITING_ON_TAGS                            0xFF7FFFFF
559b8e80941Smrg#define   S_008218_UTCL1_WAITING_ON_TRANS(x)                          (((unsigned)(x) & 0x1) << 24)
560b8e80941Smrg#define   G_008218_UTCL1_WAITING_ON_TRANS(x)                          (((x) >> 24) & 0x1)
561b8e80941Smrg#define   C_008218_UTCL1_WAITING_ON_TRANS                             0xFEFFFFFF
562b8e80941Smrg#define R_00821C_CP_CPF_STATUS                                          0x00821C
563b8e80941Smrg#define   S_00821C_POST_WPTR_GFX_BUSY(x)                              (((unsigned)(x) & 0x1) << 0)
564b8e80941Smrg#define   G_00821C_POST_WPTR_GFX_BUSY(x)                              (((x) >> 0) & 0x1)
565b8e80941Smrg#define   C_00821C_POST_WPTR_GFX_BUSY                                 0xFFFFFFFE
566b8e80941Smrg#define   S_00821C_CSF_BUSY(x)                                        (((unsigned)(x) & 0x1) << 1)
567b8e80941Smrg#define   G_00821C_CSF_BUSY(x)                                        (((x) >> 1) & 0x1)
568b8e80941Smrg#define   C_00821C_CSF_BUSY                                           0xFFFFFFFD
569b8e80941Smrg#define   S_00821C_ROQ_ALIGN_BUSY(x)                                  (((unsigned)(x) & 0x1) << 4)
570b8e80941Smrg#define   G_00821C_ROQ_ALIGN_BUSY(x)                                  (((x) >> 4) & 0x1)
571b8e80941Smrg#define   C_00821C_ROQ_ALIGN_BUSY                                     0xFFFFFFEF
572b8e80941Smrg#define   S_00821C_ROQ_RING_BUSY(x)                                   (((unsigned)(x) & 0x1) << 5)
573b8e80941Smrg#define   G_00821C_ROQ_RING_BUSY(x)                                   (((x) >> 5) & 0x1)
574b8e80941Smrg#define   C_00821C_ROQ_RING_BUSY                                      0xFFFFFFDF
575b8e80941Smrg#define   S_00821C_ROQ_INDIRECT1_BUSY(x)                              (((unsigned)(x) & 0x1) << 6)
576b8e80941Smrg#define   G_00821C_ROQ_INDIRECT1_BUSY(x)                              (((x) >> 6) & 0x1)
577b8e80941Smrg#define   C_00821C_ROQ_INDIRECT1_BUSY                                 0xFFFFFFBF
578b8e80941Smrg#define   S_00821C_ROQ_INDIRECT2_BUSY(x)                              (((unsigned)(x) & 0x1) << 7)
579b8e80941Smrg#define   G_00821C_ROQ_INDIRECT2_BUSY(x)                              (((x) >> 7) & 0x1)
580b8e80941Smrg#define   C_00821C_ROQ_INDIRECT2_BUSY                                 0xFFFFFF7F
581b8e80941Smrg#define   S_00821C_ROQ_STATE_BUSY(x)                                  (((unsigned)(x) & 0x1) << 8)
582b8e80941Smrg#define   G_00821C_ROQ_STATE_BUSY(x)                                  (((x) >> 8) & 0x1)
583b8e80941Smrg#define   C_00821C_ROQ_STATE_BUSY                                     0xFFFFFEFF
584b8e80941Smrg#define   S_00821C_ROQ_CE_RING_BUSY(x)                                (((unsigned)(x) & 0x1) << 9)
585b8e80941Smrg#define   G_00821C_ROQ_CE_RING_BUSY(x)                                (((x) >> 9) & 0x1)
586b8e80941Smrg#define   C_00821C_ROQ_CE_RING_BUSY                                   0xFFFFFDFF
587b8e80941Smrg#define   S_00821C_ROQ_CE_INDIRECT1_BUSY(x)                           (((unsigned)(x) & 0x1) << 10)
588b8e80941Smrg#define   G_00821C_ROQ_CE_INDIRECT1_BUSY(x)                           (((x) >> 10) & 0x1)
589b8e80941Smrg#define   C_00821C_ROQ_CE_INDIRECT1_BUSY                              0xFFFFFBFF
590b8e80941Smrg#define   S_00821C_ROQ_CE_INDIRECT2_BUSY(x)                           (((unsigned)(x) & 0x1) << 11)
591b8e80941Smrg#define   G_00821C_ROQ_CE_INDIRECT2_BUSY(x)                           (((x) >> 11) & 0x1)
592b8e80941Smrg#define   C_00821C_ROQ_CE_INDIRECT2_BUSY                              0xFFFFF7FF
593b8e80941Smrg#define   S_00821C_SEMAPHORE_BUSY(x)                                  (((unsigned)(x) & 0x1) << 12)
594b8e80941Smrg#define   G_00821C_SEMAPHORE_BUSY(x)                                  (((x) >> 12) & 0x1)
595b8e80941Smrg#define   C_00821C_SEMAPHORE_BUSY                                     0xFFFFEFFF
596b8e80941Smrg#define   S_00821C_INTERRUPT_BUSY(x)                                  (((unsigned)(x) & 0x1) << 13)
597b8e80941Smrg#define   G_00821C_INTERRUPT_BUSY(x)                                  (((x) >> 13) & 0x1)
598b8e80941Smrg#define   C_00821C_INTERRUPT_BUSY                                     0xFFFFDFFF
599b8e80941Smrg#define   S_00821C_TCIU_BUSY(x)                                       (((unsigned)(x) & 0x1) << 14)
600b8e80941Smrg#define   G_00821C_TCIU_BUSY(x)                                       (((x) >> 14) & 0x1)
601b8e80941Smrg#define   C_00821C_TCIU_BUSY                                          0xFFFFBFFF
602b8e80941Smrg#define   S_00821C_HQD_BUSY(x)                                        (((unsigned)(x) & 0x1) << 15)
603b8e80941Smrg#define   G_00821C_HQD_BUSY(x)                                        (((x) >> 15) & 0x1)
604b8e80941Smrg#define   C_00821C_HQD_BUSY                                           0xFFFF7FFF
605b8e80941Smrg#define   S_00821C_PRT_BUSY(x)                                        (((unsigned)(x) & 0x1) << 16)
606b8e80941Smrg#define   G_00821C_PRT_BUSY(x)                                        (((x) >> 16) & 0x1)
607b8e80941Smrg#define   C_00821C_PRT_BUSY                                           0xFFFEFFFF
608b8e80941Smrg#define   S_00821C_UTCL2IU_BUSY(x)                                    (((unsigned)(x) & 0x1) << 17)
609b8e80941Smrg#define   G_00821C_UTCL2IU_BUSY(x)                                    (((x) >> 17) & 0x1)
610b8e80941Smrg#define   C_00821C_UTCL2IU_BUSY                                       0xFFFDFFFF
611b8e80941Smrg#define   S_00821C_CPF_GFX_BUSY(x)                                    (((unsigned)(x) & 0x1) << 26)
612b8e80941Smrg#define   G_00821C_CPF_GFX_BUSY(x)                                    (((x) >> 26) & 0x1)
613b8e80941Smrg#define   C_00821C_CPF_GFX_BUSY                                       0xFBFFFFFF
614b8e80941Smrg#define   S_00821C_CPF_CMP_BUSY(x)                                    (((unsigned)(x) & 0x1) << 27)
615b8e80941Smrg#define   G_00821C_CPF_CMP_BUSY(x)                                    (((x) >> 27) & 0x1)
616b8e80941Smrg#define   C_00821C_CPF_CMP_BUSY                                       0xF7FFFFFF
617b8e80941Smrg#define   S_00821C_GRBM_CPF_STAT_BUSY(x)                              (((unsigned)(x) & 0x03) << 28)
618b8e80941Smrg#define   G_00821C_GRBM_CPF_STAT_BUSY(x)                              (((x) >> 28) & 0x03)
619b8e80941Smrg#define   C_00821C_GRBM_CPF_STAT_BUSY                                 0xCFFFFFFF
620b8e80941Smrg#define   S_00821C_CPC_CPF_BUSY(x)                                    (((unsigned)(x) & 0x1) << 30)
621b8e80941Smrg#define   G_00821C_CPC_CPF_BUSY(x)                                    (((x) >> 30) & 0x1)
622b8e80941Smrg#define   C_00821C_CPC_CPF_BUSY                                       0xBFFFFFFF
623b8e80941Smrg#define   S_00821C_CPF_BUSY(x)                                        (((unsigned)(x) & 0x1) << 31)
624b8e80941Smrg#define   G_00821C_CPF_BUSY(x)                                        (((x) >> 31) & 0x1)
625b8e80941Smrg#define   C_00821C_CPF_BUSY                                           0x7FFFFFFF
626b8e80941Smrg#define R_008220_CP_CPF_BUSY_STAT                                       0x008220
627b8e80941Smrg#define   S_008220_REG_BUS_FIFO_BUSY(x)                               (((unsigned)(x) & 0x1) << 0)
628b8e80941Smrg#define   G_008220_REG_BUS_FIFO_BUSY(x)                               (((x) >> 0) & 0x1)
629b8e80941Smrg#define   C_008220_REG_BUS_FIFO_BUSY                                  0xFFFFFFFE
630b8e80941Smrg#define   S_008220_CSF_RING_BUSY(x)                                   (((unsigned)(x) & 0x1) << 1)
631b8e80941Smrg#define   G_008220_CSF_RING_BUSY(x)                                   (((x) >> 1) & 0x1)
632b8e80941Smrg#define   C_008220_CSF_RING_BUSY                                      0xFFFFFFFD
633b8e80941Smrg#define   S_008220_CSF_INDIRECT1_BUSY(x)                              (((unsigned)(x) & 0x1) << 2)
634b8e80941Smrg#define   G_008220_CSF_INDIRECT1_BUSY(x)                              (((x) >> 2) & 0x1)
635b8e80941Smrg#define   C_008220_CSF_INDIRECT1_BUSY                                 0xFFFFFFFB
636b8e80941Smrg#define   S_008220_CSF_INDIRECT2_BUSY(x)                              (((unsigned)(x) & 0x1) << 3)
637b8e80941Smrg#define   G_008220_CSF_INDIRECT2_BUSY(x)                              (((x) >> 3) & 0x1)
638b8e80941Smrg#define   C_008220_CSF_INDIRECT2_BUSY                                 0xFFFFFFF7
639b8e80941Smrg#define   S_008220_CSF_STATE_BUSY(x)                                  (((unsigned)(x) & 0x1) << 4)
640b8e80941Smrg#define   G_008220_CSF_STATE_BUSY(x)                                  (((x) >> 4) & 0x1)
641b8e80941Smrg#define   C_008220_CSF_STATE_BUSY                                     0xFFFFFFEF
642b8e80941Smrg#define   S_008220_CSF_CE_INDR1_BUSY(x)                               (((unsigned)(x) & 0x1) << 5)
643b8e80941Smrg#define   G_008220_CSF_CE_INDR1_BUSY(x)                               (((x) >> 5) & 0x1)
644b8e80941Smrg#define   C_008220_CSF_CE_INDR1_BUSY                                  0xFFFFFFDF
645b8e80941Smrg#define   S_008220_CSF_CE_INDR2_BUSY(x)                               (((unsigned)(x) & 0x1) << 6)
646b8e80941Smrg#define   G_008220_CSF_CE_INDR2_BUSY(x)                               (((x) >> 6) & 0x1)
647b8e80941Smrg#define   C_008220_CSF_CE_INDR2_BUSY                                  0xFFFFFFBF
648b8e80941Smrg#define   S_008220_CSF_ARBITER_BUSY(x)                                (((unsigned)(x) & 0x1) << 7)
649b8e80941Smrg#define   G_008220_CSF_ARBITER_BUSY(x)                                (((x) >> 7) & 0x1)
650b8e80941Smrg#define   C_008220_CSF_ARBITER_BUSY                                   0xFFFFFF7F
651b8e80941Smrg#define   S_008220_CSF_INPUT_BUSY(x)                                  (((unsigned)(x) & 0x1) << 8)
652b8e80941Smrg#define   G_008220_CSF_INPUT_BUSY(x)                                  (((x) >> 8) & 0x1)
653b8e80941Smrg#define   C_008220_CSF_INPUT_BUSY                                     0xFFFFFEFF
654b8e80941Smrg#define   S_008220_OUTSTANDING_READ_TAGS(x)                           (((unsigned)(x) & 0x1) << 9)
655b8e80941Smrg#define   G_008220_OUTSTANDING_READ_TAGS(x)                           (((x) >> 9) & 0x1)
656b8e80941Smrg#define   C_008220_OUTSTANDING_READ_TAGS                              0xFFFFFDFF
657b8e80941Smrg#define   S_008220_HPD_PROCESSING_EOP_BUSY(x)                         (((unsigned)(x) & 0x1) << 11)
658b8e80941Smrg#define   G_008220_HPD_PROCESSING_EOP_BUSY(x)                         (((x) >> 11) & 0x1)
659b8e80941Smrg#define   C_008220_HPD_PROCESSING_EOP_BUSY                            0xFFFFF7FF
660b8e80941Smrg#define   S_008220_HQD_DISPATCH_BUSY(x)                               (((unsigned)(x) & 0x1) << 12)
661b8e80941Smrg#define   G_008220_HQD_DISPATCH_BUSY(x)                               (((x) >> 12) & 0x1)
662b8e80941Smrg#define   C_008220_HQD_DISPATCH_BUSY                                  0xFFFFEFFF
663b8e80941Smrg#define   S_008220_HQD_IQ_TIMER_BUSY(x)                               (((unsigned)(x) & 0x1) << 13)
664b8e80941Smrg#define   G_008220_HQD_IQ_TIMER_BUSY(x)                               (((x) >> 13) & 0x1)
665b8e80941Smrg#define   C_008220_HQD_IQ_TIMER_BUSY                                  0xFFFFDFFF
666b8e80941Smrg#define   S_008220_HQD_DMA_OFFLOAD_BUSY(x)                            (((unsigned)(x) & 0x1) << 14)
667b8e80941Smrg#define   G_008220_HQD_DMA_OFFLOAD_BUSY(x)                            (((x) >> 14) & 0x1)
668b8e80941Smrg#define   C_008220_HQD_DMA_OFFLOAD_BUSY                               0xFFFFBFFF
669b8e80941Smrg#define   S_008220_HQD_WAIT_SEMAPHORE_BUSY(x)                         (((unsigned)(x) & 0x1) << 15)
670b8e80941Smrg#define   G_008220_HQD_WAIT_SEMAPHORE_BUSY(x)                         (((x) >> 15) & 0x1)
671b8e80941Smrg#define   C_008220_HQD_WAIT_SEMAPHORE_BUSY                            0xFFFF7FFF
672b8e80941Smrg#define   S_008220_HQD_SIGNAL_SEMAPHORE_BUSY(x)                       (((unsigned)(x) & 0x1) << 16)
673b8e80941Smrg#define   G_008220_HQD_SIGNAL_SEMAPHORE_BUSY(x)                       (((x) >> 16) & 0x1)
674b8e80941Smrg#define   C_008220_HQD_SIGNAL_SEMAPHORE_BUSY                          0xFFFEFFFF
675b8e80941Smrg#define   S_008220_HQD_MESSAGE_BUSY(x)                                (((unsigned)(x) & 0x1) << 17)
676b8e80941Smrg#define   G_008220_HQD_MESSAGE_BUSY(x)                                (((x) >> 17) & 0x1)
677b8e80941Smrg#define   C_008220_HQD_MESSAGE_BUSY                                   0xFFFDFFFF
678b8e80941Smrg#define   S_008220_HQD_PQ_FETCHER_BUSY(x)                             (((unsigned)(x) & 0x1) << 18)
679b8e80941Smrg#define   G_008220_HQD_PQ_FETCHER_BUSY(x)                             (((x) >> 18) & 0x1)
680b8e80941Smrg#define   C_008220_HQD_PQ_FETCHER_BUSY                                0xFFFBFFFF
681b8e80941Smrg#define   S_008220_HQD_IB_FETCHER_BUSY(x)                             (((unsigned)(x) & 0x1) << 19)
682b8e80941Smrg#define   G_008220_HQD_IB_FETCHER_BUSY(x)                             (((x) >> 19) & 0x1)
683b8e80941Smrg#define   C_008220_HQD_IB_FETCHER_BUSY                                0xFFF7FFFF
684b8e80941Smrg#define   S_008220_HQD_IQ_FETCHER_BUSY(x)                             (((unsigned)(x) & 0x1) << 20)
685b8e80941Smrg#define   G_008220_HQD_IQ_FETCHER_BUSY(x)                             (((x) >> 20) & 0x1)
686b8e80941Smrg#define   C_008220_HQD_IQ_FETCHER_BUSY                                0xFFEFFFFF
687b8e80941Smrg#define   S_008220_HQD_EOP_FETCHER_BUSY(x)                            (((unsigned)(x) & 0x1) << 21)
688b8e80941Smrg#define   G_008220_HQD_EOP_FETCHER_BUSY(x)                            (((x) >> 21) & 0x1)
689b8e80941Smrg#define   C_008220_HQD_EOP_FETCHER_BUSY                               0xFFDFFFFF
690b8e80941Smrg#define   S_008220_HQD_CONSUMED_RPTR_BUSY(x)                          (((unsigned)(x) & 0x1) << 22)
691b8e80941Smrg#define   G_008220_HQD_CONSUMED_RPTR_BUSY(x)                          (((x) >> 22) & 0x1)
692b8e80941Smrg#define   C_008220_HQD_CONSUMED_RPTR_BUSY                             0xFFBFFFFF
693b8e80941Smrg#define   S_008220_HQD_FETCHER_ARB_BUSY(x)                            (((unsigned)(x) & 0x1) << 23)
694b8e80941Smrg#define   G_008220_HQD_FETCHER_ARB_BUSY(x)                            (((x) >> 23) & 0x1)
695b8e80941Smrg#define   C_008220_HQD_FETCHER_ARB_BUSY                               0xFF7FFFFF
696b8e80941Smrg#define   S_008220_HQD_ROQ_ALIGN_BUSY(x)                              (((unsigned)(x) & 0x1) << 24)
697b8e80941Smrg#define   G_008220_HQD_ROQ_ALIGN_BUSY(x)                              (((x) >> 24) & 0x1)
698b8e80941Smrg#define   C_008220_HQD_ROQ_ALIGN_BUSY                                 0xFEFFFFFF
699b8e80941Smrg#define   S_008220_HQD_ROQ_EOP_BUSY(x)                                (((unsigned)(x) & 0x1) << 25)
700b8e80941Smrg#define   G_008220_HQD_ROQ_EOP_BUSY(x)                                (((x) >> 25) & 0x1)
701b8e80941Smrg#define   C_008220_HQD_ROQ_EOP_BUSY                                   0xFDFFFFFF
702b8e80941Smrg#define   S_008220_HQD_ROQ_IQ_BUSY(x)                                 (((unsigned)(x) & 0x1) << 26)
703b8e80941Smrg#define   G_008220_HQD_ROQ_IQ_BUSY(x)                                 (((x) >> 26) & 0x1)
704b8e80941Smrg#define   C_008220_HQD_ROQ_IQ_BUSY                                    0xFBFFFFFF
705b8e80941Smrg#define   S_008220_HQD_ROQ_PQ_BUSY(x)                                 (((unsigned)(x) & 0x1) << 27)
706b8e80941Smrg#define   G_008220_HQD_ROQ_PQ_BUSY(x)                                 (((x) >> 27) & 0x1)
707b8e80941Smrg#define   C_008220_HQD_ROQ_PQ_BUSY                                    0xF7FFFFFF
708b8e80941Smrg#define   S_008220_HQD_ROQ_IB_BUSY(x)                                 (((unsigned)(x) & 0x1) << 28)
709b8e80941Smrg#define   G_008220_HQD_ROQ_IB_BUSY(x)                                 (((x) >> 28) & 0x1)
710b8e80941Smrg#define   C_008220_HQD_ROQ_IB_BUSY                                    0xEFFFFFFF
711b8e80941Smrg#define   S_008220_HQD_WPTR_POLL_BUSY(x)                              (((unsigned)(x) & 0x1) << 29)
712b8e80941Smrg#define   G_008220_HQD_WPTR_POLL_BUSY(x)                              (((x) >> 29) & 0x1)
713b8e80941Smrg#define   C_008220_HQD_WPTR_POLL_BUSY                                 0xDFFFFFFF
714b8e80941Smrg#define   S_008220_HQD_PQ_BUSY(x)                                     (((unsigned)(x) & 0x1) << 30)
715b8e80941Smrg#define   G_008220_HQD_PQ_BUSY(x)                                     (((x) >> 30) & 0x1)
716b8e80941Smrg#define   C_008220_HQD_PQ_BUSY                                        0xBFFFFFFF
717b8e80941Smrg#define   S_008220_HQD_IB_BUSY(x)                                     (((unsigned)(x) & 0x1) << 31)
718b8e80941Smrg#define   G_008220_HQD_IB_BUSY(x)                                     (((x) >> 31) & 0x1)
719b8e80941Smrg#define   C_008220_HQD_IB_BUSY                                        0x7FFFFFFF
720b8e80941Smrg#define R_008224_CP_CPF_STALLED_STAT1                                   0x008224
721b8e80941Smrg#define   S_008224_RING_FETCHING_DATA(x)                              (((unsigned)(x) & 0x1) << 0)
722b8e80941Smrg#define   G_008224_RING_FETCHING_DATA(x)                              (((x) >> 0) & 0x1)
723b8e80941Smrg#define   C_008224_RING_FETCHING_DATA                                 0xFFFFFFFE
724b8e80941Smrg#define   S_008224_INDR1_FETCHING_DATA(x)                             (((unsigned)(x) & 0x1) << 1)
725b8e80941Smrg#define   G_008224_INDR1_FETCHING_DATA(x)                             (((x) >> 1) & 0x1)
726b8e80941Smrg#define   C_008224_INDR1_FETCHING_DATA                                0xFFFFFFFD
727b8e80941Smrg#define   S_008224_INDR2_FETCHING_DATA(x)                             (((unsigned)(x) & 0x1) << 2)
728b8e80941Smrg#define   G_008224_INDR2_FETCHING_DATA(x)                             (((x) >> 2) & 0x1)
729b8e80941Smrg#define   C_008224_INDR2_FETCHING_DATA                                0xFFFFFFFB
730b8e80941Smrg#define   S_008224_STATE_FETCHING_DATA(x)                             (((unsigned)(x) & 0x1) << 3)
731b8e80941Smrg#define   G_008224_STATE_FETCHING_DATA(x)                             (((x) >> 3) & 0x1)
732b8e80941Smrg#define   C_008224_STATE_FETCHING_DATA                                0xFFFFFFF7
733b8e80941Smrg#define   S_008224_TCIU_WAITING_ON_FREE(x)                            (((unsigned)(x) & 0x1) << 5)
734b8e80941Smrg#define   G_008224_TCIU_WAITING_ON_FREE(x)                            (((x) >> 5) & 0x1)
735b8e80941Smrg#define   C_008224_TCIU_WAITING_ON_FREE                               0xFFFFFFDF
736b8e80941Smrg#define   S_008224_TCIU_WAITING_ON_TAGS(x)                            (((unsigned)(x) & 0x1) << 6)
737b8e80941Smrg#define   G_008224_TCIU_WAITING_ON_TAGS(x)                            (((x) >> 6) & 0x1)
738b8e80941Smrg#define   C_008224_TCIU_WAITING_ON_TAGS                               0xFFFFFFBF
739b8e80941Smrg#define   S_008224_UTCL2IU_WAITING_ON_FREE(x)                         (((unsigned)(x) & 0x1) << 7)
740b8e80941Smrg#define   G_008224_UTCL2IU_WAITING_ON_FREE(x)                         (((x) >> 7) & 0x1)
741b8e80941Smrg#define   C_008224_UTCL2IU_WAITING_ON_FREE                            0xFFFFFF7F
742b8e80941Smrg#define   S_008224_UTCL2IU_WAITING_ON_TAGS(x)                         (((unsigned)(x) & 0x1) << 8)
743b8e80941Smrg#define   G_008224_UTCL2IU_WAITING_ON_TAGS(x)                         (((x) >> 8) & 0x1)
744b8e80941Smrg#define   C_008224_UTCL2IU_WAITING_ON_TAGS                            0xFFFFFEFF
745b8e80941Smrg#define   S_008224_GFX_UTCL1_WAITING_ON_TRANS(x)                      (((unsigned)(x) & 0x1) << 9)
746b8e80941Smrg#define   G_008224_GFX_UTCL1_WAITING_ON_TRANS(x)                      (((x) >> 9) & 0x1)
747b8e80941Smrg#define   C_008224_GFX_UTCL1_WAITING_ON_TRANS                         0xFFFFFDFF
748b8e80941Smrg#define   S_008224_CMP_UTCL1_WAITING_ON_TRANS(x)                      (((unsigned)(x) & 0x1) << 10)
749b8e80941Smrg#define   G_008224_CMP_UTCL1_WAITING_ON_TRANS(x)                      (((x) >> 10) & 0x1)
750b8e80941Smrg#define   C_008224_CMP_UTCL1_WAITING_ON_TRANS                         0xFFFFFBFF
751b8e80941Smrg#define   S_008224_RCIU_WAITING_ON_FREE(x)                            (((unsigned)(x) & 0x1) << 11)
752b8e80941Smrg#define   G_008224_RCIU_WAITING_ON_FREE(x)                            (((x) >> 11) & 0x1)
753b8e80941Smrg#define   C_008224_RCIU_WAITING_ON_FREE                               0xFFFFF7FF
754b8e80941Smrg#define R_030230_CP_COHER_SIZE_HI                                       0x030230
755b8e80941Smrg#define   S_030230_COHER_SIZE_HI_256B(x)                              (((unsigned)(x) & 0xFF) << 0)
756b8e80941Smrg#define   G_030230_COHER_SIZE_HI_256B(x)                              (((x) >> 0) & 0xFF)
757b8e80941Smrg#define   C_030230_COHER_SIZE_HI_256B                                 0xFFFFFF00
758b8e80941Smrg#define R_008670_CP_STALLED_STAT3                                       0x008670
759b8e80941Smrg#define   S_008670_CE_TO_CSF_NOT_RDY_TO_RCV(x)                        (((unsigned)(x) & 0x1) << 0)
760b8e80941Smrg#define   G_008670_CE_TO_CSF_NOT_RDY_TO_RCV(x)                        (((x) >> 0) & 0x1)
761b8e80941Smrg#define   C_008670_CE_TO_CSF_NOT_RDY_TO_RCV                           0xFFFFFFFE
762b8e80941Smrg#define   S_008670_CE_TO_RAM_INIT_FETCHER_NOT_RDY_TO_RCV(x)           (((unsigned)(x) & 0x1) << 1)
763b8e80941Smrg#define   G_008670_CE_TO_RAM_INIT_FETCHER_NOT_RDY_TO_RCV(x)           (((x) >> 1) & 0x1)
764b8e80941Smrg#define   C_008670_CE_TO_RAM_INIT_FETCHER_NOT_RDY_TO_RCV              0xFFFFFFFD
765b8e80941Smrg#define   S_008670_CE_WAITING_ON_DATA_FROM_RAM_INIT_FETCHER(x)        (((unsigned)(x) & 0x1) << 2)
766b8e80941Smrg#define   G_008670_CE_WAITING_ON_DATA_FROM_RAM_INIT_FETCHER(x)        (((x) >> 2) & 0x1)
767b8e80941Smrg#define   C_008670_CE_WAITING_ON_DATA_FROM_RAM_INIT_FETCHER           0xFFFFFFFB
768b8e80941Smrg#define   S_008670_CE_TO_RAM_INIT_NOT_RDY(x)                          (((unsigned)(x) & 0x1) << 3)
769b8e80941Smrg#define   G_008670_CE_TO_RAM_INIT_NOT_RDY(x)                          (((x) >> 3) & 0x1)
770b8e80941Smrg#define   C_008670_CE_TO_RAM_INIT_NOT_RDY                             0xFFFFFFF7
771b8e80941Smrg#define   S_008670_CE_TO_RAM_DUMP_NOT_RDY(x)                          (((unsigned)(x) & 0x1) << 4)
772b8e80941Smrg#define   G_008670_CE_TO_RAM_DUMP_NOT_RDY(x)                          (((x) >> 4) & 0x1)
773b8e80941Smrg#define   C_008670_CE_TO_RAM_DUMP_NOT_RDY                             0xFFFFFFEF
774b8e80941Smrg#define   S_008670_CE_TO_RAM_WRITE_NOT_RDY(x)                         (((unsigned)(x) & 0x1) << 5)
775b8e80941Smrg#define   G_008670_CE_TO_RAM_WRITE_NOT_RDY(x)                         (((x) >> 5) & 0x1)
776b8e80941Smrg#define   C_008670_CE_TO_RAM_WRITE_NOT_RDY                            0xFFFFFFDF
777b8e80941Smrg#define   S_008670_CE_TO_INC_FIFO_NOT_RDY_TO_RCV(x)                   (((unsigned)(x) & 0x1) << 6)
778b8e80941Smrg#define   G_008670_CE_TO_INC_FIFO_NOT_RDY_TO_RCV(x)                   (((x) >> 6) & 0x1)
779b8e80941Smrg#define   C_008670_CE_TO_INC_FIFO_NOT_RDY_TO_RCV                      0xFFFFFFBF
780b8e80941Smrg#define   S_008670_CE_TO_WR_FIFO_NOT_RDY_TO_RCV(x)                    (((unsigned)(x) & 0x1) << 7)
781b8e80941Smrg#define   G_008670_CE_TO_WR_FIFO_NOT_RDY_TO_RCV(x)                    (((x) >> 7) & 0x1)
782b8e80941Smrg#define   C_008670_CE_TO_WR_FIFO_NOT_RDY_TO_RCV                       0xFFFFFF7F
783b8e80941Smrg#define   S_008670_CE_WAITING_ON_BUFFER_DATA(x)                       (((unsigned)(x) & 0x1) << 10)
784b8e80941Smrg#define   G_008670_CE_WAITING_ON_BUFFER_DATA(x)                       (((x) >> 10) & 0x1)
785b8e80941Smrg#define   C_008670_CE_WAITING_ON_BUFFER_DATA                          0xFFFFFBFF
786b8e80941Smrg#define   S_008670_CE_WAITING_ON_CE_BUFFER_FLAG(x)                    (((unsigned)(x) & 0x1) << 11)
787b8e80941Smrg#define   G_008670_CE_WAITING_ON_CE_BUFFER_FLAG(x)                    (((x) >> 11) & 0x1)
788b8e80941Smrg#define   C_008670_CE_WAITING_ON_CE_BUFFER_FLAG                       0xFFFFF7FF
789b8e80941Smrg#define   S_008670_CE_WAITING_ON_DE_COUNTER(x)                        (((unsigned)(x) & 0x1) << 12)
790b8e80941Smrg#define   G_008670_CE_WAITING_ON_DE_COUNTER(x)                        (((x) >> 12) & 0x1)
791b8e80941Smrg#define   C_008670_CE_WAITING_ON_DE_COUNTER                           0xFFFFEFFF
792b8e80941Smrg#define   S_008670_CE_WAITING_ON_DE_COUNTER_UNDERFLOW(x)              (((unsigned)(x) & 0x1) << 13)
793b8e80941Smrg#define   G_008670_CE_WAITING_ON_DE_COUNTER_UNDERFLOW(x)              (((x) >> 13) & 0x1)
794b8e80941Smrg#define   C_008670_CE_WAITING_ON_DE_COUNTER_UNDERFLOW                 0xFFFFDFFF
795b8e80941Smrg#define   S_008670_TCIU_WAITING_ON_FREE(x)                            (((unsigned)(x) & 0x1) << 14)
796b8e80941Smrg#define   G_008670_TCIU_WAITING_ON_FREE(x)                            (((x) >> 14) & 0x1)
797b8e80941Smrg#define   C_008670_TCIU_WAITING_ON_FREE                               0xFFFFBFFF
798b8e80941Smrg#define   S_008670_TCIU_WAITING_ON_TAGS(x)                            (((unsigned)(x) & 0x1) << 15)
799b8e80941Smrg#define   G_008670_TCIU_WAITING_ON_TAGS(x)                            (((x) >> 15) & 0x1)
800b8e80941Smrg#define   C_008670_TCIU_WAITING_ON_TAGS                               0xFFFF7FFF
801b8e80941Smrg#define   S_008670_CE_STALLED_ON_TC_WR_CONFIRM(x)                     (((unsigned)(x) & 0x1) << 16)
802b8e80941Smrg#define   G_008670_CE_STALLED_ON_TC_WR_CONFIRM(x)                     (((x) >> 16) & 0x1)
803b8e80941Smrg#define   C_008670_CE_STALLED_ON_TC_WR_CONFIRM                        0xFFFEFFFF
804b8e80941Smrg#define   S_008670_CE_STALLED_ON_ATOMIC_RTN_DATA(x)                   (((unsigned)(x) & 0x1) << 17)
805b8e80941Smrg#define   G_008670_CE_STALLED_ON_ATOMIC_RTN_DATA(x)                   (((x) >> 17) & 0x1)
806b8e80941Smrg#define   C_008670_CE_STALLED_ON_ATOMIC_RTN_DATA                      0xFFFDFFFF
807b8e80941Smrg#define   S_008670_UTCL2IU_WAITING_ON_FREE(x)                         (((unsigned)(x) & 0x1) << 18)
808b8e80941Smrg#define   G_008670_UTCL2IU_WAITING_ON_FREE(x)                         (((x) >> 18) & 0x1)
809b8e80941Smrg#define   C_008670_UTCL2IU_WAITING_ON_FREE                            0xFFFBFFFF
810b8e80941Smrg#define   S_008670_UTCL2IU_WAITING_ON_TAGS(x)                         (((unsigned)(x) & 0x1) << 19)
811b8e80941Smrg#define   G_008670_UTCL2IU_WAITING_ON_TAGS(x)                         (((x) >> 19) & 0x1)
812b8e80941Smrg#define   C_008670_UTCL2IU_WAITING_ON_TAGS                            0xFFF7FFFF
813b8e80941Smrg#define   S_008670_UTCL1_WAITING_ON_TRANS(x)                          (((unsigned)(x) & 0x1) << 20)
814b8e80941Smrg#define   G_008670_UTCL1_WAITING_ON_TRANS(x)                          (((x) >> 20) & 0x1)
815b8e80941Smrg#define   C_008670_UTCL1_WAITING_ON_TRANS                             0xFFEFFFFF
816b8e80941Smrg#define R_008674_CP_STALLED_STAT1                                       0x008674
817b8e80941Smrg#define   S_008674_RBIU_TO_DMA_NOT_RDY_TO_RCV(x)                      (((unsigned)(x) & 0x1) << 0)
818b8e80941Smrg#define   G_008674_RBIU_TO_DMA_NOT_RDY_TO_RCV(x)                      (((x) >> 0) & 0x1)
819b8e80941Smrg#define   C_008674_RBIU_TO_DMA_NOT_RDY_TO_RCV                         0xFFFFFFFE
820b8e80941Smrg#define   S_008674_RBIU_TO_SEM_NOT_RDY_TO_RCV(x)                      (((unsigned)(x) & 0x1) << 2)
821b8e80941Smrg#define   G_008674_RBIU_TO_SEM_NOT_RDY_TO_RCV(x)                      (((x) >> 2) & 0x1)
822b8e80941Smrg#define   C_008674_RBIU_TO_SEM_NOT_RDY_TO_RCV                         0xFFFFFFFB
823b8e80941Smrg#define   S_008674_RBIU_TO_MEMWR_NOT_RDY_TO_RCV(x)                    (((unsigned)(x) & 0x1) << 4)
824b8e80941Smrg#define   G_008674_RBIU_TO_MEMWR_NOT_RDY_TO_RCV(x)                    (((x) >> 4) & 0x1)
825b8e80941Smrg#define   C_008674_RBIU_TO_MEMWR_NOT_RDY_TO_RCV                       0xFFFFFFEF
826b8e80941Smrg#define   S_008674_ME_HAS_ACTIVE_CE_BUFFER_FLAG(x)                    (((unsigned)(x) & 0x1) << 10)
827b8e80941Smrg#define   G_008674_ME_HAS_ACTIVE_CE_BUFFER_FLAG(x)                    (((x) >> 10) & 0x1)
828b8e80941Smrg#define   C_008674_ME_HAS_ACTIVE_CE_BUFFER_FLAG                       0xFFFFFBFF
829b8e80941Smrg#define   S_008674_ME_HAS_ACTIVE_DE_BUFFER_FLAG(x)                    (((unsigned)(x) & 0x1) << 11)
830b8e80941Smrg#define   G_008674_ME_HAS_ACTIVE_DE_BUFFER_FLAG(x)                    (((x) >> 11) & 0x1)
831b8e80941Smrg#define   C_008674_ME_HAS_ACTIVE_DE_BUFFER_FLAG                       0xFFFFF7FF
832b8e80941Smrg#define   S_008674_ME_STALLED_ON_TC_WR_CONFIRM(x)                     (((unsigned)(x) & 0x1) << 12)
833b8e80941Smrg#define   G_008674_ME_STALLED_ON_TC_WR_CONFIRM(x)                     (((x) >> 12) & 0x1)
834b8e80941Smrg#define   C_008674_ME_STALLED_ON_TC_WR_CONFIRM                        0xFFFFEFFF
835b8e80941Smrg#define   S_008674_ME_STALLED_ON_ATOMIC_RTN_DATA(x)                   (((unsigned)(x) & 0x1) << 13)
836b8e80941Smrg#define   G_008674_ME_STALLED_ON_ATOMIC_RTN_DATA(x)                   (((x) >> 13) & 0x1)
837b8e80941Smrg#define   C_008674_ME_STALLED_ON_ATOMIC_RTN_DATA                      0xFFFFDFFF
838b8e80941Smrg#define   S_008674_ME_WAITING_ON_TC_READ_DATA(x)                      (((unsigned)(x) & 0x1) << 14)
839b8e80941Smrg#define   G_008674_ME_WAITING_ON_TC_READ_DATA(x)                      (((x) >> 14) & 0x1)
840b8e80941Smrg#define   C_008674_ME_WAITING_ON_TC_READ_DATA                         0xFFFFBFFF
841b8e80941Smrg#define   S_008674_ME_WAITING_ON_REG_READ_DATA(x)                     (((unsigned)(x) & 0x1) << 15)
842b8e80941Smrg#define   G_008674_ME_WAITING_ON_REG_READ_DATA(x)                     (((x) >> 15) & 0x1)
843b8e80941Smrg#define   C_008674_ME_WAITING_ON_REG_READ_DATA                        0xFFFF7FFF
844b8e80941Smrg#define   S_008674_RCIU_WAITING_ON_GDS_FREE(x)                        (((unsigned)(x) & 0x1) << 23)
845b8e80941Smrg#define   G_008674_RCIU_WAITING_ON_GDS_FREE(x)                        (((x) >> 23) & 0x1)
846b8e80941Smrg#define   C_008674_RCIU_WAITING_ON_GDS_FREE                           0xFF7FFFFF
847b8e80941Smrg#define   S_008674_RCIU_WAITING_ON_GRBM_FREE(x)                       (((unsigned)(x) & 0x1) << 24)
848b8e80941Smrg#define   G_008674_RCIU_WAITING_ON_GRBM_FREE(x)                       (((x) >> 24) & 0x1)
849b8e80941Smrg#define   C_008674_RCIU_WAITING_ON_GRBM_FREE                          0xFEFFFFFF
850b8e80941Smrg#define   S_008674_RCIU_WAITING_ON_VGT_FREE(x)                        (((unsigned)(x) & 0x1) << 25)
851b8e80941Smrg#define   G_008674_RCIU_WAITING_ON_VGT_FREE(x)                        (((x) >> 25) & 0x1)
852b8e80941Smrg#define   C_008674_RCIU_WAITING_ON_VGT_FREE                           0xFDFFFFFF
853b8e80941Smrg#define   S_008674_RCIU_STALLED_ON_ME_READ(x)                         (((unsigned)(x) & 0x1) << 26)
854b8e80941Smrg#define   G_008674_RCIU_STALLED_ON_ME_READ(x)                         (((x) >> 26) & 0x1)
855b8e80941Smrg#define   C_008674_RCIU_STALLED_ON_ME_READ                            0xFBFFFFFF
856b8e80941Smrg#define   S_008674_RCIU_STALLED_ON_DMA_READ(x)                        (((unsigned)(x) & 0x1) << 27)
857b8e80941Smrg#define   G_008674_RCIU_STALLED_ON_DMA_READ(x)                        (((x) >> 27) & 0x1)
858b8e80941Smrg#define   C_008674_RCIU_STALLED_ON_DMA_READ                           0xF7FFFFFF
859b8e80941Smrg#define   S_008674_RCIU_STALLED_ON_APPEND_READ(x)                     (((unsigned)(x) & 0x1) << 28)
860b8e80941Smrg#define   G_008674_RCIU_STALLED_ON_APPEND_READ(x)                     (((x) >> 28) & 0x1)
861b8e80941Smrg#define   C_008674_RCIU_STALLED_ON_APPEND_READ                        0xEFFFFFFF
862b8e80941Smrg#define   S_008674_RCIU_HALTED_BY_REG_VIOLATION(x)                    (((unsigned)(x) & 0x1) << 29)
863b8e80941Smrg#define   G_008674_RCIU_HALTED_BY_REG_VIOLATION(x)                    (((x) >> 29) & 0x1)
864b8e80941Smrg#define   C_008674_RCIU_HALTED_BY_REG_VIOLATION                       0xDFFFFFFF
865b8e80941Smrg#define R_008678_CP_STALLED_STAT2                                       0x008678
866b8e80941Smrg#define   S_008678_PFP_TO_CSF_NOT_RDY_TO_RCV(x)                       (((unsigned)(x) & 0x1) << 0)
867b8e80941Smrg#define   G_008678_PFP_TO_CSF_NOT_RDY_TO_RCV(x)                       (((x) >> 0) & 0x1)
868b8e80941Smrg#define   C_008678_PFP_TO_CSF_NOT_RDY_TO_RCV                          0xFFFFFFFE
869b8e80941Smrg#define   S_008678_PFP_TO_MEQ_NOT_RDY_TO_RCV(x)                       (((unsigned)(x) & 0x1) << 1)
870b8e80941Smrg#define   G_008678_PFP_TO_MEQ_NOT_RDY_TO_RCV(x)                       (((x) >> 1) & 0x1)
871b8e80941Smrg#define   C_008678_PFP_TO_MEQ_NOT_RDY_TO_RCV                          0xFFFFFFFD
872b8e80941Smrg#define   S_008678_PFP_TO_RCIU_NOT_RDY_TO_RCV(x)                      (((unsigned)(x) & 0x1) << 2)
873b8e80941Smrg#define   G_008678_PFP_TO_RCIU_NOT_RDY_TO_RCV(x)                      (((x) >> 2) & 0x1)
874b8e80941Smrg#define   C_008678_PFP_TO_RCIU_NOT_RDY_TO_RCV                         0xFFFFFFFB
875b8e80941Smrg#define   S_008678_PFP_TO_VGT_WRITES_PENDING(x)                       (((unsigned)(x) & 0x1) << 4)
876b8e80941Smrg#define   G_008678_PFP_TO_VGT_WRITES_PENDING(x)                       (((x) >> 4) & 0x1)
877b8e80941Smrg#define   C_008678_PFP_TO_VGT_WRITES_PENDING                          0xFFFFFFEF
878b8e80941Smrg#define   S_008678_PFP_RCIU_READ_PENDING(x)                           (((unsigned)(x) & 0x1) << 5)
879b8e80941Smrg#define   G_008678_PFP_RCIU_READ_PENDING(x)                           (((x) >> 5) & 0x1)
880b8e80941Smrg#define   C_008678_PFP_RCIU_READ_PENDING                              0xFFFFFFDF
881b8e80941Smrg#define   S_008678_PFP_WAITING_ON_BUFFER_DATA(x)                      (((unsigned)(x) & 0x1) << 8)
882b8e80941Smrg#define   G_008678_PFP_WAITING_ON_BUFFER_DATA(x)                      (((x) >> 8) & 0x1)
883b8e80941Smrg#define   C_008678_PFP_WAITING_ON_BUFFER_DATA                         0xFFFFFEFF
884b8e80941Smrg#define   S_008678_ME_WAIT_ON_CE_COUNTER(x)                           (((unsigned)(x) & 0x1) << 9)
885b8e80941Smrg#define   G_008678_ME_WAIT_ON_CE_COUNTER(x)                           (((x) >> 9) & 0x1)
886b8e80941Smrg#define   C_008678_ME_WAIT_ON_CE_COUNTER                              0xFFFFFDFF
887b8e80941Smrg#define   S_008678_ME_WAIT_ON_AVAIL_BUFFER(x)                         (((unsigned)(x) & 0x1) << 10)
888b8e80941Smrg#define   G_008678_ME_WAIT_ON_AVAIL_BUFFER(x)                         (((x) >> 10) & 0x1)
889b8e80941Smrg#define   C_008678_ME_WAIT_ON_AVAIL_BUFFER                            0xFFFFFBFF
890b8e80941Smrg#define   S_008678_GFX_CNTX_NOT_AVAIL_TO_ME(x)                        (((unsigned)(x) & 0x1) << 11)
891b8e80941Smrg#define   G_008678_GFX_CNTX_NOT_AVAIL_TO_ME(x)                        (((x) >> 11) & 0x1)
892b8e80941Smrg#define   C_008678_GFX_CNTX_NOT_AVAIL_TO_ME                           0xFFFFF7FF
893b8e80941Smrg#define   S_008678_ME_RCIU_NOT_RDY_TO_RCV(x)                          (((unsigned)(x) & 0x1) << 12)
894b8e80941Smrg#define   G_008678_ME_RCIU_NOT_RDY_TO_RCV(x)                          (((x) >> 12) & 0x1)
895b8e80941Smrg#define   C_008678_ME_RCIU_NOT_RDY_TO_RCV                             0xFFFFEFFF
896b8e80941Smrg#define   S_008678_ME_TO_CONST_NOT_RDY_TO_RCV(x)                      (((unsigned)(x) & 0x1) << 13)
897b8e80941Smrg#define   G_008678_ME_TO_CONST_NOT_RDY_TO_RCV(x)                      (((x) >> 13) & 0x1)
898b8e80941Smrg#define   C_008678_ME_TO_CONST_NOT_RDY_TO_RCV                         0xFFFFDFFF
899b8e80941Smrg#define   S_008678_ME_WAITING_DATA_FROM_PFP(x)                        (((unsigned)(x) & 0x1) << 14)
900b8e80941Smrg#define   G_008678_ME_WAITING_DATA_FROM_PFP(x)                        (((x) >> 14) & 0x1)
901b8e80941Smrg#define   C_008678_ME_WAITING_DATA_FROM_PFP                           0xFFFFBFFF
902b8e80941Smrg#define   S_008678_ME_WAITING_ON_PARTIAL_FLUSH(x)                     (((unsigned)(x) & 0x1) << 15)
903b8e80941Smrg#define   G_008678_ME_WAITING_ON_PARTIAL_FLUSH(x)                     (((x) >> 15) & 0x1)
904b8e80941Smrg#define   C_008678_ME_WAITING_ON_PARTIAL_FLUSH                        0xFFFF7FFF
905b8e80941Smrg#define   S_008678_MEQ_TO_ME_NOT_RDY_TO_RCV(x)                        (((unsigned)(x) & 0x1) << 16)
906b8e80941Smrg#define   G_008678_MEQ_TO_ME_NOT_RDY_TO_RCV(x)                        (((x) >> 16) & 0x1)
907b8e80941Smrg#define   C_008678_MEQ_TO_ME_NOT_RDY_TO_RCV                           0xFFFEFFFF
908b8e80941Smrg#define   S_008678_STQ_TO_ME_NOT_RDY_TO_RCV(x)                        (((unsigned)(x) & 0x1) << 17)
909b8e80941Smrg#define   G_008678_STQ_TO_ME_NOT_RDY_TO_RCV(x)                        (((x) >> 17) & 0x1)
910b8e80941Smrg#define   C_008678_STQ_TO_ME_NOT_RDY_TO_RCV                           0xFFFDFFFF
911b8e80941Smrg#define   S_008678_ME_WAITING_DATA_FROM_STQ(x)                        (((unsigned)(x) & 0x1) << 18)
912b8e80941Smrg#define   G_008678_ME_WAITING_DATA_FROM_STQ(x)                        (((x) >> 18) & 0x1)
913b8e80941Smrg#define   C_008678_ME_WAITING_DATA_FROM_STQ                           0xFFFBFFFF
914b8e80941Smrg#define   S_008678_PFP_STALLED_ON_TC_WR_CONFIRM(x)                    (((unsigned)(x) & 0x1) << 19)
915b8e80941Smrg#define   G_008678_PFP_STALLED_ON_TC_WR_CONFIRM(x)                    (((x) >> 19) & 0x1)
916b8e80941Smrg#define   C_008678_PFP_STALLED_ON_TC_WR_CONFIRM                       0xFFF7FFFF
917b8e80941Smrg#define   S_008678_PFP_STALLED_ON_ATOMIC_RTN_DATA(x)                  (((unsigned)(x) & 0x1) << 20)
918b8e80941Smrg#define   G_008678_PFP_STALLED_ON_ATOMIC_RTN_DATA(x)                  (((x) >> 20) & 0x1)
919b8e80941Smrg#define   C_008678_PFP_STALLED_ON_ATOMIC_RTN_DATA                     0xFFEFFFFF
920b8e80941Smrg#define   S_008678_EOPD_FIFO_NEEDS_SC_EOP_DONE(x)                     (((unsigned)(x) & 0x1) << 21)
921b8e80941Smrg#define   G_008678_EOPD_FIFO_NEEDS_SC_EOP_DONE(x)                     (((x) >> 21) & 0x1)
922b8e80941Smrg#define   C_008678_EOPD_FIFO_NEEDS_SC_EOP_DONE                        0xFFDFFFFF
923b8e80941Smrg#define   S_008678_EOPD_FIFO_NEEDS_WR_CONFIRM(x)                      (((unsigned)(x) & 0x1) << 22)
924b8e80941Smrg#define   G_008678_EOPD_FIFO_NEEDS_WR_CONFIRM(x)                      (((x) >> 22) & 0x1)
925b8e80941Smrg#define   C_008678_EOPD_FIFO_NEEDS_WR_CONFIRM                         0xFFBFFFFF
926b8e80941Smrg#define   S_008678_STRMO_WR_OF_PRIM_DATA_PENDING(x)                   (((unsigned)(x) & 0x1) << 23)
927b8e80941Smrg#define   G_008678_STRMO_WR_OF_PRIM_DATA_PENDING(x)                   (((x) >> 23) & 0x1)
928b8e80941Smrg#define   C_008678_STRMO_WR_OF_PRIM_DATA_PENDING                      0xFF7FFFFF
929b8e80941Smrg#define   S_008678_PIPE_STATS_WR_DATA_PENDING(x)                      (((unsigned)(x) & 0x1) << 24)
930b8e80941Smrg#define   G_008678_PIPE_STATS_WR_DATA_PENDING(x)                      (((x) >> 24) & 0x1)
931b8e80941Smrg#define   C_008678_PIPE_STATS_WR_DATA_PENDING                         0xFEFFFFFF
932b8e80941Smrg#define   S_008678_APPEND_RDY_WAIT_ON_CS_DONE(x)                      (((unsigned)(x) & 0x1) << 25)
933b8e80941Smrg#define   G_008678_APPEND_RDY_WAIT_ON_CS_DONE(x)                      (((x) >> 25) & 0x1)
934b8e80941Smrg#define   C_008678_APPEND_RDY_WAIT_ON_CS_DONE                         0xFDFFFFFF
935b8e80941Smrg#define   S_008678_APPEND_RDY_WAIT_ON_PS_DONE(x)                      (((unsigned)(x) & 0x1) << 26)
936b8e80941Smrg#define   G_008678_APPEND_RDY_WAIT_ON_PS_DONE(x)                      (((x) >> 26) & 0x1)
937b8e80941Smrg#define   C_008678_APPEND_RDY_WAIT_ON_PS_DONE                         0xFBFFFFFF
938b8e80941Smrg#define   S_008678_APPEND_WAIT_ON_WR_CONFIRM(x)                       (((unsigned)(x) & 0x1) << 27)
939b8e80941Smrg#define   G_008678_APPEND_WAIT_ON_WR_CONFIRM(x)                       (((x) >> 27) & 0x1)
940b8e80941Smrg#define   C_008678_APPEND_WAIT_ON_WR_CONFIRM                          0xF7FFFFFF
941b8e80941Smrg#define   S_008678_APPEND_ACTIVE_PARTITION(x)                         (((unsigned)(x) & 0x1) << 28)
942b8e80941Smrg#define   G_008678_APPEND_ACTIVE_PARTITION(x)                         (((x) >> 28) & 0x1)
943b8e80941Smrg#define   C_008678_APPEND_ACTIVE_PARTITION                            0xEFFFFFFF
944b8e80941Smrg#define   S_008678_APPEND_WAITING_TO_SEND_MEMWRITE(x)                 (((unsigned)(x) & 0x1) << 29)
945b8e80941Smrg#define   G_008678_APPEND_WAITING_TO_SEND_MEMWRITE(x)                 (((x) >> 29) & 0x1)
946b8e80941Smrg#define   C_008678_APPEND_WAITING_TO_SEND_MEMWRITE                    0xDFFFFFFF
947b8e80941Smrg#define   S_008678_SURF_SYNC_NEEDS_IDLE_CNTXS(x)                      (((unsigned)(x) & 0x1) << 30)
948b8e80941Smrg#define   G_008678_SURF_SYNC_NEEDS_IDLE_CNTXS(x)                      (((x) >> 30) & 0x1)
949b8e80941Smrg#define   C_008678_SURF_SYNC_NEEDS_IDLE_CNTXS                         0xBFFFFFFF
950b8e80941Smrg#define   S_008678_SURF_SYNC_NEEDS_ALL_CLEAN(x)                       (((unsigned)(x) & 0x1) << 31)
951b8e80941Smrg#define   G_008678_SURF_SYNC_NEEDS_ALL_CLEAN(x)                       (((x) >> 31) & 0x1)
952b8e80941Smrg#define   C_008678_SURF_SYNC_NEEDS_ALL_CLEAN                          0x7FFFFFFF
953b8e80941Smrg#define R_008680_CP_STAT                                                0x008680
954b8e80941Smrg#define   S_008680_ROQ_RING_BUSY(x)                                   (((unsigned)(x) & 0x1) << 9)
955b8e80941Smrg#define   G_008680_ROQ_RING_BUSY(x)                                   (((x) >> 9) & 0x1)
956b8e80941Smrg#define   C_008680_ROQ_RING_BUSY                                      0xFFFFFDFF
957b8e80941Smrg#define   S_008680_ROQ_INDIRECT1_BUSY(x)                              (((unsigned)(x) & 0x1) << 10)
958b8e80941Smrg#define   G_008680_ROQ_INDIRECT1_BUSY(x)                              (((x) >> 10) & 0x1)
959b8e80941Smrg#define   C_008680_ROQ_INDIRECT1_BUSY                                 0xFFFFFBFF
960b8e80941Smrg#define   S_008680_ROQ_INDIRECT2_BUSY(x)                              (((unsigned)(x) & 0x1) << 11)
961b8e80941Smrg#define   G_008680_ROQ_INDIRECT2_BUSY(x)                              (((x) >> 11) & 0x1)
962b8e80941Smrg#define   C_008680_ROQ_INDIRECT2_BUSY                                 0xFFFFF7FF
963b8e80941Smrg#define   S_008680_ROQ_STATE_BUSY(x)                                  (((unsigned)(x) & 0x1) << 12)
964b8e80941Smrg#define   G_008680_ROQ_STATE_BUSY(x)                                  (((x) >> 12) & 0x1)
965b8e80941Smrg#define   C_008680_ROQ_STATE_BUSY                                     0xFFFFEFFF
966b8e80941Smrg#define   S_008680_DC_BUSY(x)                                         (((unsigned)(x) & 0x1) << 13)
967b8e80941Smrg#define   G_008680_DC_BUSY(x)                                         (((x) >> 13) & 0x1)
968b8e80941Smrg#define   C_008680_DC_BUSY                                            0xFFFFDFFF
969b8e80941Smrg#define   S_008680_UTCL2IU_BUSY(x)                                    (((unsigned)(x) & 0x1) << 14)
970b8e80941Smrg#define   G_008680_UTCL2IU_BUSY(x)                                    (((x) >> 14) & 0x1)
971b8e80941Smrg#define   C_008680_UTCL2IU_BUSY                                       0xFFFFBFFF
972b8e80941Smrg#define   S_008680_PFP_BUSY(x)                                        (((unsigned)(x) & 0x1) << 15)
973b8e80941Smrg#define   G_008680_PFP_BUSY(x)                                        (((x) >> 15) & 0x1)
974b8e80941Smrg#define   C_008680_PFP_BUSY                                           0xFFFF7FFF
975b8e80941Smrg#define   S_008680_MEQ_BUSY(x)                                        (((unsigned)(x) & 0x1) << 16)
976b8e80941Smrg#define   G_008680_MEQ_BUSY(x)                                        (((x) >> 16) & 0x1)
977b8e80941Smrg#define   C_008680_MEQ_BUSY                                           0xFFFEFFFF
978b8e80941Smrg#define   S_008680_ME_BUSY(x)                                         (((unsigned)(x) & 0x1) << 17)
979b8e80941Smrg#define   G_008680_ME_BUSY(x)                                         (((x) >> 17) & 0x1)
980b8e80941Smrg#define   C_008680_ME_BUSY                                            0xFFFDFFFF
981b8e80941Smrg#define   S_008680_QUERY_BUSY(x)                                      (((unsigned)(x) & 0x1) << 18)
982b8e80941Smrg#define   G_008680_QUERY_BUSY(x)                                      (((x) >> 18) & 0x1)
983b8e80941Smrg#define   C_008680_QUERY_BUSY                                         0xFFFBFFFF
984b8e80941Smrg#define   S_008680_SEMAPHORE_BUSY(x)                                  (((unsigned)(x) & 0x1) << 19)
985b8e80941Smrg#define   G_008680_SEMAPHORE_BUSY(x)                                  (((x) >> 19) & 0x1)
986b8e80941Smrg#define   C_008680_SEMAPHORE_BUSY                                     0xFFF7FFFF
987b8e80941Smrg#define   S_008680_INTERRUPT_BUSY(x)                                  (((unsigned)(x) & 0x1) << 20)
988b8e80941Smrg#define   G_008680_INTERRUPT_BUSY(x)                                  (((x) >> 20) & 0x1)
989b8e80941Smrg#define   C_008680_INTERRUPT_BUSY                                     0xFFEFFFFF
990b8e80941Smrg#define   S_008680_SURFACE_SYNC_BUSY(x)                               (((unsigned)(x) & 0x1) << 21)
991b8e80941Smrg#define   G_008680_SURFACE_SYNC_BUSY(x)                               (((x) >> 21) & 0x1)
992b8e80941Smrg#define   C_008680_SURFACE_SYNC_BUSY                                  0xFFDFFFFF
993b8e80941Smrg#define   S_008680_DMA_BUSY(x)                                        (((unsigned)(x) & 0x1) << 22)
994b8e80941Smrg#define   G_008680_DMA_BUSY(x)                                        (((x) >> 22) & 0x1)
995b8e80941Smrg#define   C_008680_DMA_BUSY                                           0xFFBFFFFF
996b8e80941Smrg#define   S_008680_RCIU_BUSY(x)                                       (((unsigned)(x) & 0x1) << 23)
997b8e80941Smrg#define   G_008680_RCIU_BUSY(x)                                       (((x) >> 23) & 0x1)
998b8e80941Smrg#define   C_008680_RCIU_BUSY                                          0xFF7FFFFF
999b8e80941Smrg#define   S_008680_SCRATCH_RAM_BUSY(x)                                (((unsigned)(x) & 0x1) << 24)
1000b8e80941Smrg#define   G_008680_SCRATCH_RAM_BUSY(x)                                (((x) >> 24) & 0x1)
1001b8e80941Smrg#define   C_008680_SCRATCH_RAM_BUSY                                   0xFEFFFFFF
1002b8e80941Smrg#define   S_008680_CE_BUSY(x)                                         (((unsigned)(x) & 0x1) << 26)
1003b8e80941Smrg#define   G_008680_CE_BUSY(x)                                         (((x) >> 26) & 0x1)
1004b8e80941Smrg#define   C_008680_CE_BUSY                                            0xFBFFFFFF
1005b8e80941Smrg#define   S_008680_TCIU_BUSY(x)                                       (((unsigned)(x) & 0x1) << 27)
1006b8e80941Smrg#define   G_008680_TCIU_BUSY(x)                                       (((x) >> 27) & 0x1)
1007b8e80941Smrg#define   C_008680_TCIU_BUSY                                          0xF7FFFFFF
1008b8e80941Smrg#define   S_008680_ROQ_CE_RING_BUSY(x)                                (((unsigned)(x) & 0x1) << 28)
1009b8e80941Smrg#define   G_008680_ROQ_CE_RING_BUSY(x)                                (((x) >> 28) & 0x1)
1010b8e80941Smrg#define   C_008680_ROQ_CE_RING_BUSY                                   0xEFFFFFFF
1011b8e80941Smrg#define   S_008680_ROQ_CE_INDIRECT1_BUSY(x)                           (((unsigned)(x) & 0x1) << 29)
1012b8e80941Smrg#define   G_008680_ROQ_CE_INDIRECT1_BUSY(x)                           (((x) >> 29) & 0x1)
1013b8e80941Smrg#define   C_008680_ROQ_CE_INDIRECT1_BUSY                              0xDFFFFFFF
1014b8e80941Smrg#define   S_008680_ROQ_CE_INDIRECT2_BUSY(x)                           (((unsigned)(x) & 0x1) << 30)
1015b8e80941Smrg#define   G_008680_ROQ_CE_INDIRECT2_BUSY(x)                           (((x) >> 30) & 0x1)
1016b8e80941Smrg#define   C_008680_ROQ_CE_INDIRECT2_BUSY                              0xBFFFFFFF
1017b8e80941Smrg#define   S_008680_CP_BUSY(x)                                         (((unsigned)(x) & 0x1) << 31)
1018b8e80941Smrg#define   G_008680_CP_BUSY(x)                                         (((x) >> 31) & 0x1)
1019b8e80941Smrg#define   C_008680_CP_BUSY                                            0x7FFFFFFF
1020b8e80941Smrg#define R_030800_GRBM_GFX_INDEX                                         0x030800
1021b8e80941Smrg#define   S_030800_INSTANCE_INDEX(x)                                  (((unsigned)(x) & 0xFF) << 0)
1022b8e80941Smrg#define   G_030800_INSTANCE_INDEX(x)                                  (((x) >> 0) & 0xFF)
1023b8e80941Smrg#define   C_030800_INSTANCE_INDEX                                     0xFFFFFF00
1024b8e80941Smrg#define   S_030800_SH_INDEX(x)                                        (((unsigned)(x) & 0xFF) << 8)
1025b8e80941Smrg#define   G_030800_SH_INDEX(x)                                        (((x) >> 8) & 0xFF)
1026b8e80941Smrg#define   C_030800_SH_INDEX                                           0xFFFF00FF
1027b8e80941Smrg#define   S_030800_SE_INDEX(x)                                        (((unsigned)(x) & 0xFF) << 16)
1028b8e80941Smrg#define   G_030800_SE_INDEX(x)                                        (((x) >> 16) & 0xFF)
1029b8e80941Smrg#define   C_030800_SE_INDEX                                           0xFF00FFFF
1030b8e80941Smrg#define   S_030800_SH_BROADCAST_WRITES(x)                             (((unsigned)(x) & 0x1) << 29)
1031b8e80941Smrg#define   G_030800_SH_BROADCAST_WRITES(x)                             (((x) >> 29) & 0x1)
1032b8e80941Smrg#define   C_030800_SH_BROADCAST_WRITES                                0xDFFFFFFF
1033b8e80941Smrg#define   S_030800_INSTANCE_BROADCAST_WRITES(x)                       (((unsigned)(x) & 0x1) << 30)
1034b8e80941Smrg#define   G_030800_INSTANCE_BROADCAST_WRITES(x)                       (((x) >> 30) & 0x1)
1035b8e80941Smrg#define   C_030800_INSTANCE_BROADCAST_WRITES                          0xBFFFFFFF
1036b8e80941Smrg#define   S_030800_SE_BROADCAST_WRITES(x)                             (((unsigned)(x) & 0x1) << 31)
1037b8e80941Smrg#define   G_030800_SE_BROADCAST_WRITES(x)                             (((x) >> 31) & 0x1)
1038b8e80941Smrg#define   C_030800_SE_BROADCAST_WRITES                                0x7FFFFFFF
1039b8e80941Smrg#define R_030904_VGT_GSVS_RING_SIZE                                     0x030904
1040b8e80941Smrg#define R_030908_VGT_PRIMITIVE_TYPE                                     0x030908
1041b8e80941Smrg#define   S_030908_PRIM_TYPE(x)                                       (((unsigned)(x) & 0x3F) << 0)
1042b8e80941Smrg#define   G_030908_PRIM_TYPE(x)                                       (((x) >> 0) & 0x3F)
1043b8e80941Smrg#define   C_030908_PRIM_TYPE                                          0xFFFFFFC0
1044b8e80941Smrg#define R_03090C_VGT_INDEX_TYPE                                         0x03090C
1045b8e80941Smrg#define   S_03090C_INDEX_TYPE(x)                                      (((unsigned)(x) & 0x03) << 0)
1046b8e80941Smrg#define   G_03090C_INDEX_TYPE(x)                                      (((x) >> 0) & 0x03)
1047b8e80941Smrg#define   C_03090C_INDEX_TYPE                                         0xFFFFFFFC
1048b8e80941Smrg#define   S_03090C_PRIMGEN_EN(x)                                      (((unsigned)(x) & 0x1) << 8)
1049b8e80941Smrg#define   G_03090C_PRIMGEN_EN(x)                                      (((x) >> 8) & 0x1)
1050b8e80941Smrg#define   C_03090C_PRIMGEN_EN                                         0xFFFFFEFF
1051b8e80941Smrg#define R_030910_VGT_STRMOUT_BUFFER_FILLED_SIZE_0                       0x030910
1052b8e80941Smrg#define R_030914_VGT_STRMOUT_BUFFER_FILLED_SIZE_1                       0x030914
1053b8e80941Smrg#define R_030918_VGT_STRMOUT_BUFFER_FILLED_SIZE_2                       0x030918
1054b8e80941Smrg#define R_03091C_VGT_STRMOUT_BUFFER_FILLED_SIZE_3                       0x03091C
1055b8e80941Smrg#define R_030920_VGT_MAX_VTX_INDX                                       0x030920
1056b8e80941Smrg#define R_030924_VGT_MIN_VTX_INDX                                       0x030924
1057b8e80941Smrg#define R_030928_VGT_INDX_OFFSET                                        0x030928
1058b8e80941Smrg#define R_03092C_VGT_MULTI_PRIM_IB_RESET_EN                             0x03092C
1059b8e80941Smrg#define   S_03092C_RESET_EN(x)                                        (((unsigned)(x) & 0x1) << 0)
1060b8e80941Smrg#define   G_03092C_RESET_EN(x)                                        (((x) >> 0) & 0x1)
1061b8e80941Smrg#define   C_03092C_RESET_EN                                           0xFFFFFFFE
1062b8e80941Smrg#define   S_03092C_MATCH_ALL_BITS(x)                                  (((unsigned)(x) & 0x1) << 1)
1063b8e80941Smrg#define   G_03092C_MATCH_ALL_BITS(x)                                  (((x) >> 1) & 0x1)
1064b8e80941Smrg#define   C_03092C_MATCH_ALL_BITS                                     0xFFFFFFFD
1065b8e80941Smrg#define R_030930_VGT_NUM_INDICES                                        0x030930
1066b8e80941Smrg#define R_030934_VGT_NUM_INSTANCES                                      0x030934
1067b8e80941Smrg#define R_030938_VGT_TF_RING_SIZE                                       0x030938
1068b8e80941Smrg#define   S_030938_SIZE(x)                                            (((unsigned)(x) & 0xFFFF) << 0)
1069b8e80941Smrg#define   G_030938_SIZE(x)                                            (((x) >> 0) & 0xFFFF)
1070b8e80941Smrg#define   C_030938_SIZE                                               0xFFFF0000
1071b8e80941Smrg#define R_03093C_VGT_HS_OFFCHIP_PARAM                                   0x03093C
1072b8e80941Smrg#define   S_03093C_OFFCHIP_BUFFERING(x)                               (((unsigned)(x) & 0x1FF) << 0)
1073b8e80941Smrg#define   G_03093C_OFFCHIP_BUFFERING(x)                               (((x) >> 0) & 0x1FF)
1074b8e80941Smrg#define   C_03093C_OFFCHIP_BUFFERING                                  0xFFFFFE00
1075b8e80941Smrg#define   S_03093C_OFFCHIP_GRANULARITY(x)                             (((unsigned)(x) & 0x03) << 9)
1076b8e80941Smrg#define   G_03093C_OFFCHIP_GRANULARITY(x)                             (((x) >> 9) & 0x03)
1077b8e80941Smrg#define   C_03093C_OFFCHIP_GRANULARITY                                0xFFFFF9FF
1078b8e80941Smrg#define R_030940_VGT_TF_MEMORY_BASE                                     0x030940
1079b8e80941Smrg#define R_030944_VGT_TF_MEMORY_BASE_HI                                  0x030944
1080b8e80941Smrg#define   S_030944_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
1081b8e80941Smrg#define   G_030944_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
1082b8e80941Smrg#define   C_030944_BASE_HI                                            0xFFFFFF00
1083b8e80941Smrg#define R_030948_WD_POS_BUF_BASE                                        0x030948
1084b8e80941Smrg#define R_03094C_WD_POS_BUF_BASE_HI                                     0x03094C
1085b8e80941Smrg#define   S_03094C_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
1086b8e80941Smrg#define   G_03094C_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
1087b8e80941Smrg#define   C_03094C_BASE_HI                                            0xFFFFFF00
1088b8e80941Smrg#define R_030950_WD_CNTL_SB_BUF_BASE                                    0x030950
1089b8e80941Smrg#define R_030954_WD_CNTL_SB_BUF_BASE_HI                                 0x030954
1090b8e80941Smrg#define   S_030954_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
1091b8e80941Smrg#define   G_030954_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
1092b8e80941Smrg#define   C_030954_BASE_HI                                            0xFFFFFF00
1093b8e80941Smrg#define R_030958_WD_INDEX_BUF_BASE                                      0x030958
1094b8e80941Smrg#define R_03095C_WD_INDEX_BUF_BASE_HI                                   0x03095C
1095b8e80941Smrg#define   S_03095C_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
1096b8e80941Smrg#define   G_03095C_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
1097b8e80941Smrg#define   C_03095C_BASE_HI                                            0xFFFFFF00
1098b8e80941Smrg#define R_030960_IA_MULTI_VGT_PARAM                                     0x030960
1099b8e80941Smrg#define   S_030960_PRIMGROUP_SIZE(x)                                  (((unsigned)(x) & 0xFFFF) << 0)
1100b8e80941Smrg#define   G_030960_PRIMGROUP_SIZE(x)                                  (((x) >> 0) & 0xFFFF)
1101b8e80941Smrg#define   C_030960_PRIMGROUP_SIZE                                     0xFFFF0000
1102b8e80941Smrg#define   S_030960_PARTIAL_VS_WAVE_ON(x)                              (((unsigned)(x) & 0x1) << 16)
1103b8e80941Smrg#define   G_030960_PARTIAL_VS_WAVE_ON(x)                              (((x) >> 16) & 0x1)
1104b8e80941Smrg#define   C_030960_PARTIAL_VS_WAVE_ON                                 0xFFFEFFFF
1105b8e80941Smrg#define   S_030960_SWITCH_ON_EOP(x)                                   (((unsigned)(x) & 0x1) << 17)
1106b8e80941Smrg#define   G_030960_SWITCH_ON_EOP(x)                                   (((x) >> 17) & 0x1)
1107b8e80941Smrg#define   C_030960_SWITCH_ON_EOP                                      0xFFFDFFFF
1108b8e80941Smrg#define   S_030960_PARTIAL_ES_WAVE_ON(x)                              (((unsigned)(x) & 0x1) << 18)
1109b8e80941Smrg#define   G_030960_PARTIAL_ES_WAVE_ON(x)                              (((x) >> 18) & 0x1)
1110b8e80941Smrg#define   C_030960_PARTIAL_ES_WAVE_ON                                 0xFFFBFFFF
1111b8e80941Smrg#define   S_030960_SWITCH_ON_EOI(x)                                   (((unsigned)(x) & 0x1) << 19)
1112b8e80941Smrg#define   G_030960_SWITCH_ON_EOI(x)                                   (((x) >> 19) & 0x1)
1113b8e80941Smrg#define   C_030960_SWITCH_ON_EOI                                      0xFFF7FFFF
1114b8e80941Smrg#define   S_030960_WD_SWITCH_ON_EOP(x)                                (((unsigned)(x) & 0x1) << 20)
1115b8e80941Smrg#define   G_030960_WD_SWITCH_ON_EOP(x)                                (((x) >> 20) & 0x1)
1116b8e80941Smrg#define   C_030960_WD_SWITCH_ON_EOP                                   0xFFEFFFFF
1117b8e80941Smrg#define   S_030960_EN_INST_OPT_BASIC(x)                               (((unsigned)(x) & 0x1) << 21)
1118b8e80941Smrg#define   G_030960_EN_INST_OPT_BASIC(x)                               (((x) >> 21) & 0x1)
1119b8e80941Smrg#define   C_030960_EN_INST_OPT_BASIC                                  0xFFDFFFFF
1120b8e80941Smrg#define   S_030960_EN_INST_OPT_ADV(x)                                 (((unsigned)(x) & 0x1) << 22)
1121b8e80941Smrg#define   G_030960_EN_INST_OPT_ADV(x)                                 (((x) >> 22) & 0x1)
1122b8e80941Smrg#define   C_030960_EN_INST_OPT_ADV                                    0xFFBFFFFF
1123b8e80941Smrg#define   S_030960_HW_USE_ONLY(x)                                     (((unsigned)(x) & 0x1) << 23)
1124b8e80941Smrg#define   G_030960_HW_USE_ONLY(x)                                     (((x) >> 23) & 0x1)
1125b8e80941Smrg#define   C_030960_HW_USE_ONLY                                        0xFF7FFFFF
1126b8e80941Smrg#define R_030968_VGT_INSTANCE_BASE_ID                                   0x030968
1127b8e80941Smrg#define R_030A00_PA_SU_LINE_STIPPLE_VALUE                               0x030A00
1128b8e80941Smrg#define   S_030A00_LINE_STIPPLE_VALUE(x)                              (((unsigned)(x) & 0xFFFFFF) << 0)
1129b8e80941Smrg#define   G_030A00_LINE_STIPPLE_VALUE(x)                              (((x) >> 0) & 0xFFFFFF)
1130b8e80941Smrg#define   C_030A00_LINE_STIPPLE_VALUE                                 0xFF000000
1131b8e80941Smrg#define R_030A04_PA_SC_LINE_STIPPLE_STATE                               0x030A04
1132b8e80941Smrg#define   S_030A04_CURRENT_PTR(x)                                     (((unsigned)(x) & 0x0F) << 0)
1133b8e80941Smrg#define   G_030A04_CURRENT_PTR(x)                                     (((x) >> 0) & 0x0F)
1134b8e80941Smrg#define   C_030A04_CURRENT_PTR                                        0xFFFFFFF0
1135b8e80941Smrg#define   S_030A04_CURRENT_COUNT(x)                                   (((unsigned)(x) & 0xFF) << 8)
1136b8e80941Smrg#define   G_030A04_CURRENT_COUNT(x)                                   (((x) >> 8) & 0xFF)
1137b8e80941Smrg#define   C_030A04_CURRENT_COUNT                                      0xFFFF00FF
1138b8e80941Smrg#define R_030A10_PA_SC_SCREEN_EXTENT_MIN_0                              0x030A10
1139b8e80941Smrg#define   S_030A10_X(x)                                               (((unsigned)(x) & 0xFFFF) << 0)
1140b8e80941Smrg#define   G_030A10_X(x)                                               (((x) >> 0) & 0xFFFF)
1141b8e80941Smrg#define   C_030A10_X                                                  0xFFFF0000
1142b8e80941Smrg#define   S_030A10_Y(x)                                               (((unsigned)(x) & 0xFFFF) << 16)
1143b8e80941Smrg#define   G_030A10_Y(x)                                               (((x) >> 16) & 0xFFFF)
1144b8e80941Smrg#define   C_030A10_Y                                                  0x0000FFFF
1145b8e80941Smrg#define R_030A14_PA_SC_SCREEN_EXTENT_MAX_0                              0x030A14
1146b8e80941Smrg#define   S_030A14_X(x)                                               (((unsigned)(x) & 0xFFFF) << 0)
1147b8e80941Smrg#define   G_030A14_X(x)                                               (((x) >> 0) & 0xFFFF)
1148b8e80941Smrg#define   C_030A14_X                                                  0xFFFF0000
1149b8e80941Smrg#define   S_030A14_Y(x)                                               (((unsigned)(x) & 0xFFFF) << 16)
1150b8e80941Smrg#define   G_030A14_Y(x)                                               (((x) >> 16) & 0xFFFF)
1151b8e80941Smrg#define   C_030A14_Y                                                  0x0000FFFF
1152b8e80941Smrg#define R_030A18_PA_SC_SCREEN_EXTENT_MIN_1                              0x030A18
1153b8e80941Smrg#define   S_030A18_X(x)                                               (((unsigned)(x) & 0xFFFF) << 0)
1154b8e80941Smrg#define   G_030A18_X(x)                                               (((x) >> 0) & 0xFFFF)
1155b8e80941Smrg#define   C_030A18_X                                                  0xFFFF0000
1156b8e80941Smrg#define   S_030A18_Y(x)                                               (((unsigned)(x) & 0xFFFF) << 16)
1157b8e80941Smrg#define   G_030A18_Y(x)                                               (((x) >> 16) & 0xFFFF)
1158b8e80941Smrg#define   C_030A18_Y                                                  0x0000FFFF
1159b8e80941Smrg#define R_030A2C_PA_SC_SCREEN_EXTENT_MAX_1                              0x030A2C
1160b8e80941Smrg#define   S_030A2C_X(x)                                               (((unsigned)(x) & 0xFFFF) << 0)
1161b8e80941Smrg#define   G_030A2C_X(x)                                               (((x) >> 0) & 0xFFFF)
1162b8e80941Smrg#define   C_030A2C_X                                                  0xFFFF0000
1163b8e80941Smrg#define   S_030A2C_Y(x)                                               (((unsigned)(x) & 0xFFFF) << 16)
1164b8e80941Smrg#define   G_030A2C_Y(x)                                               (((x) >> 16) & 0xFFFF)
1165b8e80941Smrg#define   C_030A2C_Y                                                  0x0000FFFF
1166b8e80941Smrg#define R_030D20_SQC_CACHES                                             0x030D20
1167b8e80941Smrg#define   S_030D20_TARGET_INST(x)                                     (((unsigned)(x) & 0x1) << 0)
1168b8e80941Smrg#define   G_030D20_TARGET_INST(x)                                     (((x) >> 0) & 0x1)
1169b8e80941Smrg#define   C_030D20_TARGET_INST                                        0xFFFFFFFE
1170b8e80941Smrg#define   S_030D20_TARGET_DATA(x)                                     (((unsigned)(x) & 0x1) << 1)
1171b8e80941Smrg#define   G_030D20_TARGET_DATA(x)                                     (((x) >> 1) & 0x1)
1172b8e80941Smrg#define   C_030D20_TARGET_DATA                                        0xFFFFFFFD
1173b8e80941Smrg#define   S_030D20_INVALIDATE(x)                                      (((unsigned)(x) & 0x1) << 2)
1174b8e80941Smrg#define   G_030D20_INVALIDATE(x)                                      (((x) >> 2) & 0x1)
1175b8e80941Smrg#define   C_030D20_INVALIDATE                                         0xFFFFFFFB
1176b8e80941Smrg#define   S_030D20_WRITEBACK(x)                                       (((unsigned)(x) & 0x1) << 3)
1177b8e80941Smrg#define   G_030D20_WRITEBACK(x)                                       (((x) >> 3) & 0x1)
1178b8e80941Smrg#define   C_030D20_WRITEBACK                                          0xFFFFFFF7
1179b8e80941Smrg#define   S_030D20_VOL(x)                                             (((unsigned)(x) & 0x1) << 4)
1180b8e80941Smrg#define   G_030D20_VOL(x)                                             (((x) >> 4) & 0x1)
1181b8e80941Smrg#define   C_030D20_VOL                                                0xFFFFFFEF
1182b8e80941Smrg#define   S_030D20_COMPLETE(x)                                        (((unsigned)(x) & 0x1) << 16)
1183b8e80941Smrg#define   G_030D20_COMPLETE(x)                                        (((x) >> 16) & 0x1)
1184b8e80941Smrg#define   C_030D20_COMPLETE                                           0xFFFEFFFF
1185b8e80941Smrg#define R_030D24_SQC_WRITEBACK                                          0x030D24
1186b8e80941Smrg#define   S_030D24_DWB(x)                                             (((unsigned)(x) & 0x1) << 0)
1187b8e80941Smrg#define   G_030D24_DWB(x)                                             (((x) >> 0) & 0x1)
1188b8e80941Smrg#define   C_030D24_DWB                                                0xFFFFFFFE
1189b8e80941Smrg#define   S_030D24_DIRTY(x)                                           (((unsigned)(x) & 0x1) << 1)
1190b8e80941Smrg#define   G_030D24_DIRTY(x)                                           (((x) >> 1) & 0x1)
1191b8e80941Smrg#define   C_030D24_DIRTY                                              0xFFFFFFFD
1192b8e80941Smrg#define R_030E00_TA_CS_BC_BASE_ADDR                                     0x030E00
1193b8e80941Smrg#define R_030E04_TA_CS_BC_BASE_ADDR_HI                                  0x030E04
1194b8e80941Smrg#define   S_030E04_ADDRESS(x)                                         (((unsigned)(x) & 0xFF) << 0)
1195b8e80941Smrg#define   G_030E04_ADDRESS(x)                                         (((x) >> 0) & 0xFF)
1196b8e80941Smrg#define   C_030E04_ADDRESS                                            0xFFFFFF00
1197b8e80941Smrg#define R_030F00_DB_OCCLUSION_COUNT0_LOW                                0x030F00
1198b8e80941Smrg#define R_008F00_SQ_BUF_RSRC_WORD0                                      0x008F00
1199b8e80941Smrg#define R_030F04_DB_OCCLUSION_COUNT0_HI                                 0x030F04
1200b8e80941Smrg#define   S_030F04_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
1201b8e80941Smrg#define   G_030F04_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
1202b8e80941Smrg#define   C_030F04_COUNT_HI                                           0x80000000
1203b8e80941Smrg#define R_008F04_SQ_BUF_RSRC_WORD1                                      0x008F04
1204b8e80941Smrg#define   S_008F04_BASE_ADDRESS_HI(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
1205b8e80941Smrg#define   G_008F04_BASE_ADDRESS_HI(x)                                 (((x) >> 0) & 0xFFFF)
1206b8e80941Smrg#define   C_008F04_BASE_ADDRESS_HI                                    0xFFFF0000
1207b8e80941Smrg#define   S_008F04_STRIDE(x)                                          (((unsigned)(x) & 0x3FFF) << 16)
1208b8e80941Smrg#define   G_008F04_STRIDE(x)                                          (((x) >> 16) & 0x3FFF)
1209b8e80941Smrg#define   C_008F04_STRIDE                                             0xC000FFFF
1210b8e80941Smrg#define   S_008F04_CACHE_SWIZZLE(x)                                   (((unsigned)(x) & 0x1) << 30)
1211b8e80941Smrg#define   G_008F04_CACHE_SWIZZLE(x)                                   (((x) >> 30) & 0x1)
1212b8e80941Smrg#define   C_008F04_CACHE_SWIZZLE                                      0xBFFFFFFF
1213b8e80941Smrg#define   S_008F04_SWIZZLE_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 31)
1214b8e80941Smrg#define   G_008F04_SWIZZLE_ENABLE(x)                                  (((x) >> 31) & 0x1)
1215b8e80941Smrg#define   C_008F04_SWIZZLE_ENABLE                                     0x7FFFFFFF
1216b8e80941Smrg#define R_030F08_DB_OCCLUSION_COUNT1_LOW                                0x030F08
1217b8e80941Smrg#define R_008F08_SQ_BUF_RSRC_WORD2                                      0x008F08
1218b8e80941Smrg#define R_030F0C_DB_OCCLUSION_COUNT1_HI                                 0x030F0C
1219b8e80941Smrg#define   S_030F0C_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
1220b8e80941Smrg#define   G_030F0C_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
1221b8e80941Smrg#define   C_030F0C_COUNT_HI                                           0x80000000
1222b8e80941Smrg#define R_008F0C_SQ_BUF_RSRC_WORD3                                      0x008F0C
1223b8e80941Smrg#define   S_008F0C_DST_SEL_X(x)                                       (((unsigned)(x) & 0x07) << 0)
1224b8e80941Smrg#define   G_008F0C_DST_SEL_X(x)                                       (((x) >> 0) & 0x07)
1225b8e80941Smrg#define   C_008F0C_DST_SEL_X                                          0xFFFFFFF8
1226b8e80941Smrg#define   S_008F0C_DST_SEL_Y(x)                                       (((unsigned)(x) & 0x07) << 3)
1227b8e80941Smrg#define   G_008F0C_DST_SEL_Y(x)                                       (((x) >> 3) & 0x07)
1228b8e80941Smrg#define   C_008F0C_DST_SEL_Y                                          0xFFFFFFC7
1229b8e80941Smrg#define   S_008F0C_DST_SEL_Z(x)                                       (((unsigned)(x) & 0x07) << 6)
1230b8e80941Smrg#define   G_008F0C_DST_SEL_Z(x)                                       (((x) >> 6) & 0x07)
1231b8e80941Smrg#define   C_008F0C_DST_SEL_Z                                          0xFFFFFE3F
1232b8e80941Smrg#define   S_008F0C_DST_SEL_W(x)                                       (((unsigned)(x) & 0x07) << 9)
1233b8e80941Smrg#define   G_008F0C_DST_SEL_W(x)                                       (((x) >> 9) & 0x07)
1234b8e80941Smrg#define   C_008F0C_DST_SEL_W                                          0xFFFFF1FF
1235b8e80941Smrg#define   S_008F0C_NUM_FORMAT(x)                                      (((unsigned)(x) & 0x07) << 12)
1236b8e80941Smrg#define   G_008F0C_NUM_FORMAT(x)                                      (((x) >> 12) & 0x07)
1237b8e80941Smrg#define   C_008F0C_NUM_FORMAT                                         0xFFFF8FFF
1238b8e80941Smrg#define   S_008F0C_DATA_FORMAT(x)                                     (((unsigned)(x) & 0x0F) << 15)
1239b8e80941Smrg#define   G_008F0C_DATA_FORMAT(x)                                     (((x) >> 15) & 0x0F)
1240b8e80941Smrg#define   C_008F0C_DATA_FORMAT                                        0xFFF87FFF
1241b8e80941Smrg#define   S_008F0C_USER_VM_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 19)
1242b8e80941Smrg#define   G_008F0C_USER_VM_ENABLE(x)                                  (((x) >> 19) & 0x1)
1243b8e80941Smrg#define   C_008F0C_USER_VM_ENABLE                                     0xFFF7FFFF
1244b8e80941Smrg#define   S_008F0C_USER_VM_MODE(x)                                    (((unsigned)(x) & 0x1) << 20)
1245b8e80941Smrg#define   G_008F0C_USER_VM_MODE(x)                                    (((x) >> 20) & 0x1)
1246b8e80941Smrg#define   C_008F0C_USER_VM_MODE                                       0xFFEFFFFF
1247b8e80941Smrg#define   S_008F0C_INDEX_STRIDE(x)                                    (((unsigned)(x) & 0x03) << 21)
1248b8e80941Smrg#define   G_008F0C_INDEX_STRIDE(x)                                    (((x) >> 21) & 0x03)
1249b8e80941Smrg#define   C_008F0C_INDEX_STRIDE                                       0xFF9FFFFF
1250b8e80941Smrg#define   S_008F0C_ADD_TID_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 23)
1251b8e80941Smrg#define   G_008F0C_ADD_TID_ENABLE(x)                                  (((x) >> 23) & 0x1)
1252b8e80941Smrg#define   C_008F0C_ADD_TID_ENABLE                                     0xFF7FFFFF
1253b8e80941Smrg#define   S_008F0C_NV(x)                                              (((unsigned)(x) & 0x1) << 27)
1254b8e80941Smrg#define   G_008F0C_NV(x)                                              (((x) >> 27) & 0x1)
1255b8e80941Smrg#define   C_008F0C_NV                                                 0xF7FFFFFF
1256b8e80941Smrg#define   S_008F0C_TYPE(x)                                            (((unsigned)(x) & 0x03) << 30)
1257b8e80941Smrg#define   G_008F0C_TYPE(x)                                            (((x) >> 30) & 0x03)
1258b8e80941Smrg#define   C_008F0C_TYPE                                               0x3FFFFFFF
1259b8e80941Smrg#define R_030F10_DB_OCCLUSION_COUNT2_LOW                                0x030F10
1260b8e80941Smrg#define R_008F10_SQ_IMG_RSRC_WORD0                                      0x008F10
1261b8e80941Smrg#define R_030F14_DB_OCCLUSION_COUNT2_HI                                 0x030F14
1262b8e80941Smrg#define   S_030F14_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
1263b8e80941Smrg#define   G_030F14_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
1264b8e80941Smrg#define   C_030F14_COUNT_HI                                           0x80000000
1265b8e80941Smrg#define R_008F14_SQ_IMG_RSRC_WORD1                                      0x008F14
1266b8e80941Smrg#define   S_008F14_BASE_ADDRESS_HI(x)                                 (((unsigned)(x) & 0xFF) << 0)
1267b8e80941Smrg#define   G_008F14_BASE_ADDRESS_HI(x)                                 (((x) >> 0) & 0xFF)
1268b8e80941Smrg#define   C_008F14_BASE_ADDRESS_HI                                    0xFFFFFF00
1269b8e80941Smrg#define   S_008F14_MIN_LOD(x)                                         (((unsigned)(x) & 0xFFF) << 8)
1270b8e80941Smrg#define   G_008F14_MIN_LOD(x)                                         (((x) >> 8) & 0xFFF)
1271b8e80941Smrg#define   C_008F14_MIN_LOD                                            0xFFF000FF
1272b8e80941Smrg#define   S_008F14_DATA_FORMAT_GFX9(x)                                (((unsigned)(x) & 0x3F) << 20)
1273b8e80941Smrg#define   G_008F14_DATA_FORMAT_GFX9(x)                                (((x) >> 20) & 0x3F)
1274b8e80941Smrg#define   C_008F14_DATA_FORMAT_GFX9                                   0xFC0FFFFF
1275b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_INVALID                        0x00
1276b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8                              0x01
1277b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16                             0x02
1278b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_8                            0x03
1279b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_32                             0x04
1280b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16_16                          0x05
1281b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_10_11_11                       0x06
1282b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_11_11_10                       0x07
1283b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_10_10_10_2                     0x08
1284b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_2_10_10_10                     0x09
1285b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_8_8_8                        0x0A
1286b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_32_32                          0x0B
1287b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16_16_16_16                    0x0C
1288b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_32_32_32                       0x0D
1289b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_32_32_32_32                    0x0E
1290b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_RESERVED_15                    0x0F
1291b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_5_6_5                          0x10
1292b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_1_5_5_5                        0x11
1293b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_5_5_5_1                        0x12
1294b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_4_4_4_4                        0x13
1295b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_24                           0x14
1296b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_24_8                           0x15
1297b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_X24_8_32                       0x16
1298b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_AS_8_8_8_8                   0x17
1299b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ETC2_RGB                       0x18
1300b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ETC2_RGBA                      0x19
1301b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ETC2_R                         0x1A
1302b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ETC2_RG                        0x1B
1303b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ETC2_RGBA1                     0x1C
1304b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_RESERVED_29                    0x1D
1305b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_RESERVED_30                    0x1E
1306b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_6E4                            0x1F
1307b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_GB_GR                          0x20
1308b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BG_RG                          0x21
1309b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_5_9_9_9                        0x22
1310b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC1                            0x23
1311b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC2                            0x24
1312b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC3                            0x25
1313b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC4                            0x26
1314b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC5                            0x27
1315b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC6                            0x28
1316b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_BC7                            0x29
1317b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16_AS_32_32                    0x2A
1318b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16_AS_16_16_16_16_GFX9         0x2B
1319b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_16_AS_32_32_32_32_GFX9         0x2C
1320b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_FMASK                          0x2D /* NUM_FORMAT selects the format */
1321b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_2D_LDR                    0x2E /* NUM_FORMAT selects the block size */
1322b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_2D_HDR                    0x2F /* ditto */
1323b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_2D_LDR_SRGB               0x30 /* ditto */
1324b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_3D_LDR                    0x31 /* ditto */
1325b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_3D_HDR                    0x32 /* ditto */
1326b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_ASTC_3D_LDR_SRGB               0x33 /* ditto */
1327b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_N_IN_16                        0x34
1328b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_N_IN_16_16                     0x35
1329b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_N_IN_16_16_16_16               0x36
1330b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_N_IN_16_AS_16_16_16_16         0x37
1331b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_RESERVED_56                    0x38
1332b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_4_4                            0x39
1333b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_6_5_5                          0x3A
1334b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_S8_16                          0x3B
1335b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_S8_32                          0x3C
1336b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_AS_32                        0x3D
1337b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_8_AS_32_32                     0x3E
1338b8e80941Smrg#define     V_008F14_IMG_DATA_FORMAT_32_AS_32_32_32_32              0x3F
1339b8e80941Smrg#define   S_008F14_NUM_FORMAT_GFX9(x)                                 (((unsigned)(x) & 0x0F) << 26)
1340b8e80941Smrg#define   G_008F14_NUM_FORMAT_GFX9(x)                                 (((x) >> 26) & 0x0F)
1341b8e80941Smrg#define   C_008F14_NUM_FORMAT_GFX9                                    0xC3FFFFFF
1342b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_UNORM                           0x00
1343b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_SNORM                           0x01
1344b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_USCALED                         0x02
1345b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_SSCALED                         0x03
1346b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_UINT                            0x04
1347b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_SINT                            0x05
1348b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_RESERVED_6                      0x06
1349b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_FLOAT                           0x07
1350b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_METADATA                        0x08
1351b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_SRGB                            0x09
1352b8e80941Smrg#define     V_008F14_IMG_NUM_FORMAT_UNORM_UINT                      0x0A
1353b8e80941Smrg#define   S_008F14_NUM_FORMAT_FMASK(x)                                (((unsigned)(x) & 0x0F) << 26)
1354b8e80941Smrg#define   G_008F14_NUM_FORMAT_FMASK(x)                                (((x) >> 26) & 0x0F)
1355b8e80941Smrg#define   C_008F14_NUM_FORMAT_FMASK                                   0xC3FFFFFF
1356b8e80941Smrg#define     V_008F14_IMG_FMASK_8_2_1                                0x00
1357b8e80941Smrg#define     V_008F14_IMG_FMASK_8_4_1                                0x01
1358b8e80941Smrg#define     V_008F14_IMG_FMASK_8_8_1                                0x02
1359b8e80941Smrg#define     V_008F14_IMG_FMASK_8_2_2                                0x03
1360b8e80941Smrg#define     V_008F14_IMG_FMASK_8_4_2                                0x04
1361b8e80941Smrg#define     V_008F14_IMG_FMASK_8_4_4                                0x05
1362b8e80941Smrg#define     V_008F14_IMG_FMASK_16_16_1                              0x06
1363b8e80941Smrg#define     V_008F14_IMG_FMASK_16_8_2                               0x07
1364b8e80941Smrg#define     V_008F14_IMG_FMASK_32_16_2                              0x08
1365b8e80941Smrg#define     V_008F14_IMG_FMASK_32_8_4                               0x09
1366b8e80941Smrg#define     V_008F14_IMG_FMASK_32_8_8                               0x0A
1367b8e80941Smrg#define     V_008F14_IMG_FMASK_64_16_4                              0x0B
1368b8e80941Smrg#define     V_008F14_IMG_FMASK_64_16_8                              0x0C
1369b8e80941Smrg#define   S_008F14_NUM_FORMAT_ASTC_2D(x)                              (((unsigned)(x) & 0x0F) << 26)
1370b8e80941Smrg#define   G_008F14_NUM_FORMAT_ASTC_2D(x)                              (((x) >> 26) & 0x0F)
1371b8e80941Smrg#define   C_008F14_NUM_FORMAT_ASTC_2D                               0xC3FFFFFF
1372b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_4x4                                0x00
1373b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_5x4                                0x01
1374b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_5x5                                0x02
1375b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_6x5                                0x03
1376b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_6x6                                0x04
1377b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_8x5                                0x05
1378b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_8x6                                0x06
1379b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_8x8                                0x07
1380b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_10x5                               0x08
1381b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_10x6                               0x09
1382b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_10x8                               0x0A
1383b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_10x10                              0x0B
1384b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_12x10                              0x0C
1385b8e80941Smrg#define     V_008F14_IMG_ASTC_2D_12x12                              0x0D
1386b8e80941Smrg#define   S_008F14_NUM_FORMAT_ASTC_3D(x)                              (((unsigned)(x) & 0x0F) << 26)
1387b8e80941Smrg#define   G_008F14_NUM_FORMAT_ASTC_3D(x)                              (((x) >> 26) & 0x0F)
1388b8e80941Smrg#define   C_008F14_NUM_FORMAT_ASTC_3D                               0xC3FFFFFF
1389b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_3x3x3                              0x00
1390b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_4x3x3                              0x01
1391b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_4x4x3                              0x02
1392b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_4x4x4                              0x03
1393b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_5x4x4                              0x04
1394b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_5x5x4                              0x05
1395b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_5x5x5                              0x06
1396b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_6x5x5                              0x07
1397b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_6x6x5                              0x08
1398b8e80941Smrg#define     V_008F14_IMG_ASTC_3D_6x6x6                              0x09
1399b8e80941Smrg#define   S_008F14_NV(x)                                              (((unsigned)(x) & 0x1) << 30)
1400b8e80941Smrg#define   G_008F14_NV(x)                                              (((x) >> 30) & 0x1)
1401b8e80941Smrg#define   C_008F14_NV                                                 0xBFFFFFFF
1402b8e80941Smrg#define   S_008F14_META_DIRECT(x)                                     (((unsigned)(x) & 0x1) << 31)
1403b8e80941Smrg#define   G_008F14_META_DIRECT(x)                                     (((x) >> 31) & 0x1)
1404b8e80941Smrg#define   C_008F14_META_DIRECT                                        0x7FFFFFFF
1405b8e80941Smrg#define R_030F18_DB_OCCLUSION_COUNT3_LOW                                0x030F18
1406b8e80941Smrg#define R_008F18_SQ_IMG_RSRC_WORD2                                      0x008F18
1407b8e80941Smrg#define   S_008F18_WIDTH(x)                                           (((unsigned)(x) & 0x3FFF) << 0)
1408b8e80941Smrg#define   G_008F18_WIDTH(x)                                           (((x) >> 0) & 0x3FFF)
1409b8e80941Smrg#define   C_008F18_WIDTH                                              0xFFFFC000
1410b8e80941Smrg#define   S_008F18_HEIGHT(x)                                          (((unsigned)(x) & 0x3FFF) << 14)
1411b8e80941Smrg#define   G_008F18_HEIGHT(x)                                          (((x) >> 14) & 0x3FFF)
1412b8e80941Smrg#define   C_008F18_HEIGHT                                             0xF0003FFF
1413b8e80941Smrg#define   S_008F18_PERF_MOD(x)                                        (((unsigned)(x) & 0x07) << 28)
1414b8e80941Smrg#define   G_008F18_PERF_MOD(x)                                        (((x) >> 28) & 0x07)
1415b8e80941Smrg#define   C_008F18_PERF_MOD                                           0x8FFFFFFF
1416b8e80941Smrg#define R_030F1C_DB_OCCLUSION_COUNT3_HI                                 0x030F1C
1417b8e80941Smrg#define   S_030F1C_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
1418b8e80941Smrg#define   G_030F1C_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
1419b8e80941Smrg#define   C_030F1C_COUNT_HI                                           0x80000000
1420b8e80941Smrg#define R_008F1C_SQ_IMG_RSRC_WORD3                                      0x008F1C
1421b8e80941Smrg#define   S_008F1C_DST_SEL_X(x)                                       (((unsigned)(x) & 0x07) << 0)
1422b8e80941Smrg#define   G_008F1C_DST_SEL_X(x)                                       (((x) >> 0) & 0x07)
1423b8e80941Smrg#define   C_008F1C_DST_SEL_X                                          0xFFFFFFF8
1424b8e80941Smrg#define   S_008F1C_DST_SEL_Y(x)                                       (((unsigned)(x) & 0x07) << 3)
1425b8e80941Smrg#define   G_008F1C_DST_SEL_Y(x)                                       (((x) >> 3) & 0x07)
1426b8e80941Smrg#define   C_008F1C_DST_SEL_Y                                          0xFFFFFFC7
1427b8e80941Smrg#define   S_008F1C_DST_SEL_Z(x)                                       (((unsigned)(x) & 0x07) << 6)
1428b8e80941Smrg#define   G_008F1C_DST_SEL_Z(x)                                       (((x) >> 6) & 0x07)
1429b8e80941Smrg#define   C_008F1C_DST_SEL_Z                                          0xFFFFFE3F
1430b8e80941Smrg#define   S_008F1C_DST_SEL_W(x)                                       (((unsigned)(x) & 0x07) << 9)
1431b8e80941Smrg#define   G_008F1C_DST_SEL_W(x)                                       (((x) >> 9) & 0x07)
1432b8e80941Smrg#define   C_008F1C_DST_SEL_W                                          0xFFFFF1FF
1433b8e80941Smrg#define   S_008F1C_BASE_LEVEL(x)                                      (((unsigned)(x) & 0x0F) << 12)
1434b8e80941Smrg#define   G_008F1C_BASE_LEVEL(x)                                      (((x) >> 12) & 0x0F)
1435b8e80941Smrg#define   C_008F1C_BASE_LEVEL                                         0xFFFF0FFF
1436b8e80941Smrg#define   S_008F1C_LAST_LEVEL(x)                                      (((unsigned)(x) & 0x0F) << 16)
1437b8e80941Smrg#define   G_008F1C_LAST_LEVEL(x)                                      (((x) >> 16) & 0x0F)
1438b8e80941Smrg#define   C_008F1C_LAST_LEVEL                                         0xFFF0FFFF
1439b8e80941Smrg#define   S_008F1C_SW_MODE(x)                                         (((unsigned)(x) & 0x1F) << 20)
1440b8e80941Smrg#define   G_008F1C_SW_MODE(x)                                         (((x) >> 20) & 0x1F)
1441b8e80941Smrg#define   C_008F1C_SW_MODE                                            0xFE0FFFFF
1442b8e80941Smrg#define   S_008F1C_TYPE(x)                                            (((unsigned)(x) & 0x0F) << 28)
1443b8e80941Smrg#define   G_008F1C_TYPE(x)                                            (((x) >> 28) & 0x0F)
1444b8e80941Smrg#define   C_008F1C_TYPE                                               0x0FFFFFFF
1445b8e80941Smrg#define R_008F20_SQ_IMG_RSRC_WORD4                                      0x008F20
1446b8e80941Smrg#define   S_008F20_DEPTH(x)                                           (((unsigned)(x) & 0x1FFF) << 0)
1447b8e80941Smrg#define   G_008F20_DEPTH(x)                                           (((x) >> 0) & 0x1FFF)
1448b8e80941Smrg#define   C_008F20_DEPTH                                              0xFFFFE000
1449b8e80941Smrg#define   S_008F20_PITCH_GFX9(x)                                      (((unsigned)(x) & 0xFFFF) << 13)
1450b8e80941Smrg#define   G_008F20_PITCH_GFX9(x)                                      (((x) >> 13) & 0xFFFF)
1451b8e80941Smrg#define   C_008F20_PITCH_GFX9                                         0xE0001FFF
1452b8e80941Smrg#define   S_008F20_BC_SWIZZLE(x)                                      (((unsigned)(x) & 0x07) << 29)
1453b8e80941Smrg#define   G_008F20_BC_SWIZZLE(x)                                      (((x) >> 29) & 0x07)
1454b8e80941Smrg#define   C_008F20_BC_SWIZZLE                                         0x1FFFFFFF
1455b8e80941Smrg#define     V_008F20_BC_SWIZZLE_XYZW					0
1456b8e80941Smrg#define     V_008F20_BC_SWIZZLE_XWYZ					1
1457b8e80941Smrg#define     V_008F20_BC_SWIZZLE_WZYX					2
1458b8e80941Smrg#define     V_008F20_BC_SWIZZLE_WXYZ					3
1459b8e80941Smrg#define     V_008F20_BC_SWIZZLE_ZYXW					4
1460b8e80941Smrg#define     V_008F20_BC_SWIZZLE_YXWZ					5
1461b8e80941Smrg#define R_008F24_SQ_IMG_RSRC_WORD5                                      0x008F24
1462b8e80941Smrg#define   S_008F24_BASE_ARRAY(x)                                      (((unsigned)(x) & 0x1FFF) << 0)
1463b8e80941Smrg#define   G_008F24_BASE_ARRAY(x)                                      (((x) >> 0) & 0x1FFF)
1464b8e80941Smrg#define   C_008F24_BASE_ARRAY                                         0xFFFFE000
1465b8e80941Smrg#define   S_008F24_ARRAY_PITCH(x)                                     (((unsigned)(x) & 0x0F) << 13)
1466b8e80941Smrg#define   G_008F24_ARRAY_PITCH(x)                                     (((x) >> 13) & 0x0F)
1467b8e80941Smrg#define   C_008F24_ARRAY_PITCH                                        0xFFFE1FFF
1468b8e80941Smrg#define   S_008F24_META_DATA_ADDRESS(x)                               (((unsigned)(x) & 0xFF) << 17)
1469b8e80941Smrg#define   G_008F24_META_DATA_ADDRESS(x)                               (((x) >> 17) & 0xFF)
1470b8e80941Smrg#define   C_008F24_META_DATA_ADDRESS                                  0xFE01FFFF
1471b8e80941Smrg#define   S_008F24_META_LINEAR(x)                                     (((unsigned)(x) & 0x1) << 25)
1472b8e80941Smrg#define   G_008F24_META_LINEAR(x)                                     (((x) >> 25) & 0x1)
1473b8e80941Smrg#define   C_008F24_META_LINEAR                                        0xFDFFFFFF
1474b8e80941Smrg#define   S_008F24_META_PIPE_ALIGNED(x)                               (((unsigned)(x) & 0x1) << 26)
1475b8e80941Smrg#define   G_008F24_META_PIPE_ALIGNED(x)                               (((x) >> 26) & 0x1)
1476b8e80941Smrg#define   C_008F24_META_PIPE_ALIGNED                                  0xFBFFFFFF
1477b8e80941Smrg#define   S_008F24_META_RB_ALIGNED(x)                                 (((unsigned)(x) & 0x1) << 27)
1478b8e80941Smrg#define   G_008F24_META_RB_ALIGNED(x)                                 (((x) >> 27) & 0x1)
1479b8e80941Smrg#define   C_008F24_META_RB_ALIGNED                                    0xF7FFFFFF
1480b8e80941Smrg#define   S_008F24_MAX_MIP(x)                                         (((unsigned)(x) & 0x0F) << 28)
1481b8e80941Smrg#define   G_008F24_MAX_MIP(x)                                         (((x) >> 28) & 0x0F)
1482b8e80941Smrg#define   C_008F24_MAX_MIP                                            0x0FFFFFFF
1483b8e80941Smrg#define R_008F28_SQ_IMG_RSRC_WORD6                                      0x008F28
1484b8e80941Smrg#define   S_008F28_MIN_LOD_WARN(x)                                    (((unsigned)(x) & 0xFFF) << 0)
1485b8e80941Smrg#define   G_008F28_MIN_LOD_WARN(x)                                    (((x) >> 0) & 0xFFF)
1486b8e80941Smrg#define   C_008F28_MIN_LOD_WARN                                       0xFFFFF000
1487b8e80941Smrg#define   S_008F28_COUNTER_BANK_ID(x)                                 (((unsigned)(x) & 0xFF) << 12)
1488b8e80941Smrg#define   G_008F28_COUNTER_BANK_ID(x)                                 (((x) >> 12) & 0xFF)
1489b8e80941Smrg#define   C_008F28_COUNTER_BANK_ID                                    0xFFF00FFF
1490b8e80941Smrg#define   S_008F28_LOD_HDW_CNT_EN(x)                                  (((unsigned)(x) & 0x1) << 20)
1491b8e80941Smrg#define   G_008F28_LOD_HDW_CNT_EN(x)                                  (((x) >> 20) & 0x1)
1492b8e80941Smrg#define   C_008F28_LOD_HDW_CNT_EN                                     0xFFEFFFFF
1493b8e80941Smrg#define   S_008F28_COMPRESSION_EN(x)                                  (((unsigned)(x) & 0x1) << 21)
1494b8e80941Smrg#define   G_008F28_COMPRESSION_EN(x)                                  (((x) >> 21) & 0x1)
1495b8e80941Smrg#define   C_008F28_COMPRESSION_EN                                     0xFFDFFFFF
1496b8e80941Smrg#define   S_008F28_ALPHA_IS_ON_MSB(x)                                 (((unsigned)(x) & 0x1) << 22)
1497b8e80941Smrg#define   G_008F28_ALPHA_IS_ON_MSB(x)                                 (((x) >> 22) & 0x1)
1498b8e80941Smrg#define   C_008F28_ALPHA_IS_ON_MSB                                    0xFFBFFFFF
1499b8e80941Smrg#define   S_008F28_COLOR_TRANSFORM(x)                                 (((unsigned)(x) & 0x1) << 23)
1500b8e80941Smrg#define   G_008F28_COLOR_TRANSFORM(x)                                 (((x) >> 23) & 0x1)
1501b8e80941Smrg#define   C_008F28_COLOR_TRANSFORM                                    0xFF7FFFFF
1502b8e80941Smrg#define   S_008F28_LOST_ALPHA_BITS(x)                                 (((unsigned)(x) & 0x0F) << 24)
1503b8e80941Smrg#define   G_008F28_LOST_ALPHA_BITS(x)                                 (((x) >> 24) & 0x0F)
1504b8e80941Smrg#define   C_008F28_LOST_ALPHA_BITS                                    0xF0FFFFFF
1505b8e80941Smrg#define   S_008F28_LOST_COLOR_BITS(x)                                 (((unsigned)(x) & 0x0F) << 28)
1506b8e80941Smrg#define   G_008F28_LOST_COLOR_BITS(x)                                 (((x) >> 28) & 0x0F)
1507b8e80941Smrg#define   C_008F28_LOST_COLOR_BITS                                    0x0FFFFFFF
1508b8e80941Smrg#define R_008F2C_SQ_IMG_RSRC_WORD7                                      0x008F2C
1509b8e80941Smrg#define R_008F30_SQ_IMG_SAMP_WORD0                                      0x008F30
1510b8e80941Smrg#define   S_008F30_CLAMP_X(x)                                         (((unsigned)(x) & 0x07) << 0)
1511b8e80941Smrg#define   G_008F30_CLAMP_X(x)                                         (((x) >> 0) & 0x07)
1512b8e80941Smrg#define   C_008F30_CLAMP_X                                            0xFFFFFFF8
1513b8e80941Smrg#define   S_008F30_CLAMP_Y(x)                                         (((unsigned)(x) & 0x07) << 3)
1514b8e80941Smrg#define   G_008F30_CLAMP_Y(x)                                         (((x) >> 3) & 0x07)
1515b8e80941Smrg#define   C_008F30_CLAMP_Y                                            0xFFFFFFC7
1516b8e80941Smrg#define   S_008F30_CLAMP_Z(x)                                         (((unsigned)(x) & 0x07) << 6)
1517b8e80941Smrg#define   G_008F30_CLAMP_Z(x)                                         (((x) >> 6) & 0x07)
1518b8e80941Smrg#define   C_008F30_CLAMP_Z                                            0xFFFFFE3F
1519b8e80941Smrg#define   S_008F30_MAX_ANISO_RATIO(x)                                 (((unsigned)(x) & 0x07) << 9)
1520b8e80941Smrg#define   G_008F30_MAX_ANISO_RATIO(x)                                 (((x) >> 9) & 0x07)
1521b8e80941Smrg#define   C_008F30_MAX_ANISO_RATIO                                    0xFFFFF1FF
1522b8e80941Smrg#define   S_008F30_DEPTH_COMPARE_FUNC(x)                              (((unsigned)(x) & 0x07) << 12)
1523b8e80941Smrg#define   G_008F30_DEPTH_COMPARE_FUNC(x)                              (((x) >> 12) & 0x07)
1524b8e80941Smrg#define   C_008F30_DEPTH_COMPARE_FUNC                                 0xFFFF8FFF
1525b8e80941Smrg#define   S_008F30_FORCE_UNNORMALIZED(x)                              (((unsigned)(x) & 0x1) << 15)
1526b8e80941Smrg#define   G_008F30_FORCE_UNNORMALIZED(x)                              (((x) >> 15) & 0x1)
1527b8e80941Smrg#define   C_008F30_FORCE_UNNORMALIZED                                 0xFFFF7FFF
1528b8e80941Smrg#define   S_008F30_ANISO_THRESHOLD(x)                                 (((unsigned)(x) & 0x07) << 16)
1529b8e80941Smrg#define   G_008F30_ANISO_THRESHOLD(x)                                 (((x) >> 16) & 0x07)
1530b8e80941Smrg#define   C_008F30_ANISO_THRESHOLD                                    0xFFF8FFFF
1531b8e80941Smrg#define   S_008F30_MC_COORD_TRUNC(x)                                  (((unsigned)(x) & 0x1) << 19)
1532b8e80941Smrg#define   G_008F30_MC_COORD_TRUNC(x)                                  (((x) >> 19) & 0x1)
1533b8e80941Smrg#define   C_008F30_MC_COORD_TRUNC                                     0xFFF7FFFF
1534b8e80941Smrg#define   S_008F30_FORCE_DEGAMMA(x)                                   (((unsigned)(x) & 0x1) << 20)
1535b8e80941Smrg#define   G_008F30_FORCE_DEGAMMA(x)                                   (((x) >> 20) & 0x1)
1536b8e80941Smrg#define   C_008F30_FORCE_DEGAMMA                                      0xFFEFFFFF
1537b8e80941Smrg#define   S_008F30_ANISO_BIAS(x)                                      (((unsigned)(x) & 0x3F) << 21)
1538b8e80941Smrg#define   G_008F30_ANISO_BIAS(x)                                      (((x) >> 21) & 0x3F)
1539b8e80941Smrg#define   C_008F30_ANISO_BIAS                                         0xF81FFFFF
1540b8e80941Smrg#define   S_008F30_TRUNC_COORD(x)                                     (((unsigned)(x) & 0x1) << 27)
1541b8e80941Smrg#define   G_008F30_TRUNC_COORD(x)                                     (((x) >> 27) & 0x1)
1542b8e80941Smrg#define   C_008F30_TRUNC_COORD                                        0xF7FFFFFF
1543b8e80941Smrg#define   S_008F30_DISABLE_CUBE_WRAP(x)                               (((unsigned)(x) & 0x1) << 28)
1544b8e80941Smrg#define   G_008F30_DISABLE_CUBE_WRAP(x)                               (((x) >> 28) & 0x1)
1545b8e80941Smrg#define   C_008F30_DISABLE_CUBE_WRAP                                  0xEFFFFFFF
1546b8e80941Smrg#define   S_008F30_FILTER_MODE(x)                                     (((unsigned)(x) & 0x03) << 29)
1547b8e80941Smrg#define   G_008F30_FILTER_MODE(x)                                     (((x) >> 29) & 0x03)
1548b8e80941Smrg#define   C_008F30_FILTER_MODE                                        0x9FFFFFFF
1549b8e80941Smrg#define   S_008F30_COMPAT_MODE(x)                                     (((unsigned)(x) & 0x1) << 31)
1550b8e80941Smrg#define   G_008F30_COMPAT_MODE(x)                                     (((x) >> 31) & 0x1)
1551b8e80941Smrg#define   C_008F30_COMPAT_MODE                                        0x7FFFFFFF
1552b8e80941Smrg#define R_008F34_SQ_IMG_SAMP_WORD1                                      0x008F34
1553b8e80941Smrg#define   S_008F34_MIN_LOD(x)                                         (((unsigned)(x) & 0xFFF) << 0)
1554b8e80941Smrg#define   G_008F34_MIN_LOD(x)                                         (((x) >> 0) & 0xFFF)
1555b8e80941Smrg#define   C_008F34_MIN_LOD                                            0xFFFFF000
1556b8e80941Smrg#define   S_008F34_MAX_LOD(x)                                         (((unsigned)(x) & 0xFFF) << 12)
1557b8e80941Smrg#define   G_008F34_MAX_LOD(x)                                         (((x) >> 12) & 0xFFF)
1558b8e80941Smrg#define   C_008F34_MAX_LOD                                            0xFF000FFF
1559b8e80941Smrg#define   S_008F34_PERF_MIP(x)                                        (((unsigned)(x) & 0x0F) << 24)
1560b8e80941Smrg#define   G_008F34_PERF_MIP(x)                                        (((x) >> 24) & 0x0F)
1561b8e80941Smrg#define   C_008F34_PERF_MIP                                           0xF0FFFFFF
1562b8e80941Smrg#define   S_008F34_PERF_Z(x)                                          (((unsigned)(x) & 0x0F) << 28)
1563b8e80941Smrg#define   G_008F34_PERF_Z(x)                                          (((x) >> 28) & 0x0F)
1564b8e80941Smrg#define   C_008F34_PERF_Z                                             0x0FFFFFFF
1565b8e80941Smrg#define R_008F38_SQ_IMG_SAMP_WORD2                                      0x008F38
1566b8e80941Smrg#define   S_008F38_LOD_BIAS(x)                                        (((unsigned)(x) & 0x3FFF) << 0)
1567b8e80941Smrg#define   G_008F38_LOD_BIAS(x)                                        (((x) >> 0) & 0x3FFF)
1568b8e80941Smrg#define   C_008F38_LOD_BIAS                                           0xFFFFC000
1569b8e80941Smrg#define   S_008F38_LOD_BIAS_SEC(x)                                    (((unsigned)(x) & 0x3F) << 14)
1570b8e80941Smrg#define   G_008F38_LOD_BIAS_SEC(x)                                    (((x) >> 14) & 0x3F)
1571b8e80941Smrg#define   C_008F38_LOD_BIAS_SEC                                       0xFFF03FFF
1572b8e80941Smrg#define   S_008F38_XY_MAG_FILTER(x)                                   (((unsigned)(x) & 0x03) << 20)
1573b8e80941Smrg#define   G_008F38_XY_MAG_FILTER(x)                                   (((x) >> 20) & 0x03)
1574b8e80941Smrg#define   C_008F38_XY_MAG_FILTER                                      0xFFCFFFFF
1575b8e80941Smrg#define   S_008F38_XY_MIN_FILTER(x)                                   (((unsigned)(x) & 0x03) << 22)
1576b8e80941Smrg#define   G_008F38_XY_MIN_FILTER(x)                                   (((x) >> 22) & 0x03)
1577b8e80941Smrg#define   C_008F38_XY_MIN_FILTER                                      0xFF3FFFFF
1578b8e80941Smrg#define   S_008F38_Z_FILTER(x)                                        (((unsigned)(x) & 0x03) << 24)
1579b8e80941Smrg#define   G_008F38_Z_FILTER(x)                                        (((x) >> 24) & 0x03)
1580b8e80941Smrg#define   C_008F38_Z_FILTER                                           0xFCFFFFFF
1581b8e80941Smrg#define   S_008F38_MIP_FILTER(x)                                      (((unsigned)(x) & 0x03) << 26)
1582b8e80941Smrg#define   G_008F38_MIP_FILTER(x)                                      (((x) >> 26) & 0x03)
1583b8e80941Smrg#define   C_008F38_MIP_FILTER                                         0xF3FFFFFF
1584b8e80941Smrg#define   S_008F38_MIP_POINT_PRECLAMP(x)                              (((unsigned)(x) & 0x1) << 28)
1585b8e80941Smrg#define   G_008F38_MIP_POINT_PRECLAMP(x)                              (((x) >> 28) & 0x1)
1586b8e80941Smrg#define   C_008F38_MIP_POINT_PRECLAMP                                 0xEFFFFFFF
1587b8e80941Smrg#define   S_008F38_BLEND_ZERO_PRT(x)                                  (((unsigned)(x) & 0x1) << 29)
1588b8e80941Smrg#define   G_008F38_BLEND_ZERO_PRT(x)                                  (((x) >> 29) & 0x1)
1589b8e80941Smrg#define   C_008F38_BLEND_ZERO_PRT                                     0xDFFFFFFF
1590b8e80941Smrg#define   S_008F38_FILTER_PREC_FIX(x)                                 (((unsigned)(x) & 0x1) << 30)
1591b8e80941Smrg#define   G_008F38_FILTER_PREC_FIX(x)                                 (((x) >> 30) & 0x1)
1592b8e80941Smrg#define   C_008F38_FILTER_PREC_FIX                                    0xBFFFFFFF
1593b8e80941Smrg#define   S_008F38_ANISO_OVERRIDE(x)                                  (((unsigned)(x) & 0x1) << 31)
1594b8e80941Smrg#define   G_008F38_ANISO_OVERRIDE(x)                                  (((x) >> 31) & 0x1)
1595b8e80941Smrg#define   C_008F38_ANISO_OVERRIDE                                     0x7FFFFFFF
1596b8e80941Smrg#define R_008F3C_SQ_IMG_SAMP_WORD3                                      0x008F3C
1597b8e80941Smrg#define   S_008F3C_BORDER_COLOR_PTR(x)                                (((unsigned)(x) & 0xFFF) << 0)
1598b8e80941Smrg#define   G_008F3C_BORDER_COLOR_PTR(x)                                (((x) >> 0) & 0xFFF)
1599b8e80941Smrg#define   C_008F3C_BORDER_COLOR_PTR                                   0xFFFFF000
1600b8e80941Smrg#define   S_008F3C_SKIP_DEGAMMA(x)                                    (((unsigned)(x) & 0x1) << 12)
1601b8e80941Smrg#define   G_008F3C_SKIP_DEGAMMA(x)                                    (((x) >> 12) & 0x1)
1602b8e80941Smrg#define   C_008F3C_SKIP_DEGAMMA                                       0xFFFFEFFF
1603b8e80941Smrg#define   S_008F3C_BORDER_COLOR_TYPE(x)                               (((unsigned)(x) & 0x03) << 30)
1604b8e80941Smrg#define   G_008F3C_BORDER_COLOR_TYPE(x)                               (((x) >> 30) & 0x03)
1605b8e80941Smrg#define   C_008F3C_BORDER_COLOR_TYPE                                  0x3FFFFFFF
1606b8e80941Smrg#define R_030FF8_DB_ZPASS_COUNT_LOW                                     0x030FF8
1607b8e80941Smrg#define R_030FFC_DB_ZPASS_COUNT_HI                                      0x030FFC
1608b8e80941Smrg#define   S_030FFC_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
1609b8e80941Smrg#define   G_030FFC_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
1610b8e80941Smrg#define   C_030FFC_COUNT_HI                                           0x80000000
1611b8e80941Smrg#define R_031100_SPI_CONFIG_CNTL                                        0x031100
1612b8e80941Smrg#define   S_031100_GPR_WRITE_PRIORITY(x)                              (((unsigned)(x) & 0x1FFFFF) << 0)
1613b8e80941Smrg#define   G_031100_GPR_WRITE_PRIORITY(x)                              (((x) >> 0) & 0x1FFFFF)
1614b8e80941Smrg#define   C_031100_GPR_WRITE_PRIORITY                                 0xFFE00000
1615b8e80941Smrg#define   S_031100_EXP_PRIORITY_ORDER(x)                              (((unsigned)(x) & 0x07) << 21)
1616b8e80941Smrg#define   G_031100_EXP_PRIORITY_ORDER(x)                              (((x) >> 21) & 0x07)
1617b8e80941Smrg#define   C_031100_EXP_PRIORITY_ORDER                                 0xFF1FFFFF
1618b8e80941Smrg#define   S_031100_ENABLE_SQG_TOP_EVENTS(x)                           (((unsigned)(x) & 0x1) << 24)
1619b8e80941Smrg#define   G_031100_ENABLE_SQG_TOP_EVENTS(x)                           (((x) >> 24) & 0x1)
1620b8e80941Smrg#define   C_031100_ENABLE_SQG_TOP_EVENTS                              0xFEFFFFFF
1621b8e80941Smrg#define   S_031100_ENABLE_SQG_BOP_EVENTS(x)                           (((unsigned)(x) & 0x1) << 25)
1622b8e80941Smrg#define   G_031100_ENABLE_SQG_BOP_EVENTS(x)                           (((x) >> 25) & 0x1)
1623b8e80941Smrg#define   C_031100_ENABLE_SQG_BOP_EVENTS                              0xFDFFFFFF
1624b8e80941Smrg#define   S_031100_RSRC_MGMT_RESET(x)                                 (((unsigned)(x) & 0x1) << 26)
1625b8e80941Smrg#define   G_031100_RSRC_MGMT_RESET(x)                                 (((x) >> 26) & 0x1)
1626b8e80941Smrg#define   C_031100_RSRC_MGMT_RESET                                    0xFBFFFFFF
1627b8e80941Smrg#define   S_031100_TTRACE_STALL_ALL(x)                                (((unsigned)(x) & 0x1) << 27)
1628b8e80941Smrg#define   G_031100_TTRACE_STALL_ALL(x)                                (((x) >> 27) & 0x1)
1629b8e80941Smrg#define   C_031100_TTRACE_STALL_ALL                                   0xF7FFFFFF
1630b8e80941Smrg#define   S_031100_ALLOC_ARB_LRU_ENA(x)                               (((unsigned)(x) & 0x1) << 28)
1631b8e80941Smrg#define   G_031100_ALLOC_ARB_LRU_ENA(x)                               (((x) >> 28) & 0x1)
1632b8e80941Smrg#define   C_031100_ALLOC_ARB_LRU_ENA                                  0xEFFFFFFF
1633b8e80941Smrg#define   S_031100_EXP_ARB_LRU_ENA(x)                                 (((unsigned)(x) & 0x1) << 29)
1634b8e80941Smrg#define   G_031100_EXP_ARB_LRU_ENA(x)                                 (((x) >> 29) & 0x1)
1635b8e80941Smrg#define   C_031100_EXP_ARB_LRU_ENA                                    0xDFFFFFFF
1636b8e80941Smrg#define   S_031100_PS_PKR_PRIORITY_CNTL(x)                            (((unsigned)(x) & 0x03) << 30)
1637b8e80941Smrg#define   G_031100_PS_PKR_PRIORITY_CNTL(x)                            (((x) >> 30) & 0x03)
1638b8e80941Smrg#define   C_031100_PS_PKR_PRIORITY_CNTL                               0x3FFFFFFF
1639b8e80941Smrg#define R_031104_SPI_CONFIG_CNTL_1                                      0x031104
1640b8e80941Smrg#define   S_031104_VTX_DONE_DELAY(x)                                  (((unsigned)(x) & 0x0F) << 0)
1641b8e80941Smrg#define   G_031104_VTX_DONE_DELAY(x)                                  (((x) >> 0) & 0x0F)
1642b8e80941Smrg#define   C_031104_VTX_DONE_DELAY                                     0xFFFFFFF0
1643b8e80941Smrg#define   S_031104_INTERP_ONE_PRIM_PER_ROW(x)                         (((unsigned)(x) & 0x1) << 4)
1644b8e80941Smrg#define   G_031104_INTERP_ONE_PRIM_PER_ROW(x)                         (((x) >> 4) & 0x1)
1645b8e80941Smrg#define   C_031104_INTERP_ONE_PRIM_PER_ROW                            0xFFFFFFEF
1646b8e80941Smrg#define   S_031104_BATON_RESET_DISABLE(x)                             (((unsigned)(x) & 0x1) << 5)
1647b8e80941Smrg#define   G_031104_BATON_RESET_DISABLE(x)                             (((x) >> 5) & 0x1)
1648b8e80941Smrg#define   C_031104_BATON_RESET_DISABLE                                0xFFFFFFDF
1649b8e80941Smrg#define   S_031104_PC_LIMIT_ENABLE(x)                                 (((unsigned)(x) & 0x1) << 6)
1650b8e80941Smrg#define   G_031104_PC_LIMIT_ENABLE(x)                                 (((x) >> 6) & 0x1)
1651b8e80941Smrg#define   C_031104_PC_LIMIT_ENABLE                                    0xFFFFFFBF
1652b8e80941Smrg#define   S_031104_PC_LIMIT_STRICT(x)                                 (((unsigned)(x) & 0x1) << 7)
1653b8e80941Smrg#define   G_031104_PC_LIMIT_STRICT(x)                                 (((x) >> 7) & 0x1)
1654b8e80941Smrg#define   C_031104_PC_LIMIT_STRICT                                    0xFFFFFF7F
1655b8e80941Smrg#define   S_031104_CRC_SIMD_ID_WADDR_DISABLE(x)                       (((unsigned)(x) & 0x1) << 8)
1656b8e80941Smrg#define   G_031104_CRC_SIMD_ID_WADDR_DISABLE(x)                       (((x) >> 8) & 0x1)
1657b8e80941Smrg#define   C_031104_CRC_SIMD_ID_WADDR_DISABLE                          0xFFFFFEFF
1658b8e80941Smrg#define   S_031104_LBPW_CU_CHK_MODE(x)                                (((unsigned)(x) & 0x1) << 9)
1659b8e80941Smrg#define   G_031104_LBPW_CU_CHK_MODE(x)                                (((x) >> 9) & 0x1)
1660b8e80941Smrg#define   C_031104_LBPW_CU_CHK_MODE                                   0xFFFFFDFF
1661b8e80941Smrg#define   S_031104_LBPW_CU_CHK_CNT(x)                                 (((unsigned)(x) & 0x0F) << 10)
1662b8e80941Smrg#define   G_031104_LBPW_CU_CHK_CNT(x)                                 (((x) >> 10) & 0x0F)
1663b8e80941Smrg#define   C_031104_LBPW_CU_CHK_CNT                                    0xFFFFC3FF
1664b8e80941Smrg#define   S_031104_CSC_PWR_SAVE_DISABLE(x)                            (((unsigned)(x) & 0x1) << 14)
1665b8e80941Smrg#define   G_031104_CSC_PWR_SAVE_DISABLE(x)                            (((x) >> 14) & 0x1)
1666b8e80941Smrg#define   C_031104_CSC_PWR_SAVE_DISABLE                               0xFFFFBFFF
1667b8e80941Smrg#define   S_031104_CSG_PWR_SAVE_DISABLE(x)                            (((unsigned)(x) & 0x1) << 15)
1668b8e80941Smrg#define   G_031104_CSG_PWR_SAVE_DISABLE(x)                            (((x) >> 15) & 0x1)
1669b8e80941Smrg#define   C_031104_CSG_PWR_SAVE_DISABLE                               0xFFFF7FFF
1670b8e80941Smrg#define   S_031104_PC_LIMIT_SIZE(x)                                   (((unsigned)(x) & 0xFFFF) << 16)
1671b8e80941Smrg#define   G_031104_PC_LIMIT_SIZE(x)                                   (((x) >> 16) & 0xFFFF)
1672b8e80941Smrg#define   C_031104_PC_LIMIT_SIZE                                      0x0000FFFF
1673b8e80941Smrg#define R_031108_SPI_CONFIG_CNTL_2                                      0x031108
1674b8e80941Smrg#define   S_031108_CONTEXT_SAVE_WAIT_GDS_REQUEST_CYCLE_OVHD(x)        (((unsigned)(x) & 0x0F) << 0)
1675b8e80941Smrg#define   G_031108_CONTEXT_SAVE_WAIT_GDS_REQUEST_CYCLE_OVHD(x)        (((x) >> 0) & 0x0F)
1676b8e80941Smrg#define   C_031108_CONTEXT_SAVE_WAIT_GDS_REQUEST_CYCLE_OVHD           0xFFFFFFF0
1677b8e80941Smrg#define   S_031108_CONTEXT_SAVE_WAIT_GDS_GRANT_CYCLE_OVHD(x)          (((unsigned)(x) & 0x0F) << 4)
1678b8e80941Smrg#define   G_031108_CONTEXT_SAVE_WAIT_GDS_GRANT_CYCLE_OVHD(x)          (((x) >> 4) & 0x0F)
1679b8e80941Smrg#define   C_031108_CONTEXT_SAVE_WAIT_GDS_GRANT_CYCLE_OVHD             0xFFFFFF0F
1680b8e80941Smrg#define R_0098F8_GB_ADDR_CONFIG                                         0x0098F8
1681b8e80941Smrg#define   S_0098F8_NUM_PIPES(x)                                       (((unsigned)(x) & 0x07) << 0)
1682b8e80941Smrg#define   G_0098F8_NUM_PIPES(x)                                       (((x) >> 0) & 0x07)
1683b8e80941Smrg#define   C_0098F8_NUM_PIPES                                          0xFFFFFFF8
1684b8e80941Smrg#define   S_0098F8_PIPE_INTERLEAVE_SIZE_GFX9(x)                       (((unsigned)(x) & 0x07) << 3)
1685b8e80941Smrg#define   G_0098F8_PIPE_INTERLEAVE_SIZE_GFX9(x)                       (((x) >> 3) & 0x07)
1686b8e80941Smrg#define   C_0098F8_PIPE_INTERLEAVE_SIZE_GFX9                          0xFFFFFFC7
1687b8e80941Smrg#define   S_0098F8_MAX_COMPRESSED_FRAGS(x)                            (((unsigned)(x) & 0x03) << 6)
1688b8e80941Smrg#define   G_0098F8_MAX_COMPRESSED_FRAGS(x)                            (((x) >> 6) & 0x03)
1689b8e80941Smrg#define   C_0098F8_MAX_COMPRESSED_FRAGS                               0xFFFFFF3F
1690b8e80941Smrg#define   S_0098F8_BANK_INTERLEAVE_SIZE(x)                            (((unsigned)(x) & 0x07) << 8)
1691b8e80941Smrg#define   G_0098F8_BANK_INTERLEAVE_SIZE(x)                            (((x) >> 8) & 0x07)
1692b8e80941Smrg#define   C_0098F8_BANK_INTERLEAVE_SIZE                               0xFFFFF8FF
1693b8e80941Smrg#define   S_0098F8_NUM_BANKS(x)                                       (((unsigned)(x) & 0x07) << 12)
1694b8e80941Smrg#define   G_0098F8_NUM_BANKS(x)                                       (((x) >> 12) & 0x07)
1695b8e80941Smrg#define   C_0098F8_NUM_BANKS                                          0xFFFF8FFF
1696b8e80941Smrg#define   S_0098F8_SHADER_ENGINE_TILE_SIZE(x)                         (((unsigned)(x) & 0x07) << 16)
1697b8e80941Smrg#define   G_0098F8_SHADER_ENGINE_TILE_SIZE(x)                         (((x) >> 16) & 0x07)
1698b8e80941Smrg#define   C_0098F8_SHADER_ENGINE_TILE_SIZE                            0xFFF8FFFF
1699b8e80941Smrg#define   S_0098F8_NUM_SHADER_ENGINES_GFX9(x)                         (((unsigned)(x) & 0x03) << 19)
1700b8e80941Smrg#define   G_0098F8_NUM_SHADER_ENGINES_GFX9(x)                         (((x) >> 19) & 0x03)
1701b8e80941Smrg#define   C_0098F8_NUM_SHADER_ENGINES_GFX9                            0xFFE7FFFF
1702b8e80941Smrg#define   S_0098F8_NUM_GPUS_GFX9(x)                                   (((unsigned)(x) & 0x07) << 21)
1703b8e80941Smrg#define   G_0098F8_NUM_GPUS_GFX9(x)                                   (((x) >> 21) & 0x07)
1704b8e80941Smrg#define   C_0098F8_NUM_GPUS_GFX9                                      0xFF1FFFFF
1705b8e80941Smrg#define   S_0098F8_MULTI_GPU_TILE_SIZE(x)                             (((unsigned)(x) & 0x03) << 24)
1706b8e80941Smrg#define   G_0098F8_MULTI_GPU_TILE_SIZE(x)                             (((x) >> 24) & 0x03)
1707b8e80941Smrg#define   C_0098F8_MULTI_GPU_TILE_SIZE                                0xFCFFFFFF
1708b8e80941Smrg#define   S_0098F8_NUM_RB_PER_SE(x)                                   (((unsigned)(x) & 0x03) << 26)
1709b8e80941Smrg#define   G_0098F8_NUM_RB_PER_SE(x)                                   (((x) >> 26) & 0x03)
1710b8e80941Smrg#define   C_0098F8_NUM_RB_PER_SE                                      0xF3FFFFFF
1711b8e80941Smrg#define   S_0098F8_ROW_SIZE(x)                                        (((unsigned)(x) & 0x03) << 28)
1712b8e80941Smrg#define   G_0098F8_ROW_SIZE(x)                                        (((x) >> 28) & 0x03)
1713b8e80941Smrg#define   C_0098F8_ROW_SIZE                                           0xCFFFFFFF
1714b8e80941Smrg#define   S_0098F8_NUM_LOWER_PIPES(x)                                 (((unsigned)(x) & 0x1) << 30)
1715b8e80941Smrg#define   G_0098F8_NUM_LOWER_PIPES(x)                                 (((x) >> 30) & 0x1)
1716b8e80941Smrg#define   C_0098F8_NUM_LOWER_PIPES                                    0xBFFFFFFF
1717b8e80941Smrg#define   S_0098F8_SE_ENABLE(x)                                       (((unsigned)(x) & 0x1) << 31)
1718b8e80941Smrg#define   G_0098F8_SE_ENABLE(x)                                       (((x) >> 31) & 0x1)
1719b8e80941Smrg#define   C_0098F8_SE_ENABLE                                          0x7FFFFFFF
1720b8e80941Smrg#define R_009910_GB_TILE_MODE0                                          0x009910
1721b8e80941Smrg#define   S_009910_ARRAY_MODE(x)                                      (((unsigned)(x) & 0x0F) << 2)
1722b8e80941Smrg#define   G_009910_ARRAY_MODE(x)                                      (((x) >> 2) & 0x0F)
1723b8e80941Smrg#define   C_009910_ARRAY_MODE                                         0xFFFFFFC3
1724b8e80941Smrg#define   S_009910_PIPE_CONFIG(x)                                     (((unsigned)(x) & 0x1F) << 6)
1725b8e80941Smrg#define   G_009910_PIPE_CONFIG(x)                                     (((x) >> 6) & 0x1F)
1726b8e80941Smrg#define   C_009910_PIPE_CONFIG                                        0xFFFFF83F
1727b8e80941Smrg#define   S_009910_TILE_SPLIT(x)                                      (((unsigned)(x) & 0x07) << 11)
1728b8e80941Smrg#define   G_009910_TILE_SPLIT(x)                                      (((x) >> 11) & 0x07)
1729b8e80941Smrg#define   C_009910_TILE_SPLIT                                         0xFFFFC7FF
1730b8e80941Smrg#define   S_009910_MICRO_TILE_MODE_NEW(x)                             (((unsigned)(x) & 0x07) << 22)
1731b8e80941Smrg#define   G_009910_MICRO_TILE_MODE_NEW(x)                             (((x) >> 22) & 0x07)
1732b8e80941Smrg#define   C_009910_MICRO_TILE_MODE_NEW                                0xFE3FFFFF
1733b8e80941Smrg#define   S_009910_SAMPLE_SPLIT(x)                                    (((unsigned)(x) & 0x03) << 25)
1734b8e80941Smrg#define   G_009910_SAMPLE_SPLIT(x)                                    (((x) >> 25) & 0x03)
1735b8e80941Smrg#define   C_009910_SAMPLE_SPLIT                                       0xF9FFFFFF
1736b8e80941Smrg#define R_009914_GB_TILE_MODE1                                          0x009914
1737b8e80941Smrg#define R_009918_GB_TILE_MODE2                                          0x009918
1738b8e80941Smrg#define R_00991C_GB_TILE_MODE3                                          0x00991C
1739b8e80941Smrg#define R_009920_GB_TILE_MODE4                                          0x009920
1740b8e80941Smrg#define R_009924_GB_TILE_MODE5                                          0x009924
1741b8e80941Smrg#define R_009928_GB_TILE_MODE6                                          0x009928
1742b8e80941Smrg#define R_00992C_GB_TILE_MODE7                                          0x00992C
1743b8e80941Smrg#define R_009930_GB_TILE_MODE8                                          0x009930
1744b8e80941Smrg#define R_009934_GB_TILE_MODE9                                          0x009934
1745b8e80941Smrg#define R_009938_GB_TILE_MODE10                                         0x009938
1746b8e80941Smrg#define R_00993C_GB_TILE_MODE11                                         0x00993C
1747b8e80941Smrg#define R_009940_GB_TILE_MODE12                                         0x009940
1748b8e80941Smrg#define R_009944_GB_TILE_MODE13                                         0x009944
1749b8e80941Smrg#define R_009948_GB_TILE_MODE14                                         0x009948
1750b8e80941Smrg#define R_00994C_GB_TILE_MODE15                                         0x00994C
1751b8e80941Smrg#define R_009950_GB_TILE_MODE16                                         0x009950
1752b8e80941Smrg#define R_009954_GB_TILE_MODE17                                         0x009954
1753b8e80941Smrg#define R_009958_GB_TILE_MODE18                                         0x009958
1754b8e80941Smrg#define R_00995C_GB_TILE_MODE19                                         0x00995C
1755b8e80941Smrg#define R_009960_GB_TILE_MODE20                                         0x009960
1756b8e80941Smrg#define R_009964_GB_TILE_MODE21                                         0x009964
1757b8e80941Smrg#define R_009968_GB_TILE_MODE22                                         0x009968
1758b8e80941Smrg#define R_00996C_GB_TILE_MODE23                                         0x00996C
1759b8e80941Smrg#define R_009970_GB_TILE_MODE24                                         0x009970
1760b8e80941Smrg#define R_009974_GB_TILE_MODE25                                         0x009974
1761b8e80941Smrg#define R_009978_GB_TILE_MODE26                                         0x009978
1762b8e80941Smrg#define R_00997C_GB_TILE_MODE27                                         0x00997C
1763b8e80941Smrg#define R_009980_GB_TILE_MODE28                                         0x009980
1764b8e80941Smrg#define R_009984_GB_TILE_MODE29                                         0x009984
1765b8e80941Smrg#define R_009988_GB_TILE_MODE30                                         0x009988
1766b8e80941Smrg#define R_00998C_GB_TILE_MODE31                                         0x00998C
1767b8e80941Smrg#define R_009990_GB_MACROTILE_MODE0                                     0x009990
1768b8e80941Smrg#define   S_009990_BANK_WIDTH(x)                                      (((unsigned)(x) & 0x03) << 0)
1769b8e80941Smrg#define   G_009990_BANK_WIDTH(x)                                      (((x) >> 0) & 0x03)
1770b8e80941Smrg#define   C_009990_BANK_WIDTH                                         0xFFFFFFFC
1771b8e80941Smrg#define   S_009990_BANK_HEIGHT(x)                                     (((unsigned)(x) & 0x03) << 2)
1772b8e80941Smrg#define   G_009990_BANK_HEIGHT(x)                                     (((x) >> 2) & 0x03)
1773b8e80941Smrg#define   C_009990_BANK_HEIGHT                                        0xFFFFFFF3
1774b8e80941Smrg#define   S_009990_MACRO_TILE_ASPECT(x)                               (((unsigned)(x) & 0x03) << 4)
1775b8e80941Smrg#define   G_009990_MACRO_TILE_ASPECT(x)                               (((x) >> 4) & 0x03)
1776b8e80941Smrg#define   C_009990_MACRO_TILE_ASPECT                                  0xFFFFFFCF
1777b8e80941Smrg#define   S_009990_NUM_BANKS(x)                                       (((unsigned)(x) & 0x03) << 6)
1778b8e80941Smrg#define   G_009990_NUM_BANKS(x)                                       (((x) >> 6) & 0x03)
1779b8e80941Smrg#define   C_009990_NUM_BANKS                                          0xFFFFFF3F
1780b8e80941Smrg#define R_009994_GB_MACROTILE_MODE1                                     0x009994
1781b8e80941Smrg#define R_009998_GB_MACROTILE_MODE2                                     0x009998
1782b8e80941Smrg#define R_00999C_GB_MACROTILE_MODE3                                     0x00999C
1783b8e80941Smrg#define R_0099A0_GB_MACROTILE_MODE4                                     0x0099A0
1784b8e80941Smrg#define R_0099A4_GB_MACROTILE_MODE5                                     0x0099A4
1785b8e80941Smrg#define R_0099A8_GB_MACROTILE_MODE6                                     0x0099A8
1786b8e80941Smrg#define R_0099AC_GB_MACROTILE_MODE7                                     0x0099AC
1787b8e80941Smrg#define R_0099B0_GB_MACROTILE_MODE8                                     0x0099B0
1788b8e80941Smrg#define R_0099B4_GB_MACROTILE_MODE9                                     0x0099B4
1789b8e80941Smrg#define R_0099B8_GB_MACROTILE_MODE10                                    0x0099B8
1790b8e80941Smrg#define R_0099BC_GB_MACROTILE_MODE11                                    0x0099BC
1791b8e80941Smrg#define R_0099C0_GB_MACROTILE_MODE12                                    0x0099C0
1792b8e80941Smrg#define R_0099C4_GB_MACROTILE_MODE13                                    0x0099C4
1793b8e80941Smrg#define R_0099C8_GB_MACROTILE_MODE14                                    0x0099C8
1794b8e80941Smrg#define R_0099CC_GB_MACROTILE_MODE15                                    0x0099CC
1795b8e80941Smrg#define R_00B01C_SPI_SHADER_PGM_RSRC3_PS                                0x00B01C
1796b8e80941Smrg#define   S_00B01C_CU_EN(x)                                           (((unsigned)(x) & 0xFFFF) << 0)
1797b8e80941Smrg#define   G_00B01C_CU_EN(x)                                           (((x) >> 0) & 0xFFFF)
1798b8e80941Smrg#define   C_00B01C_CU_EN                                              0xFFFF0000
1799b8e80941Smrg#define   S_00B01C_WAVE_LIMIT(x)                                      (((unsigned)(x) & 0x3F) << 16)
1800b8e80941Smrg#define   G_00B01C_WAVE_LIMIT(x)                                      (((x) >> 16) & 0x3F)
1801b8e80941Smrg#define   C_00B01C_WAVE_LIMIT                                         0xFFC0FFFF
1802b8e80941Smrg#define   S_00B01C_LOCK_LOW_THRESHOLD(x)                              (((unsigned)(x) & 0x0F) << 22)
1803b8e80941Smrg#define   G_00B01C_LOCK_LOW_THRESHOLD(x)                              (((x) >> 22) & 0x0F)
1804b8e80941Smrg#define   C_00B01C_LOCK_LOW_THRESHOLD                                 0xFC3FFFFF
1805b8e80941Smrg#define   S_00B01C_SIMD_DISABLE(x)                                    (((unsigned)(x) & 0x0F) << 26)
1806b8e80941Smrg#define   G_00B01C_SIMD_DISABLE(x)                                    (((x) >> 26) & 0x0F)
1807b8e80941Smrg#define   C_00B01C_SIMD_DISABLE                                       0xC3FFFFFF
1808b8e80941Smrg#define R_00B020_SPI_SHADER_PGM_LO_PS                                   0x00B020
1809b8e80941Smrg#define R_00B024_SPI_SHADER_PGM_HI_PS                                   0x00B024
1810b8e80941Smrg#define   S_00B024_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
1811b8e80941Smrg#define   G_00B024_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
1812b8e80941Smrg#define   C_00B024_MEM_BASE                                           0xFFFFFF00
1813b8e80941Smrg#define R_00B028_SPI_SHADER_PGM_RSRC1_PS                                0x00B028
1814b8e80941Smrg#define   S_00B028_VGPRS(x)                                           (((unsigned)(x) & 0x3F) << 0)
1815b8e80941Smrg#define   G_00B028_VGPRS(x)                                           (((x) >> 0) & 0x3F)
1816b8e80941Smrg#define   C_00B028_VGPRS                                              0xFFFFFFC0
1817b8e80941Smrg#define   S_00B028_SGPRS(x)                                           (((unsigned)(x) & 0x0F) << 6)
1818b8e80941Smrg#define   G_00B028_SGPRS(x)                                           (((x) >> 6) & 0x0F)
1819b8e80941Smrg#define   C_00B028_SGPRS                                              0xFFFFFC3F
1820b8e80941Smrg#define   S_00B028_PRIORITY(x)                                        (((unsigned)(x) & 0x03) << 10)
1821b8e80941Smrg#define   G_00B028_PRIORITY(x)                                        (((x) >> 10) & 0x03)
1822b8e80941Smrg#define   C_00B028_PRIORITY                                           0xFFFFF3FF
1823b8e80941Smrg#define   S_00B028_FLOAT_MODE(x)                                      (((unsigned)(x) & 0xFF) << 12)
1824b8e80941Smrg#define   G_00B028_FLOAT_MODE(x)                                      (((x) >> 12) & 0xFF)
1825b8e80941Smrg#define   C_00B028_FLOAT_MODE                                         0xFFF00FFF
1826b8e80941Smrg#define   S_00B028_PRIV(x)                                            (((unsigned)(x) & 0x1) << 20)
1827b8e80941Smrg#define   G_00B028_PRIV(x)                                            (((x) >> 20) & 0x1)
1828b8e80941Smrg#define   C_00B028_PRIV                                               0xFFEFFFFF
1829b8e80941Smrg#define   S_00B028_DX10_CLAMP(x)                                      (((unsigned)(x) & 0x1) << 21)
1830b8e80941Smrg#define   G_00B028_DX10_CLAMP(x)                                      (((x) >> 21) & 0x1)
1831b8e80941Smrg#define   C_00B028_DX10_CLAMP                                         0xFFDFFFFF
1832b8e80941Smrg#define   S_00B028_DEBUG_MODE(x)                                      (((unsigned)(x) & 0x1) << 22)
1833b8e80941Smrg#define   G_00B028_DEBUG_MODE(x)                                      (((x) >> 22) & 0x1)
1834b8e80941Smrg#define   C_00B028_DEBUG_MODE                                         0xFFBFFFFF
1835b8e80941Smrg#define   S_00B028_IEEE_MODE(x)                                       (((unsigned)(x) & 0x1) << 23)
1836b8e80941Smrg#define   G_00B028_IEEE_MODE(x)                                       (((x) >> 23) & 0x1)
1837b8e80941Smrg#define   C_00B028_IEEE_MODE                                          0xFF7FFFFF
1838b8e80941Smrg#define   S_00B028_CU_GROUP_DISABLE(x)                                (((unsigned)(x) & 0x1) << 24)
1839b8e80941Smrg#define   G_00B028_CU_GROUP_DISABLE(x)                                (((x) >> 24) & 0x1)
1840b8e80941Smrg#define   C_00B028_CU_GROUP_DISABLE                                   0xFEFFFFFF
1841b8e80941Smrg#define   S_00B028_CDBG_USER(x)                                       (((unsigned)(x) & 0x1) << 28)
1842b8e80941Smrg#define   G_00B028_CDBG_USER(x)                                       (((x) >> 28) & 0x1)
1843b8e80941Smrg#define   C_00B028_CDBG_USER                                          0xEFFFFFFF
1844b8e80941Smrg#define   S_00B028_FP16_OVFL(x)                                       (((unsigned)(x) & 0x1) << 29)
1845b8e80941Smrg#define   G_00B028_FP16_OVFL(x)                                       (((x) >> 29) & 0x1)
1846b8e80941Smrg#define   C_00B028_FP16_OVFL                                          0xDFFFFFFF
1847b8e80941Smrg#define R_00B02C_SPI_SHADER_PGM_RSRC2_PS                                0x00B02C
1848b8e80941Smrg#define   S_00B02C_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
1849b8e80941Smrg#define   G_00B02C_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
1850b8e80941Smrg#define   C_00B02C_SCRATCH_EN                                         0xFFFFFFFE
1851b8e80941Smrg#define   S_00B02C_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
1852b8e80941Smrg#define   G_00B02C_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
1853b8e80941Smrg#define   C_00B02C_USER_SGPR                                          0xFFFFFFC1
1854b8e80941Smrg#define   S_00B02C_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
1855b8e80941Smrg#define   G_00B02C_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
1856b8e80941Smrg#define   C_00B02C_TRAP_PRESENT                                       0xFFFFFFBF
1857b8e80941Smrg#define   S_00B02C_WAVE_CNT_EN(x)                                     (((unsigned)(x) & 0x1) << 7)
1858b8e80941Smrg#define   G_00B02C_WAVE_CNT_EN(x)                                     (((x) >> 7) & 0x1)
1859b8e80941Smrg#define   C_00B02C_WAVE_CNT_EN                                        0xFFFFFF7F
1860b8e80941Smrg#define   S_00B02C_EXTRA_LDS_SIZE(x)                                  (((unsigned)(x) & 0xFF) << 8)
1861b8e80941Smrg#define   G_00B02C_EXTRA_LDS_SIZE(x)                                  (((x) >> 8) & 0xFF)
1862b8e80941Smrg#define   C_00B02C_EXTRA_LDS_SIZE                                     0xFFFF00FF
1863b8e80941Smrg#define   S_00B02C_EXCP_EN(x)                                         (((unsigned)(x) & 0x1FF) << 16)
1864b8e80941Smrg#define   G_00B02C_EXCP_EN(x)                                         (((x) >> 16) & 0x1FF)
1865b8e80941Smrg#define   C_00B02C_EXCP_EN                                            0xFE00FFFF
1866b8e80941Smrg#define   S_00B02C_LOAD_COLLISION_WAVEID(x)                           (((unsigned)(x) & 0x1) << 25)
1867b8e80941Smrg#define   G_00B02C_LOAD_COLLISION_WAVEID(x)                           (((x) >> 25) & 0x1)
1868b8e80941Smrg#define   C_00B02C_LOAD_COLLISION_WAVEID                              0xFDFFFFFF
1869b8e80941Smrg#define   S_00B02C_LOAD_INTRAWAVE_COLLISION(x)                        (((unsigned)(x) & 0x1) << 26)
1870b8e80941Smrg#define   G_00B02C_LOAD_INTRAWAVE_COLLISION(x)                        (((x) >> 26) & 0x1)
1871b8e80941Smrg#define   C_00B02C_LOAD_INTRAWAVE_COLLISION                           0xFBFFFFFF
1872b8e80941Smrg#define   S_00B02C_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 27)
1873b8e80941Smrg#define   G_00B02C_SKIP_USGPR0(x)                                     (((x) >> 27) & 0x1)
1874b8e80941Smrg#define   C_00B02C_SKIP_USGPR0                                        0xF7FFFFFF
1875b8e80941Smrg#define   S_00B02C_USER_SGPR_MSB(x)                                   (((unsigned)(x) & 0x1) << 28)
1876b8e80941Smrg#define   G_00B02C_USER_SGPR_MSB(x)                                   (((x) >> 28) & 0x1)
1877b8e80941Smrg#define   C_00B02C_USER_SGPR_MSB                                      0xEFFFFFFF
1878b8e80941Smrg#define R_00B030_SPI_SHADER_USER_DATA_PS_0                              0x00B030
1879b8e80941Smrg#define R_00B034_SPI_SHADER_USER_DATA_PS_1                              0x00B034
1880b8e80941Smrg#define R_00B038_SPI_SHADER_USER_DATA_PS_2                              0x00B038
1881b8e80941Smrg#define R_00B03C_SPI_SHADER_USER_DATA_PS_3                              0x00B03C
1882b8e80941Smrg#define R_00B040_SPI_SHADER_USER_DATA_PS_4                              0x00B040
1883b8e80941Smrg#define R_00B044_SPI_SHADER_USER_DATA_PS_5                              0x00B044
1884b8e80941Smrg#define R_00B048_SPI_SHADER_USER_DATA_PS_6                              0x00B048
1885b8e80941Smrg#define R_00B04C_SPI_SHADER_USER_DATA_PS_7                              0x00B04C
1886b8e80941Smrg#define R_00B050_SPI_SHADER_USER_DATA_PS_8                              0x00B050
1887b8e80941Smrg#define R_00B054_SPI_SHADER_USER_DATA_PS_9                              0x00B054
1888b8e80941Smrg#define R_00B058_SPI_SHADER_USER_DATA_PS_10                             0x00B058
1889b8e80941Smrg#define R_00B05C_SPI_SHADER_USER_DATA_PS_11                             0x00B05C
1890b8e80941Smrg#define R_00B060_SPI_SHADER_USER_DATA_PS_12                             0x00B060
1891b8e80941Smrg#define R_00B064_SPI_SHADER_USER_DATA_PS_13                             0x00B064
1892b8e80941Smrg#define R_00B068_SPI_SHADER_USER_DATA_PS_14                             0x00B068
1893b8e80941Smrg#define R_00B06C_SPI_SHADER_USER_DATA_PS_15                             0x00B06C
1894b8e80941Smrg#define R_00B070_SPI_SHADER_USER_DATA_PS_16                             0x00B070
1895b8e80941Smrg#define R_00B074_SPI_SHADER_USER_DATA_PS_17                             0x00B074
1896b8e80941Smrg#define R_00B078_SPI_SHADER_USER_DATA_PS_18                             0x00B078
1897b8e80941Smrg#define R_00B07C_SPI_SHADER_USER_DATA_PS_19                             0x00B07C
1898b8e80941Smrg#define R_00B080_SPI_SHADER_USER_DATA_PS_20                             0x00B080
1899b8e80941Smrg#define R_00B084_SPI_SHADER_USER_DATA_PS_21                             0x00B084
1900b8e80941Smrg#define R_00B088_SPI_SHADER_USER_DATA_PS_22                             0x00B088
1901b8e80941Smrg#define R_00B08C_SPI_SHADER_USER_DATA_PS_23                             0x00B08C
1902b8e80941Smrg#define R_00B090_SPI_SHADER_USER_DATA_PS_24                             0x00B090
1903b8e80941Smrg#define R_00B094_SPI_SHADER_USER_DATA_PS_25                             0x00B094
1904b8e80941Smrg#define R_00B098_SPI_SHADER_USER_DATA_PS_26                             0x00B098
1905b8e80941Smrg#define R_00B09C_SPI_SHADER_USER_DATA_PS_27                             0x00B09C
1906b8e80941Smrg#define R_00B0A0_SPI_SHADER_USER_DATA_PS_28                             0x00B0A0
1907b8e80941Smrg#define R_00B0A4_SPI_SHADER_USER_DATA_PS_29                             0x00B0A4
1908b8e80941Smrg#define R_00B0A8_SPI_SHADER_USER_DATA_PS_30                             0x00B0A8
1909b8e80941Smrg#define R_00B0AC_SPI_SHADER_USER_DATA_PS_31                             0x00B0AC
1910b8e80941Smrg#define R_00B118_SPI_SHADER_PGM_RSRC3_VS                                0x00B118
1911b8e80941Smrg#define   S_00B118_CU_EN(x)                                           (((unsigned)(x) & 0xFFFF) << 0)
1912b8e80941Smrg#define   G_00B118_CU_EN(x)                                           (((x) >> 0) & 0xFFFF)
1913b8e80941Smrg#define   C_00B118_CU_EN                                              0xFFFF0000
1914b8e80941Smrg#define   S_00B118_WAVE_LIMIT(x)                                      (((unsigned)(x) & 0x3F) << 16)
1915b8e80941Smrg#define   G_00B118_WAVE_LIMIT(x)                                      (((x) >> 16) & 0x3F)
1916b8e80941Smrg#define   C_00B118_WAVE_LIMIT                                         0xFFC0FFFF
1917b8e80941Smrg#define   S_00B118_LOCK_LOW_THRESHOLD(x)                              (((unsigned)(x) & 0x0F) << 22)
1918b8e80941Smrg#define   G_00B118_LOCK_LOW_THRESHOLD(x)                              (((x) >> 22) & 0x0F)
1919b8e80941Smrg#define   C_00B118_LOCK_LOW_THRESHOLD                                 0xFC3FFFFF
1920b8e80941Smrg#define   S_00B118_SIMD_DISABLE(x)                                    (((unsigned)(x) & 0x0F) << 26)
1921b8e80941Smrg#define   G_00B118_SIMD_DISABLE(x)                                    (((x) >> 26) & 0x0F)
1922b8e80941Smrg#define   C_00B118_SIMD_DISABLE                                       0xC3FFFFFF
1923b8e80941Smrg#define R_00B11C_SPI_SHADER_LATE_ALLOC_VS                               0x00B11C
1924b8e80941Smrg#define   S_00B11C_LIMIT(x)                                           (((unsigned)(x) & 0x3F) << 0)
1925b8e80941Smrg#define   G_00B11C_LIMIT(x)                                           (((x) >> 0) & 0x3F)
1926b8e80941Smrg#define   C_00B11C_LIMIT                                              0xFFFFFFC0
1927b8e80941Smrg#define R_00B120_SPI_SHADER_PGM_LO_VS                                   0x00B120
1928b8e80941Smrg#define R_00B124_SPI_SHADER_PGM_HI_VS                                   0x00B124
1929b8e80941Smrg#define   S_00B124_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
1930b8e80941Smrg#define   G_00B124_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
1931b8e80941Smrg#define   C_00B124_MEM_BASE                                           0xFFFFFF00
1932b8e80941Smrg#define R_00B128_SPI_SHADER_PGM_RSRC1_VS                                0x00B128
1933b8e80941Smrg#define   S_00B128_VGPRS(x)                                           (((unsigned)(x) & 0x3F) << 0)
1934b8e80941Smrg#define   G_00B128_VGPRS(x)                                           (((x) >> 0) & 0x3F)
1935b8e80941Smrg#define   C_00B128_VGPRS                                              0xFFFFFFC0
1936b8e80941Smrg#define   S_00B128_SGPRS(x)                                           (((unsigned)(x) & 0x0F) << 6)
1937b8e80941Smrg#define   G_00B128_SGPRS(x)                                           (((x) >> 6) & 0x0F)
1938b8e80941Smrg#define   C_00B128_SGPRS                                              0xFFFFFC3F
1939b8e80941Smrg#define   S_00B128_PRIORITY(x)                                        (((unsigned)(x) & 0x03) << 10)
1940b8e80941Smrg#define   G_00B128_PRIORITY(x)                                        (((x) >> 10) & 0x03)
1941b8e80941Smrg#define   C_00B128_PRIORITY                                           0xFFFFF3FF
1942b8e80941Smrg#define   S_00B128_FLOAT_MODE(x)                                      (((unsigned)(x) & 0xFF) << 12)
1943b8e80941Smrg#define   G_00B128_FLOAT_MODE(x)                                      (((x) >> 12) & 0xFF)
1944b8e80941Smrg#define   C_00B128_FLOAT_MODE                                         0xFFF00FFF
1945b8e80941Smrg#define   S_00B128_PRIV(x)                                            (((unsigned)(x) & 0x1) << 20)
1946b8e80941Smrg#define   G_00B128_PRIV(x)                                            (((x) >> 20) & 0x1)
1947b8e80941Smrg#define   C_00B128_PRIV                                               0xFFEFFFFF
1948b8e80941Smrg#define   S_00B128_DX10_CLAMP(x)                                      (((unsigned)(x) & 0x1) << 21)
1949b8e80941Smrg#define   G_00B128_DX10_CLAMP(x)                                      (((x) >> 21) & 0x1)
1950b8e80941Smrg#define   C_00B128_DX10_CLAMP                                         0xFFDFFFFF
1951b8e80941Smrg#define   S_00B128_DEBUG_MODE(x)                                      (((unsigned)(x) & 0x1) << 22)
1952b8e80941Smrg#define   G_00B128_DEBUG_MODE(x)                                      (((x) >> 22) & 0x1)
1953b8e80941Smrg#define   C_00B128_DEBUG_MODE                                         0xFFBFFFFF
1954b8e80941Smrg#define   S_00B128_IEEE_MODE(x)                                       (((unsigned)(x) & 0x1) << 23)
1955b8e80941Smrg#define   G_00B128_IEEE_MODE(x)                                       (((x) >> 23) & 0x1)
1956b8e80941Smrg#define   C_00B128_IEEE_MODE                                          0xFF7FFFFF
1957b8e80941Smrg#define   S_00B128_VGPR_COMP_CNT(x)                                   (((unsigned)(x) & 0x03) << 24)
1958b8e80941Smrg#define   G_00B128_VGPR_COMP_CNT(x)                                   (((x) >> 24) & 0x03)
1959b8e80941Smrg#define   C_00B128_VGPR_COMP_CNT                                      0xFCFFFFFF
1960b8e80941Smrg#define   S_00B128_CU_GROUP_ENABLE(x)                                 (((unsigned)(x) & 0x1) << 26)
1961b8e80941Smrg#define   G_00B128_CU_GROUP_ENABLE(x)                                 (((x) >> 26) & 0x1)
1962b8e80941Smrg#define   C_00B128_CU_GROUP_ENABLE                                    0xFBFFFFFF
1963b8e80941Smrg#define   S_00B128_CDBG_USER(x)                                       (((unsigned)(x) & 0x1) << 30)
1964b8e80941Smrg#define   G_00B128_CDBG_USER(x)                                       (((x) >> 30) & 0x1)
1965b8e80941Smrg#define   C_00B128_CDBG_USER                                          0xBFFFFFFF
1966b8e80941Smrg#define   S_00B128_FP16_OVFL(x)                                       (((unsigned)(x) & 0x1) << 31)
1967b8e80941Smrg#define   G_00B128_FP16_OVFL(x)                                       (((x) >> 31) & 0x1)
1968b8e80941Smrg#define   C_00B128_FP16_OVFL                                          0x7FFFFFFF
1969b8e80941Smrg#define R_00B12C_SPI_SHADER_PGM_RSRC2_VS                                0x00B12C
1970b8e80941Smrg#define   S_00B12C_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
1971b8e80941Smrg#define   G_00B12C_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
1972b8e80941Smrg#define   C_00B12C_SCRATCH_EN                                         0xFFFFFFFE
1973b8e80941Smrg#define   S_00B12C_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
1974b8e80941Smrg#define   G_00B12C_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
1975b8e80941Smrg#define   C_00B12C_USER_SGPR                                          0xFFFFFFC1
1976b8e80941Smrg#define   S_00B12C_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
1977b8e80941Smrg#define   G_00B12C_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
1978b8e80941Smrg#define   C_00B12C_TRAP_PRESENT                                       0xFFFFFFBF
1979b8e80941Smrg#define   S_00B12C_OC_LDS_EN(x)                                       (((unsigned)(x) & 0x1) << 7)
1980b8e80941Smrg#define   G_00B12C_OC_LDS_EN(x)                                       (((x) >> 7) & 0x1)
1981b8e80941Smrg#define   C_00B12C_OC_LDS_EN                                          0xFFFFFF7F
1982b8e80941Smrg#define   S_00B12C_SO_BASE0_EN(x)                                     (((unsigned)(x) & 0x1) << 8)
1983b8e80941Smrg#define   G_00B12C_SO_BASE0_EN(x)                                     (((x) >> 8) & 0x1)
1984b8e80941Smrg#define   C_00B12C_SO_BASE0_EN                                        0xFFFFFEFF
1985b8e80941Smrg#define   S_00B12C_SO_BASE1_EN(x)                                     (((unsigned)(x) & 0x1) << 9)
1986b8e80941Smrg#define   G_00B12C_SO_BASE1_EN(x)                                     (((x) >> 9) & 0x1)
1987b8e80941Smrg#define   C_00B12C_SO_BASE1_EN                                        0xFFFFFDFF
1988b8e80941Smrg#define   S_00B12C_SO_BASE2_EN(x)                                     (((unsigned)(x) & 0x1) << 10)
1989b8e80941Smrg#define   G_00B12C_SO_BASE2_EN(x)                                     (((x) >> 10) & 0x1)
1990b8e80941Smrg#define   C_00B12C_SO_BASE2_EN                                        0xFFFFFBFF
1991b8e80941Smrg#define   S_00B12C_SO_BASE3_EN(x)                                     (((unsigned)(x) & 0x1) << 11)
1992b8e80941Smrg#define   G_00B12C_SO_BASE3_EN(x)                                     (((x) >> 11) & 0x1)
1993b8e80941Smrg#define   C_00B12C_SO_BASE3_EN                                        0xFFFFF7FF
1994b8e80941Smrg#define   S_00B12C_SO_EN(x)                                           (((unsigned)(x) & 0x1) << 12)
1995b8e80941Smrg#define   G_00B12C_SO_EN(x)                                           (((x) >> 12) & 0x1)
1996b8e80941Smrg#define   C_00B12C_SO_EN                                              0xFFFFEFFF
1997b8e80941Smrg#define   S_00B12C_EXCP_EN(x)                                         (((unsigned)(x) & 0x1FF) << 13)
1998b8e80941Smrg#define   G_00B12C_EXCP_EN(x)                                         (((x) >> 13) & 0x1FF)
1999b8e80941Smrg#define   C_00B12C_EXCP_EN                                            0xFFC01FFF
2000b8e80941Smrg#define   S_00B12C_PC_BASE_EN(x)                                      (((unsigned)(x) & 0x1) << 22)
2001b8e80941Smrg#define   G_00B12C_PC_BASE_EN(x)                                      (((x) >> 22) & 0x1)
2002b8e80941Smrg#define   C_00B12C_PC_BASE_EN                                         0xFFBFFFFF
2003b8e80941Smrg#define   S_00B12C_DISPATCH_DRAW_EN(x)                                (((unsigned)(x) & 0x1) << 24)
2004b8e80941Smrg#define   G_00B12C_DISPATCH_DRAW_EN(x)                                (((x) >> 24) & 0x1)
2005b8e80941Smrg#define   C_00B12C_DISPATCH_DRAW_EN                                   0xFEFFFFFF
2006b8e80941Smrg#define   S_00B12C_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 27)
2007b8e80941Smrg#define   G_00B12C_SKIP_USGPR0(x)                                     (((x) >> 27) & 0x1)
2008b8e80941Smrg#define   C_00B12C_SKIP_USGPR0                                        0xF7FFFFFF
2009b8e80941Smrg#define   S_00B12C_USER_SGPR_MSB(x)                                   (((unsigned)(x) & 0x1) << 28)
2010b8e80941Smrg#define   G_00B12C_USER_SGPR_MSB(x)                                   (((x) >> 28) & 0x1)
2011b8e80941Smrg#define   C_00B12C_USER_SGPR_MSB                                      0xEFFFFFFF
2012b8e80941Smrg#define R_00B130_SPI_SHADER_USER_DATA_VS_0                              0x00B130
2013b8e80941Smrg#define R_00B134_SPI_SHADER_USER_DATA_VS_1                              0x00B134
2014b8e80941Smrg#define R_00B138_SPI_SHADER_USER_DATA_VS_2                              0x00B138
2015b8e80941Smrg#define R_00B13C_SPI_SHADER_USER_DATA_VS_3                              0x00B13C
2016b8e80941Smrg#define R_00B140_SPI_SHADER_USER_DATA_VS_4                              0x00B140
2017b8e80941Smrg#define R_00B144_SPI_SHADER_USER_DATA_VS_5                              0x00B144
2018b8e80941Smrg#define R_00B148_SPI_SHADER_USER_DATA_VS_6                              0x00B148
2019b8e80941Smrg#define R_00B14C_SPI_SHADER_USER_DATA_VS_7                              0x00B14C
2020b8e80941Smrg#define R_00B150_SPI_SHADER_USER_DATA_VS_8                              0x00B150
2021b8e80941Smrg#define R_00B154_SPI_SHADER_USER_DATA_VS_9                              0x00B154
2022b8e80941Smrg#define R_00B158_SPI_SHADER_USER_DATA_VS_10                             0x00B158
2023b8e80941Smrg#define R_00B15C_SPI_SHADER_USER_DATA_VS_11                             0x00B15C
2024b8e80941Smrg#define R_00B160_SPI_SHADER_USER_DATA_VS_12                             0x00B160
2025b8e80941Smrg#define R_00B164_SPI_SHADER_USER_DATA_VS_13                             0x00B164
2026b8e80941Smrg#define R_00B168_SPI_SHADER_USER_DATA_VS_14                             0x00B168
2027b8e80941Smrg#define R_00B16C_SPI_SHADER_USER_DATA_VS_15                             0x00B16C
2028b8e80941Smrg#define R_00B170_SPI_SHADER_USER_DATA_VS_16                             0x00B170
2029b8e80941Smrg#define R_00B174_SPI_SHADER_USER_DATA_VS_17                             0x00B174
2030b8e80941Smrg#define R_00B178_SPI_SHADER_USER_DATA_VS_18                             0x00B178
2031b8e80941Smrg#define R_00B17C_SPI_SHADER_USER_DATA_VS_19                             0x00B17C
2032b8e80941Smrg#define R_00B180_SPI_SHADER_USER_DATA_VS_20                             0x00B180
2033b8e80941Smrg#define R_00B184_SPI_SHADER_USER_DATA_VS_21                             0x00B184
2034b8e80941Smrg#define R_00B188_SPI_SHADER_USER_DATA_VS_22                             0x00B188
2035b8e80941Smrg#define R_00B18C_SPI_SHADER_USER_DATA_VS_23                             0x00B18C
2036b8e80941Smrg#define R_00B190_SPI_SHADER_USER_DATA_VS_24                             0x00B190
2037b8e80941Smrg#define R_00B194_SPI_SHADER_USER_DATA_VS_25                             0x00B194
2038b8e80941Smrg#define R_00B198_SPI_SHADER_USER_DATA_VS_26                             0x00B198
2039b8e80941Smrg#define R_00B19C_SPI_SHADER_USER_DATA_VS_27                             0x00B19C
2040b8e80941Smrg#define R_00B1A0_SPI_SHADER_USER_DATA_VS_28                             0x00B1A0
2041b8e80941Smrg#define R_00B1A4_SPI_SHADER_USER_DATA_VS_29                             0x00B1A4
2042b8e80941Smrg#define R_00B1A8_SPI_SHADER_USER_DATA_VS_30                             0x00B1A8
2043b8e80941Smrg#define R_00B1AC_SPI_SHADER_USER_DATA_VS_31                             0x00B1AC
2044b8e80941Smrg#define R_00B1F0_SPI_SHADER_PGM_RSRC2_GS_VS                             0x00B1F0
2045b8e80941Smrg#define   S_00B1F0_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
2046b8e80941Smrg#define   G_00B1F0_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
2047b8e80941Smrg#define   C_00B1F0_SCRATCH_EN                                         0xFFFFFFFE
2048b8e80941Smrg#define   S_00B1F0_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
2049b8e80941Smrg#define   G_00B1F0_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
2050b8e80941Smrg#define   C_00B1F0_USER_SGPR                                          0xFFFFFFC1
2051b8e80941Smrg#define   S_00B1F0_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
2052b8e80941Smrg#define   G_00B1F0_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
2053b8e80941Smrg#define   C_00B1F0_TRAP_PRESENT                                       0xFFFFFFBF
2054b8e80941Smrg#define   S_00B1F0_EXCP_EN(x)                                         (((unsigned)(x) & 0x1FF) << 7)
2055b8e80941Smrg#define   G_00B1F0_EXCP_EN(x)                                         (((x) >> 7) & 0x1FF)
2056b8e80941Smrg#define   C_00B1F0_EXCP_EN                                            0xFFFF007F
2057b8e80941Smrg#define   S_00B1F0_VGPR_COMP_CNT(x)                                   (((unsigned)(x) & 0x03) << 16)
2058b8e80941Smrg#define   G_00B1F0_VGPR_COMP_CNT(x)                                   (((x) >> 16) & 0x03)
2059b8e80941Smrg#define   C_00B1F0_VGPR_COMP_CNT                                      0xFFFCFFFF
2060b8e80941Smrg#define   S_00B1F0_OC_LDS_EN(x)                                       (((unsigned)(x) & 0x1) << 18)
2061b8e80941Smrg#define   G_00B1F0_OC_LDS_EN(x)                                       (((x) >> 18) & 0x1)
2062b8e80941Smrg#define   C_00B1F0_OC_LDS_EN                                          0xFFFBFFFF
2063b8e80941Smrg#define   S_00B1F0_LDS_SIZE(x)                                        (((unsigned)(x) & 0xFF) << 19)
2064b8e80941Smrg#define   G_00B1F0_LDS_SIZE(x)                                        (((x) >> 19) & 0xFF)
2065b8e80941Smrg#define   C_00B1F0_LDS_SIZE                                           0xF807FFFF
2066b8e80941Smrg#define   S_00B1F0_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 27)
2067b8e80941Smrg#define   G_00B1F0_SKIP_USGPR0(x)                                     (((x) >> 27) & 0x1)
2068b8e80941Smrg#define   C_00B1F0_SKIP_USGPR0                                        0xF7FFFFFF
2069b8e80941Smrg#define   S_00B1F0_USER_SGPR_MSB(x)                                   (((unsigned)(x) & 0x1) << 28)
2070b8e80941Smrg#define   G_00B1F0_USER_SGPR_MSB(x)                                   (((x) >> 28) & 0x1)
2071b8e80941Smrg#define   C_00B1F0_USER_SGPR_MSB                                      0xEFFFFFFF
2072b8e80941Smrg#define R_00B204_SPI_SHADER_PGM_RSRC4_GS                                0x00B204
2073b8e80941Smrg#define   S_00B204_GROUP_FIFO_DEPTH(x)                                (((unsigned)(x) & 0x7F) << 0)
2074b8e80941Smrg#define   G_00B204_GROUP_FIFO_DEPTH(x)                                (((x) >> 0) & 0x7F)
2075b8e80941Smrg#define   C_00B204_GROUP_FIFO_DEPTH                                   0xFFFFFF80
2076b8e80941Smrg#define   S_00B204_SPI_SHADER_LATE_ALLOC_GS(x)                        (((unsigned)(x) & 0x7F) << 7)
2077b8e80941Smrg#define   G_00B204_SPI_SHADER_LATE_ALLOC_GS(x)                        (((x) >> 7) & 0x7F)
2078b8e80941Smrg#define   C_00B204_SPI_SHADER_LATE_ALLOC_GS                           0xFFFFC07F
2079b8e80941Smrg#define R_00B208_SPI_SHADER_USER_DATA_ADDR_LO_GS                        0x00B208
2080b8e80941Smrg#define R_00B20C_SPI_SHADER_USER_DATA_ADDR_HI_GS                        0x00B20C
2081b8e80941Smrg#define R_00B210_SPI_SHADER_PGM_LO_ES                                   0x00B210
2082b8e80941Smrg#define R_00B214_SPI_SHADER_PGM_HI_ES                                   0x00B214
2083b8e80941Smrg#define   S_00B214_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
2084b8e80941Smrg#define   G_00B214_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
2085b8e80941Smrg#define   C_00B214_MEM_BASE                                           0xFFFFFF00
2086b8e80941Smrg#define R_00B21C_SPI_SHADER_PGM_RSRC3_GS                                0x00B21C
2087b8e80941Smrg#define   S_00B21C_CU_EN(x)                                           (((unsigned)(x) & 0xFFFF) << 0)
2088b8e80941Smrg#define   G_00B21C_CU_EN(x)                                           (((x) >> 0) & 0xFFFF)
2089b8e80941Smrg#define   C_00B21C_CU_EN                                              0xFFFF0000
2090b8e80941Smrg#define   S_00B21C_WAVE_LIMIT(x)                                      (((unsigned)(x) & 0x3F) << 16)
2091b8e80941Smrg#define   G_00B21C_WAVE_LIMIT(x)                                      (((x) >> 16) & 0x3F)
2092b8e80941Smrg#define   C_00B21C_WAVE_LIMIT                                         0xFFC0FFFF
2093b8e80941Smrg#define   S_00B21C_LOCK_LOW_THRESHOLD(x)                              (((unsigned)(x) & 0x0F) << 22)
2094b8e80941Smrg#define   G_00B21C_LOCK_LOW_THRESHOLD(x)                              (((x) >> 22) & 0x0F)
2095b8e80941Smrg#define   C_00B21C_LOCK_LOW_THRESHOLD                                 0xFC3FFFFF
2096b8e80941Smrg#define   S_00B21C_SIMD_DISABLE(x)                                    (((unsigned)(x) & 0x0F) << 26)
2097b8e80941Smrg#define   G_00B21C_SIMD_DISABLE(x)                                    (((x) >> 26) & 0x0F)
2098b8e80941Smrg#define   C_00B21C_SIMD_DISABLE                                       0xC3FFFFFF
2099b8e80941Smrg#define R_00B220_SPI_SHADER_PGM_LO_GS                                   0x00B220
2100b8e80941Smrg#define R_00B224_SPI_SHADER_PGM_HI_GS                                   0x00B224
2101b8e80941Smrg#define   S_00B224_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
2102b8e80941Smrg#define   G_00B224_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
2103b8e80941Smrg#define   C_00B224_MEM_BASE                                           0xFFFFFF00
2104b8e80941Smrg#define R_00B228_SPI_SHADER_PGM_RSRC1_GS                                0x00B228
2105b8e80941Smrg#define   S_00B228_VGPRS(x)                                           (((unsigned)(x) & 0x3F) << 0)
2106b8e80941Smrg#define   G_00B228_VGPRS(x)                                           (((x) >> 0) & 0x3F)
2107b8e80941Smrg#define   C_00B228_VGPRS                                              0xFFFFFFC0
2108b8e80941Smrg#define   S_00B228_SGPRS(x)                                           (((unsigned)(x) & 0x0F) << 6)
2109b8e80941Smrg#define   G_00B228_SGPRS(x)                                           (((x) >> 6) & 0x0F)
2110b8e80941Smrg#define   C_00B228_SGPRS                                              0xFFFFFC3F
2111b8e80941Smrg#define   S_00B228_PRIORITY(x)                                        (((unsigned)(x) & 0x03) << 10)
2112b8e80941Smrg#define   G_00B228_PRIORITY(x)                                        (((x) >> 10) & 0x03)
2113b8e80941Smrg#define   C_00B228_PRIORITY                                           0xFFFFF3FF
2114b8e80941Smrg#define   S_00B228_FLOAT_MODE(x)                                      (((unsigned)(x) & 0xFF) << 12)
2115b8e80941Smrg#define   G_00B228_FLOAT_MODE(x)                                      (((x) >> 12) & 0xFF)
2116b8e80941Smrg#define   C_00B228_FLOAT_MODE                                         0xFFF00FFF
2117b8e80941Smrg#define   S_00B228_PRIV(x)                                            (((unsigned)(x) & 0x1) << 20)
2118b8e80941Smrg#define   G_00B228_PRIV(x)                                            (((x) >> 20) & 0x1)
2119b8e80941Smrg#define   C_00B228_PRIV                                               0xFFEFFFFF
2120b8e80941Smrg#define   S_00B228_DX10_CLAMP(x)                                      (((unsigned)(x) & 0x1) << 21)
2121b8e80941Smrg#define   G_00B228_DX10_CLAMP(x)                                      (((x) >> 21) & 0x1)
2122b8e80941Smrg#define   C_00B228_DX10_CLAMP                                         0xFFDFFFFF
2123b8e80941Smrg#define   S_00B228_DEBUG_MODE(x)                                      (((unsigned)(x) & 0x1) << 22)
2124b8e80941Smrg#define   G_00B228_DEBUG_MODE(x)                                      (((x) >> 22) & 0x1)
2125b8e80941Smrg#define   C_00B228_DEBUG_MODE                                         0xFFBFFFFF
2126b8e80941Smrg#define   S_00B228_IEEE_MODE(x)                                       (((unsigned)(x) & 0x1) << 23)
2127b8e80941Smrg#define   G_00B228_IEEE_MODE(x)                                       (((x) >> 23) & 0x1)
2128b8e80941Smrg#define   C_00B228_IEEE_MODE                                          0xFF7FFFFF
2129b8e80941Smrg#define   S_00B228_CU_GROUP_ENABLE(x)                                 (((unsigned)(x) & 0x1) << 24)
2130b8e80941Smrg#define   G_00B228_CU_GROUP_ENABLE(x)                                 (((x) >> 24) & 0x1)
2131b8e80941Smrg#define   C_00B228_CU_GROUP_ENABLE                                    0xFEFFFFFF
2132b8e80941Smrg#define   S_00B228_CDBG_USER(x)                                       (((unsigned)(x) & 0x1) << 28)
2133b8e80941Smrg#define   G_00B228_CDBG_USER(x)                                       (((x) >> 28) & 0x1)
2134b8e80941Smrg#define   C_00B228_CDBG_USER                                          0xEFFFFFFF
2135b8e80941Smrg#define   S_00B228_GS_VGPR_COMP_CNT(x)                                (((unsigned)(x) & 0x03) << 29)
2136b8e80941Smrg#define   G_00B228_GS_VGPR_COMP_CNT(x)                                (((x) >> 29) & 0x03)
2137b8e80941Smrg#define   C_00B228_GS_VGPR_COMP_CNT                                   0x9FFFFFFF
2138b8e80941Smrg#define   S_00B228_FP16_OVFL(x)                                       (((unsigned)(x) & 0x1) << 31)
2139b8e80941Smrg#define   G_00B228_FP16_OVFL(x)                                       (((x) >> 31) & 0x1)
2140b8e80941Smrg#define   C_00B228_FP16_OVFL                                          0x7FFFFFFF
2141b8e80941Smrg#define R_00B22C_SPI_SHADER_PGM_RSRC2_GS                                0x00B22C
2142b8e80941Smrg#define   S_00B22C_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
2143b8e80941Smrg#define   G_00B22C_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
2144b8e80941Smrg#define   C_00B22C_SCRATCH_EN                                         0xFFFFFFFE
2145b8e80941Smrg#define   S_00B22C_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
2146b8e80941Smrg#define   G_00B22C_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
2147b8e80941Smrg#define   C_00B22C_USER_SGPR                                          0xFFFFFFC1
2148b8e80941Smrg#define   S_00B22C_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
2149b8e80941Smrg#define   G_00B22C_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
2150b8e80941Smrg#define   C_00B22C_TRAP_PRESENT                                       0xFFFFFFBF
2151b8e80941Smrg#define   S_00B22C_EXCP_EN(x)                                         (((unsigned)(x) & 0x1FF) << 7)
2152b8e80941Smrg#define   G_00B22C_EXCP_EN(x)                                         (((x) >> 7) & 0x1FF)
2153b8e80941Smrg#define   C_00B22C_EXCP_EN                                            0xFFFF007F
2154b8e80941Smrg#define   S_00B22C_ES_VGPR_COMP_CNT(x)                                (((unsigned)(x) & 0x03) << 16)
2155b8e80941Smrg#define   G_00B22C_ES_VGPR_COMP_CNT(x)                                (((x) >> 16) & 0x03)
2156b8e80941Smrg#define   C_00B22C_ES_VGPR_COMP_CNT                                   0xFFFCFFFF
2157b8e80941Smrg#define   S_00B22C_OC_LDS_EN(x)                                       (((unsigned)(x) & 0x1) << 18)
2158b8e80941Smrg#define   G_00B22C_OC_LDS_EN(x)                                       (((x) >> 18) & 0x1)
2159b8e80941Smrg#define   C_00B22C_OC_LDS_EN                                          0xFFFBFFFF
2160b8e80941Smrg#define   S_00B22C_LDS_SIZE(x)                                        (((unsigned)(x) & 0xFF) << 19)
2161b8e80941Smrg#define   G_00B22C_LDS_SIZE(x)                                        (((x) >> 19) & 0xFF)
2162b8e80941Smrg#define   C_00B22C_LDS_SIZE                                           0xF807FFFF
2163b8e80941Smrg#define   S_00B22C_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 27)
2164b8e80941Smrg#define   G_00B22C_SKIP_USGPR0(x)                                     (((x) >> 27) & 0x1)
2165b8e80941Smrg#define   C_00B22C_SKIP_USGPR0                                        0xF7FFFFFF
2166b8e80941Smrg#define   S_00B22C_USER_SGPR_MSB(x)                                   (((unsigned)(x) & 0x1) << 28)
2167b8e80941Smrg#define   G_00B22C_USER_SGPR_MSB(x)                                   (((x) >> 28) & 0x1)
2168b8e80941Smrg#define   C_00B22C_USER_SGPR_MSB                                      0xEFFFFFFF
2169b8e80941Smrg#define R_00B330_SPI_SHADER_USER_DATA_ES_0                              0x00B330
2170b8e80941Smrg#define R_00B334_SPI_SHADER_USER_DATA_ES_1                              0x00B334
2171b8e80941Smrg#define R_00B338_SPI_SHADER_USER_DATA_ES_2                              0x00B338
2172b8e80941Smrg#define R_00B33C_SPI_SHADER_USER_DATA_ES_3                              0x00B33C
2173b8e80941Smrg#define R_00B340_SPI_SHADER_USER_DATA_ES_4                              0x00B340
2174b8e80941Smrg#define R_00B344_SPI_SHADER_USER_DATA_ES_5                              0x00B344
2175b8e80941Smrg#define R_00B348_SPI_SHADER_USER_DATA_ES_6                              0x00B348
2176b8e80941Smrg#define R_00B34C_SPI_SHADER_USER_DATA_ES_7                              0x00B34C
2177b8e80941Smrg#define R_00B350_SPI_SHADER_USER_DATA_ES_8                              0x00B350
2178b8e80941Smrg#define R_00B354_SPI_SHADER_USER_DATA_ES_9                              0x00B354
2179b8e80941Smrg#define R_00B358_SPI_SHADER_USER_DATA_ES_10                             0x00B358
2180b8e80941Smrg#define R_00B35C_SPI_SHADER_USER_DATA_ES_11                             0x00B35C
2181b8e80941Smrg#define R_00B360_SPI_SHADER_USER_DATA_ES_12                             0x00B360
2182b8e80941Smrg#define R_00B364_SPI_SHADER_USER_DATA_ES_13                             0x00B364
2183b8e80941Smrg#define R_00B368_SPI_SHADER_USER_DATA_ES_14                             0x00B368
2184b8e80941Smrg#define R_00B36C_SPI_SHADER_USER_DATA_ES_15                             0x00B36C
2185b8e80941Smrg#define R_00B370_SPI_SHADER_USER_DATA_ES_16                             0x00B370
2186b8e80941Smrg#define R_00B374_SPI_SHADER_USER_DATA_ES_17                             0x00B374
2187b8e80941Smrg#define R_00B378_SPI_SHADER_USER_DATA_ES_18                             0x00B378
2188b8e80941Smrg#define R_00B37C_SPI_SHADER_USER_DATA_ES_19                             0x00B37C
2189b8e80941Smrg#define R_00B380_SPI_SHADER_USER_DATA_ES_20                             0x00B380
2190b8e80941Smrg#define R_00B384_SPI_SHADER_USER_DATA_ES_21                             0x00B384
2191b8e80941Smrg#define R_00B388_SPI_SHADER_USER_DATA_ES_22                             0x00B388
2192b8e80941Smrg#define R_00B38C_SPI_SHADER_USER_DATA_ES_23                             0x00B38C
2193b8e80941Smrg#define R_00B390_SPI_SHADER_USER_DATA_ES_24                             0x00B390
2194b8e80941Smrg#define R_00B394_SPI_SHADER_USER_DATA_ES_25                             0x00B394
2195b8e80941Smrg#define R_00B398_SPI_SHADER_USER_DATA_ES_26                             0x00B398
2196b8e80941Smrg#define R_00B39C_SPI_SHADER_USER_DATA_ES_27                             0x00B39C
2197b8e80941Smrg#define R_00B3A0_SPI_SHADER_USER_DATA_ES_28                             0x00B3A0
2198b8e80941Smrg#define R_00B3A4_SPI_SHADER_USER_DATA_ES_29                             0x00B3A4
2199b8e80941Smrg#define R_00B3A8_SPI_SHADER_USER_DATA_ES_30                             0x00B3A8
2200b8e80941Smrg#define R_00B3AC_SPI_SHADER_USER_DATA_ES_31                             0x00B3AC
2201b8e80941Smrg#define R_00B404_SPI_SHADER_PGM_RSRC4_HS                                0x00B404
2202b8e80941Smrg#define   S_00B404_GROUP_FIFO_DEPTH(x)                                (((unsigned)(x) & 0x7F) << 0)
2203b8e80941Smrg#define   G_00B404_GROUP_FIFO_DEPTH(x)                                (((x) >> 0) & 0x7F)
2204b8e80941Smrg#define   C_00B404_GROUP_FIFO_DEPTH                                   0xFFFFFF80
2205b8e80941Smrg#define R_00B408_SPI_SHADER_USER_DATA_ADDR_LO_HS                        0x00B408
2206b8e80941Smrg#define R_00B40C_SPI_SHADER_USER_DATA_ADDR_HI_HS                        0x00B40C
2207b8e80941Smrg#define R_00B410_SPI_SHADER_PGM_LO_LS                                   0x00B410
2208b8e80941Smrg#define R_00B414_SPI_SHADER_PGM_HI_LS                                   0x00B414
2209b8e80941Smrg#define   S_00B414_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
2210b8e80941Smrg#define   G_00B414_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
2211b8e80941Smrg#define   C_00B414_MEM_BASE                                           0xFFFFFF00
2212b8e80941Smrg#define R_00B41C_SPI_SHADER_PGM_RSRC3_HS                                0x00B41C
2213b8e80941Smrg#define   S_00B41C_WAVE_LIMIT(x)                                      (((unsigned)(x) & 0x3F) << 0)
2214b8e80941Smrg#define   G_00B41C_WAVE_LIMIT(x)                                      (((x) >> 0) & 0x3F)
2215b8e80941Smrg#define   C_00B41C_WAVE_LIMIT                                         0xFFFFFFC0
2216b8e80941Smrg#define   S_00B41C_LOCK_LOW_THRESHOLD(x)                              (((unsigned)(x) & 0x0F) << 6)
2217b8e80941Smrg#define   G_00B41C_LOCK_LOW_THRESHOLD(x)                              (((x) >> 6) & 0x0F)
2218b8e80941Smrg#define   C_00B41C_LOCK_LOW_THRESHOLD                                 0xFFFFFC3F
2219b8e80941Smrg#define   S_00B41C_SIMD_DISABLE(x)                                    (((unsigned)(x) & 0x0F) << 10)
2220b8e80941Smrg#define   G_00B41C_SIMD_DISABLE(x)                                    (((x) >> 10) & 0x0F)
2221b8e80941Smrg#define   C_00B41C_SIMD_DISABLE                                       0xFFFFC3FF
2222b8e80941Smrg#define   S_00B41C_CU_EN(x)                                           (((unsigned)(x) & 0xFFFF) << 16)
2223b8e80941Smrg#define   G_00B41C_CU_EN(x)                                           (((x) >> 16) & 0xFFFF)
2224b8e80941Smrg#define   C_00B41C_CU_EN                                              0x0000FFFF
2225b8e80941Smrg#define R_00B420_SPI_SHADER_PGM_LO_HS                                   0x00B420
2226b8e80941Smrg#define R_00B424_SPI_SHADER_PGM_HI_HS                                   0x00B424
2227b8e80941Smrg#define   S_00B424_MEM_BASE(x)                                        (((unsigned)(x) & 0xFF) << 0)
2228b8e80941Smrg#define   G_00B424_MEM_BASE(x)                                        (((x) >> 0) & 0xFF)
2229b8e80941Smrg#define   C_00B424_MEM_BASE                                           0xFFFFFF00
2230b8e80941Smrg#define R_00B428_SPI_SHADER_PGM_RSRC1_HS                                0x00B428
2231b8e80941Smrg#define   S_00B428_VGPRS(x)                                           (((unsigned)(x) & 0x3F) << 0)
2232b8e80941Smrg#define   G_00B428_VGPRS(x)                                           (((x) >> 0) & 0x3F)
2233b8e80941Smrg#define   C_00B428_VGPRS                                              0xFFFFFFC0
2234b8e80941Smrg#define   S_00B428_SGPRS(x)                                           (((unsigned)(x) & 0x0F) << 6)
2235b8e80941Smrg#define   G_00B428_SGPRS(x)                                           (((x) >> 6) & 0x0F)
2236b8e80941Smrg#define   C_00B428_SGPRS                                              0xFFFFFC3F
2237b8e80941Smrg#define   S_00B428_PRIORITY(x)                                        (((unsigned)(x) & 0x03) << 10)
2238b8e80941Smrg#define   G_00B428_PRIORITY(x)                                        (((x) >> 10) & 0x03)
2239b8e80941Smrg#define   C_00B428_PRIORITY                                           0xFFFFF3FF
2240b8e80941Smrg#define   S_00B428_FLOAT_MODE(x)                                      (((unsigned)(x) & 0xFF) << 12)
2241b8e80941Smrg#define   G_00B428_FLOAT_MODE(x)                                      (((x) >> 12) & 0xFF)
2242b8e80941Smrg#define   C_00B428_FLOAT_MODE                                         0xFFF00FFF
2243b8e80941Smrg#define   S_00B428_PRIV(x)                                            (((unsigned)(x) & 0x1) << 20)
2244b8e80941Smrg#define   G_00B428_PRIV(x)                                            (((x) >> 20) & 0x1)
2245b8e80941Smrg#define   C_00B428_PRIV                                               0xFFEFFFFF
2246b8e80941Smrg#define   S_00B428_DX10_CLAMP(x)                                      (((unsigned)(x) & 0x1) << 21)
2247b8e80941Smrg#define   G_00B428_DX10_CLAMP(x)                                      (((x) >> 21) & 0x1)
2248b8e80941Smrg#define   C_00B428_DX10_CLAMP                                         0xFFDFFFFF
2249b8e80941Smrg#define   S_00B428_DEBUG_MODE(x)                                      (((unsigned)(x) & 0x1) << 22)
2250b8e80941Smrg#define   G_00B428_DEBUG_MODE(x)                                      (((x) >> 22) & 0x1)
2251b8e80941Smrg#define   C_00B428_DEBUG_MODE                                         0xFFBFFFFF
2252b8e80941Smrg#define   S_00B428_IEEE_MODE(x)                                       (((unsigned)(x) & 0x1) << 23)
2253b8e80941Smrg#define   G_00B428_IEEE_MODE(x)                                       (((x) >> 23) & 0x1)
2254b8e80941Smrg#define   C_00B428_IEEE_MODE                                          0xFF7FFFFF
2255b8e80941Smrg#define   S_00B428_CDBG_USER(x)                                       (((unsigned)(x) & 0x1) << 27)
2256b8e80941Smrg#define   G_00B428_CDBG_USER(x)                                       (((x) >> 27) & 0x1)
2257b8e80941Smrg#define   C_00B428_CDBG_USER                                          0xF7FFFFFF
2258b8e80941Smrg#define   S_00B428_LS_VGPR_COMP_CNT(x)                                (((unsigned)(x) & 0x03) << 28)
2259b8e80941Smrg#define   G_00B428_LS_VGPR_COMP_CNT(x)                                (((x) >> 28) & 0x03)
2260b8e80941Smrg#define   C_00B428_LS_VGPR_COMP_CNT                                   0xCFFFFFFF
2261b8e80941Smrg#define   S_00B428_FP16_OVFL(x)                                       (((unsigned)(x) & 0x1) << 30)
2262b8e80941Smrg#define   G_00B428_FP16_OVFL(x)                                       (((x) >> 30) & 0x1)
2263b8e80941Smrg#define   C_00B428_FP16_OVFL                                          0xBFFFFFFF
2264b8e80941Smrg#define R_00B42C_SPI_SHADER_PGM_RSRC2_HS                                0x00B42C
2265b8e80941Smrg#define   S_00B42C_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
2266b8e80941Smrg#define   G_00B42C_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
2267b8e80941Smrg#define   C_00B42C_SCRATCH_EN                                         0xFFFFFFFE
2268b8e80941Smrg#define   S_00B42C_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
2269b8e80941Smrg#define   G_00B42C_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
2270b8e80941Smrg#define   C_00B42C_USER_SGPR                                          0xFFFFFFC1
2271b8e80941Smrg#define   S_00B42C_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
2272b8e80941Smrg#define   G_00B42C_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
2273b8e80941Smrg#define   C_00B42C_TRAP_PRESENT                                       0xFFFFFFBF
2274b8e80941Smrg#define   S_00B42C_EXCP_EN(x)                                         (((unsigned)(x) & 0x1FF) << 7)
2275b8e80941Smrg#define   G_00B42C_EXCP_EN(x)                                         (((x) >> 7) & 0x1FF)
2276b8e80941Smrg#define   C_00B42C_EXCP_EN                                            0xFFFF007F
2277b8e80941Smrg#define   S_00B42C_LDS_SIZE(x)                                        (((unsigned)(x) & 0x1FF) << 16)
2278b8e80941Smrg#define   G_00B42C_LDS_SIZE(x)                                        (((x) >> 16) & 0x1FF)
2279b8e80941Smrg#define   C_00B42C_LDS_SIZE                                           0xFE00FFFF
2280b8e80941Smrg#define   S_00B42C_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 27)
2281b8e80941Smrg#define   G_00B42C_SKIP_USGPR0(x)                                     (((x) >> 27) & 0x1)
2282b8e80941Smrg#define   C_00B42C_SKIP_USGPR0                                        0xF7FFFFFF
2283b8e80941Smrg#define   S_00B42C_USER_SGPR_MSB(x)                                   (((unsigned)(x) & 0x1) << 28)
2284b8e80941Smrg#define   G_00B42C_USER_SGPR_MSB(x)                                   (((x) >> 28) & 0x1)
2285b8e80941Smrg#define   C_00B42C_USER_SGPR_MSB                                      0xEFFFFFFF
2286b8e80941Smrg#define R_00B430_SPI_SHADER_USER_DATA_LS_0                              0x00B430
2287b8e80941Smrg#define R_00B434_SPI_SHADER_USER_DATA_LS_1                              0x00B434
2288b8e80941Smrg#define R_00B438_SPI_SHADER_USER_DATA_LS_2                              0x00B438
2289b8e80941Smrg#define R_00B43C_SPI_SHADER_USER_DATA_LS_3                              0x00B43C
2290b8e80941Smrg#define R_00B440_SPI_SHADER_USER_DATA_LS_4                              0x00B440
2291b8e80941Smrg#define R_00B444_SPI_SHADER_USER_DATA_LS_5                              0x00B444
2292b8e80941Smrg#define R_00B448_SPI_SHADER_USER_DATA_LS_6                              0x00B448
2293b8e80941Smrg#define R_00B44C_SPI_SHADER_USER_DATA_LS_7                              0x00B44C
2294b8e80941Smrg#define R_00B450_SPI_SHADER_USER_DATA_LS_8                              0x00B450
2295b8e80941Smrg#define R_00B454_SPI_SHADER_USER_DATA_LS_9                              0x00B454
2296b8e80941Smrg#define R_00B458_SPI_SHADER_USER_DATA_LS_10                             0x00B458
2297b8e80941Smrg#define R_00B45C_SPI_SHADER_USER_DATA_LS_11                             0x00B45C
2298b8e80941Smrg#define R_00B460_SPI_SHADER_USER_DATA_LS_12                             0x00B460
2299b8e80941Smrg#define R_00B464_SPI_SHADER_USER_DATA_LS_13                             0x00B464
2300b8e80941Smrg#define R_00B468_SPI_SHADER_USER_DATA_LS_14                             0x00B468
2301b8e80941Smrg#define R_00B46C_SPI_SHADER_USER_DATA_LS_15                             0x00B46C
2302b8e80941Smrg#define R_00B470_SPI_SHADER_USER_DATA_LS_16                             0x00B470
2303b8e80941Smrg#define R_00B474_SPI_SHADER_USER_DATA_LS_17                             0x00B474
2304b8e80941Smrg#define R_00B478_SPI_SHADER_USER_DATA_LS_18                             0x00B478
2305b8e80941Smrg#define R_00B47C_SPI_SHADER_USER_DATA_LS_19                             0x00B47C
2306b8e80941Smrg#define R_00B480_SPI_SHADER_USER_DATA_LS_20                             0x00B480
2307b8e80941Smrg#define R_00B484_SPI_SHADER_USER_DATA_LS_21                             0x00B484
2308b8e80941Smrg#define R_00B488_SPI_SHADER_USER_DATA_LS_22                             0x00B488
2309b8e80941Smrg#define R_00B48C_SPI_SHADER_USER_DATA_LS_23                             0x00B48C
2310b8e80941Smrg#define R_00B490_SPI_SHADER_USER_DATA_LS_24                             0x00B490
2311b8e80941Smrg#define R_00B494_SPI_SHADER_USER_DATA_LS_25                             0x00B494
2312b8e80941Smrg#define R_00B498_SPI_SHADER_USER_DATA_LS_26                             0x00B498
2313b8e80941Smrg#define R_00B49C_SPI_SHADER_USER_DATA_LS_27                             0x00B49C
2314b8e80941Smrg#define R_00B4A0_SPI_SHADER_USER_DATA_LS_28                             0x00B4A0
2315b8e80941Smrg#define R_00B4A4_SPI_SHADER_USER_DATA_LS_29                             0x00B4A4
2316b8e80941Smrg#define R_00B4A8_SPI_SHADER_USER_DATA_LS_30                             0x00B4A8
2317b8e80941Smrg#define R_00B4AC_SPI_SHADER_USER_DATA_LS_31                             0x00B4AC
2318b8e80941Smrg#define R_00B530_SPI_SHADER_USER_DATA_COMMON_0                          0x00B530
2319b8e80941Smrg#define R_00B534_SPI_SHADER_USER_DATA_COMMON_1                          0x00B534
2320b8e80941Smrg#define R_00B538_SPI_SHADER_USER_DATA_COMMON_2                          0x00B538
2321b8e80941Smrg#define R_00B53C_SPI_SHADER_USER_DATA_COMMON_3                          0x00B53C
2322b8e80941Smrg#define R_00B540_SPI_SHADER_USER_DATA_COMMON_4                          0x00B540
2323b8e80941Smrg#define R_00B544_SPI_SHADER_USER_DATA_COMMON_5                          0x00B544
2324b8e80941Smrg#define R_00B548_SPI_SHADER_USER_DATA_COMMON_6                          0x00B548
2325b8e80941Smrg#define R_00B54C_SPI_SHADER_USER_DATA_COMMON_7                          0x00B54C
2326b8e80941Smrg#define R_00B550_SPI_SHADER_USER_DATA_COMMON_8                          0x00B550
2327b8e80941Smrg#define R_00B554_SPI_SHADER_USER_DATA_COMMON_9                          0x00B554
2328b8e80941Smrg#define R_00B558_SPI_SHADER_USER_DATA_COMMON_10                         0x00B558
2329b8e80941Smrg#define R_00B55C_SPI_SHADER_USER_DATA_COMMON_11                         0x00B55C
2330b8e80941Smrg#define R_00B560_SPI_SHADER_USER_DATA_COMMON_12                         0x00B560
2331b8e80941Smrg#define R_00B564_SPI_SHADER_USER_DATA_COMMON_13                         0x00B564
2332b8e80941Smrg#define R_00B568_SPI_SHADER_USER_DATA_COMMON_14                         0x00B568
2333b8e80941Smrg#define R_00B56C_SPI_SHADER_USER_DATA_COMMON_15                         0x00B56C
2334b8e80941Smrg#define R_00B570_SPI_SHADER_USER_DATA_COMMON_16                         0x00B570
2335b8e80941Smrg#define R_00B574_SPI_SHADER_USER_DATA_COMMON_17                         0x00B574
2336b8e80941Smrg#define R_00B578_SPI_SHADER_USER_DATA_COMMON_18                         0x00B578
2337b8e80941Smrg#define R_00B57C_SPI_SHADER_USER_DATA_COMMON_19                         0x00B57C
2338b8e80941Smrg#define R_00B580_SPI_SHADER_USER_DATA_COMMON_20                         0x00B580
2339b8e80941Smrg#define R_00B584_SPI_SHADER_USER_DATA_COMMON_21                         0x00B584
2340b8e80941Smrg#define R_00B588_SPI_SHADER_USER_DATA_COMMON_22                         0x00B588
2341b8e80941Smrg#define R_00B58C_SPI_SHADER_USER_DATA_COMMON_23                         0x00B58C
2342b8e80941Smrg#define R_00B590_SPI_SHADER_USER_DATA_COMMON_24                         0x00B590
2343b8e80941Smrg#define R_00B594_SPI_SHADER_USER_DATA_COMMON_25                         0x00B594
2344b8e80941Smrg#define R_00B598_SPI_SHADER_USER_DATA_COMMON_26                         0x00B598
2345b8e80941Smrg#define R_00B59C_SPI_SHADER_USER_DATA_COMMON_27                         0x00B59C
2346b8e80941Smrg#define R_00B5A0_SPI_SHADER_USER_DATA_COMMON_28                         0x00B5A0
2347b8e80941Smrg#define R_00B5A4_SPI_SHADER_USER_DATA_COMMON_29                         0x00B5A4
2348b8e80941Smrg#define R_00B5A8_SPI_SHADER_USER_DATA_COMMON_30                         0x00B5A8
2349b8e80941Smrg#define R_00B5AC_SPI_SHADER_USER_DATA_COMMON_31                         0x00B5AC
2350b8e80941Smrg#define R_00B800_COMPUTE_DISPATCH_INITIATOR                             0x00B800
2351b8e80941Smrg#define   S_00B800_COMPUTE_SHADER_EN(x)                               (((unsigned)(x) & 0x1) << 0)
2352b8e80941Smrg#define   G_00B800_COMPUTE_SHADER_EN(x)                               (((x) >> 0) & 0x1)
2353b8e80941Smrg#define   C_00B800_COMPUTE_SHADER_EN                                  0xFFFFFFFE
2354b8e80941Smrg#define   S_00B800_PARTIAL_TG_EN(x)                                   (((unsigned)(x) & 0x1) << 1)
2355b8e80941Smrg#define   G_00B800_PARTIAL_TG_EN(x)                                   (((x) >> 1) & 0x1)
2356b8e80941Smrg#define   C_00B800_PARTIAL_TG_EN                                      0xFFFFFFFD
2357b8e80941Smrg#define   S_00B800_FORCE_START_AT_000(x)                              (((unsigned)(x) & 0x1) << 2)
2358b8e80941Smrg#define   G_00B800_FORCE_START_AT_000(x)                              (((x) >> 2) & 0x1)
2359b8e80941Smrg#define   C_00B800_FORCE_START_AT_000                                 0xFFFFFFFB
2360b8e80941Smrg#define   S_00B800_ORDERED_APPEND_ENBL(x)                             (((unsigned)(x) & 0x1) << 3)
2361b8e80941Smrg#define   G_00B800_ORDERED_APPEND_ENBL(x)                             (((x) >> 3) & 0x1)
2362b8e80941Smrg#define   C_00B800_ORDERED_APPEND_ENBL                                0xFFFFFFF7
2363b8e80941Smrg#define   S_00B800_ORDERED_APPEND_MODE(x)                             (((unsigned)(x) & 0x1) << 4)
2364b8e80941Smrg#define   G_00B800_ORDERED_APPEND_MODE(x)                             (((x) >> 4) & 0x1)
2365b8e80941Smrg#define   C_00B800_ORDERED_APPEND_MODE                                0xFFFFFFEF
2366b8e80941Smrg#define   S_00B800_USE_THREAD_DIMENSIONS(x)                           (((unsigned)(x) & 0x1) << 5)
2367b8e80941Smrg#define   G_00B800_USE_THREAD_DIMENSIONS(x)                           (((x) >> 5) & 0x1)
2368b8e80941Smrg#define   C_00B800_USE_THREAD_DIMENSIONS                              0xFFFFFFDF
2369b8e80941Smrg#define   S_00B800_ORDER_MODE(x)                                      (((unsigned)(x) & 0x1) << 6)
2370b8e80941Smrg#define   G_00B800_ORDER_MODE(x)                                      (((x) >> 6) & 0x1)
2371b8e80941Smrg#define   C_00B800_ORDER_MODE                                         0xFFFFFFBF
2372b8e80941Smrg#define   S_00B800_SCALAR_L1_INV_VOL(x)                               (((unsigned)(x) & 0x1) << 10)
2373b8e80941Smrg#define   G_00B800_SCALAR_L1_INV_VOL(x)                               (((x) >> 10) & 0x1)
2374b8e80941Smrg#define   C_00B800_SCALAR_L1_INV_VOL                                  0xFFFFFBFF
2375b8e80941Smrg#define   S_00B800_VECTOR_L1_INV_VOL(x)                               (((unsigned)(x) & 0x1) << 11)
2376b8e80941Smrg#define   G_00B800_VECTOR_L1_INV_VOL(x)                               (((x) >> 11) & 0x1)
2377b8e80941Smrg#define   C_00B800_VECTOR_L1_INV_VOL                                  0xFFFFF7FF
2378b8e80941Smrg#define   S_00B800_RESERVED(x)                                        (((unsigned)(x) & 0x1) << 12)
2379b8e80941Smrg#define   G_00B800_RESERVED(x)                                        (((x) >> 12) & 0x1)
2380b8e80941Smrg#define   C_00B800_RESERVED                                           0xFFFFEFFF
2381b8e80941Smrg#define   S_00B800_RESTORE(x)                                         (((unsigned)(x) & 0x1) << 14)
2382b8e80941Smrg#define   G_00B800_RESTORE(x)                                         (((x) >> 14) & 0x1)
2383b8e80941Smrg#define   C_00B800_RESTORE                                            0xFFFFBFFF
2384b8e80941Smrg#define R_00B804_COMPUTE_DIM_X                                          0x00B804
2385b8e80941Smrg#define R_00B808_COMPUTE_DIM_Y                                          0x00B808
2386b8e80941Smrg#define R_00B80C_COMPUTE_DIM_Z                                          0x00B80C
2387b8e80941Smrg#define R_00B810_COMPUTE_START_X                                        0x00B810
2388b8e80941Smrg#define R_00B814_COMPUTE_START_Y                                        0x00B814
2389b8e80941Smrg#define R_00B818_COMPUTE_START_Z                                        0x00B818
2390b8e80941Smrg#define R_00B81C_COMPUTE_NUM_THREAD_X                                   0x00B81C
2391b8e80941Smrg#define   S_00B81C_NUM_THREAD_FULL(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
2392b8e80941Smrg#define   G_00B81C_NUM_THREAD_FULL(x)                                 (((x) >> 0) & 0xFFFF)
2393b8e80941Smrg#define   C_00B81C_NUM_THREAD_FULL                                    0xFFFF0000
2394b8e80941Smrg#define   S_00B81C_NUM_THREAD_PARTIAL(x)                              (((unsigned)(x) & 0xFFFF) << 16)
2395b8e80941Smrg#define   G_00B81C_NUM_THREAD_PARTIAL(x)                              (((x) >> 16) & 0xFFFF)
2396b8e80941Smrg#define   C_00B81C_NUM_THREAD_PARTIAL                                 0x0000FFFF
2397b8e80941Smrg#define R_00B820_COMPUTE_NUM_THREAD_Y                                   0x00B820
2398b8e80941Smrg#define   S_00B820_NUM_THREAD_FULL(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
2399b8e80941Smrg#define   G_00B820_NUM_THREAD_FULL(x)                                 (((x) >> 0) & 0xFFFF)
2400b8e80941Smrg#define   C_00B820_NUM_THREAD_FULL                                    0xFFFF0000
2401b8e80941Smrg#define   S_00B820_NUM_THREAD_PARTIAL(x)                              (((unsigned)(x) & 0xFFFF) << 16)
2402b8e80941Smrg#define   G_00B820_NUM_THREAD_PARTIAL(x)                              (((x) >> 16) & 0xFFFF)
2403b8e80941Smrg#define   C_00B820_NUM_THREAD_PARTIAL                                 0x0000FFFF
2404b8e80941Smrg#define R_00B824_COMPUTE_NUM_THREAD_Z                                   0x00B824
2405b8e80941Smrg#define   S_00B824_NUM_THREAD_FULL(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
2406b8e80941Smrg#define   G_00B824_NUM_THREAD_FULL(x)                                 (((x) >> 0) & 0xFFFF)
2407b8e80941Smrg#define   C_00B824_NUM_THREAD_FULL                                    0xFFFF0000
2408b8e80941Smrg#define   S_00B824_NUM_THREAD_PARTIAL(x)                              (((unsigned)(x) & 0xFFFF) << 16)
2409b8e80941Smrg#define   G_00B824_NUM_THREAD_PARTIAL(x)                              (((x) >> 16) & 0xFFFF)
2410b8e80941Smrg#define   C_00B824_NUM_THREAD_PARTIAL                                 0x0000FFFF
2411b8e80941Smrg#define R_00B828_COMPUTE_PIPELINESTAT_ENABLE                            0x00B828
2412b8e80941Smrg#define   S_00B828_PIPELINESTAT_ENABLE(x)                             (((unsigned)(x) & 0x1) << 0)
2413b8e80941Smrg#define   G_00B828_PIPELINESTAT_ENABLE(x)                             (((x) >> 0) & 0x1)
2414b8e80941Smrg#define   C_00B828_PIPELINESTAT_ENABLE                                0xFFFFFFFE
2415b8e80941Smrg#define R_00B82C_COMPUTE_PERFCOUNT_ENABLE                               0x00B82C
2416b8e80941Smrg#define   S_00B82C_PERFCOUNT_ENABLE(x)                                (((unsigned)(x) & 0x1) << 0)
2417b8e80941Smrg#define   G_00B82C_PERFCOUNT_ENABLE(x)                                (((x) >> 0) & 0x1)
2418b8e80941Smrg#define   C_00B82C_PERFCOUNT_ENABLE                                   0xFFFFFFFE
2419b8e80941Smrg#define R_00B830_COMPUTE_PGM_LO                                         0x00B830
2420b8e80941Smrg#define R_00B834_COMPUTE_PGM_HI                                         0x00B834
2421b8e80941Smrg#define   S_00B834_DATA(x)                                            (((unsigned)(x) & 0xFF) << 0)
2422b8e80941Smrg#define   G_00B834_DATA(x)                                            (((x) >> 0) & 0xFF)
2423b8e80941Smrg#define   C_00B834_DATA                                               0xFFFFFF00
2424b8e80941Smrg#define R_00B838_COMPUTE_DISPATCH_PKT_ADDR_LO                           0x00B838
2425b8e80941Smrg#define R_00B83C_COMPUTE_DISPATCH_PKT_ADDR_HI                           0x00B83C
2426b8e80941Smrg#define   S_00B83C_DATA(x)                                            (((unsigned)(x) & 0xFF) << 0)
2427b8e80941Smrg#define   G_00B83C_DATA(x)                                            (((x) >> 0) & 0xFF)
2428b8e80941Smrg#define   C_00B83C_DATA                                               0xFFFFFF00
2429b8e80941Smrg#define R_00B840_COMPUTE_DISPATCH_SCRATCH_BASE_LO                       0x00B840
2430b8e80941Smrg#define R_00B844_COMPUTE_DISPATCH_SCRATCH_BASE_HI                       0x00B844
2431b8e80941Smrg#define   S_00B844_DATA(x)                                            (((unsigned)(x) & 0xFF) << 0)
2432b8e80941Smrg#define   G_00B844_DATA(x)                                            (((x) >> 0) & 0xFF)
2433b8e80941Smrg#define   C_00B844_DATA                                               0xFFFFFF00
2434b8e80941Smrg#define R_00B848_COMPUTE_PGM_RSRC1                                      0x00B848
2435b8e80941Smrg#define   S_00B848_VGPRS(x)                                           (((unsigned)(x) & 0x3F) << 0)
2436b8e80941Smrg#define   G_00B848_VGPRS(x)                                           (((x) >> 0) & 0x3F)
2437b8e80941Smrg#define   C_00B848_VGPRS                                              0xFFFFFFC0
2438b8e80941Smrg#define   S_00B848_SGPRS(x)                                           (((unsigned)(x) & 0x0F) << 6)
2439b8e80941Smrg#define   G_00B848_SGPRS(x)                                           (((x) >> 6) & 0x0F)
2440b8e80941Smrg#define   C_00B848_SGPRS                                              0xFFFFFC3F
2441b8e80941Smrg#define   S_00B848_PRIORITY(x)                                        (((unsigned)(x) & 0x03) << 10)
2442b8e80941Smrg#define   G_00B848_PRIORITY(x)                                        (((x) >> 10) & 0x03)
2443b8e80941Smrg#define   C_00B848_PRIORITY                                           0xFFFFF3FF
2444b8e80941Smrg#define   S_00B848_FLOAT_MODE(x)                                      (((unsigned)(x) & 0xFF) << 12)
2445b8e80941Smrg#define   G_00B848_FLOAT_MODE(x)                                      (((x) >> 12) & 0xFF)
2446b8e80941Smrg#define   C_00B848_FLOAT_MODE                                         0xFFF00FFF
2447b8e80941Smrg#define   S_00B848_PRIV(x)                                            (((unsigned)(x) & 0x1) << 20)
2448b8e80941Smrg#define   G_00B848_PRIV(x)                                            (((x) >> 20) & 0x1)
2449b8e80941Smrg#define   C_00B848_PRIV                                               0xFFEFFFFF
2450b8e80941Smrg#define   S_00B848_DX10_CLAMP(x)                                      (((unsigned)(x) & 0x1) << 21)
2451b8e80941Smrg#define   G_00B848_DX10_CLAMP(x)                                      (((x) >> 21) & 0x1)
2452b8e80941Smrg#define   C_00B848_DX10_CLAMP                                         0xFFDFFFFF
2453b8e80941Smrg#define   S_00B848_DEBUG_MODE(x)                                      (((unsigned)(x) & 0x1) << 22)
2454b8e80941Smrg#define   G_00B848_DEBUG_MODE(x)                                      (((x) >> 22) & 0x1)
2455b8e80941Smrg#define   C_00B848_DEBUG_MODE                                         0xFFBFFFFF
2456b8e80941Smrg#define   S_00B848_IEEE_MODE(x)                                       (((unsigned)(x) & 0x1) << 23)
2457b8e80941Smrg#define   G_00B848_IEEE_MODE(x)                                       (((x) >> 23) & 0x1)
2458b8e80941Smrg#define   C_00B848_IEEE_MODE                                          0xFF7FFFFF
2459b8e80941Smrg#define   S_00B848_BULKY(x)                                           (((unsigned)(x) & 0x1) << 24)
2460b8e80941Smrg#define   G_00B848_BULKY(x)                                           (((x) >> 24) & 0x1)
2461b8e80941Smrg#define   C_00B848_BULKY                                              0xFEFFFFFF
2462b8e80941Smrg#define   S_00B848_CDBG_USER(x)                                       (((unsigned)(x) & 0x1) << 25)
2463b8e80941Smrg#define   G_00B848_CDBG_USER(x)                                       (((x) >> 25) & 0x1)
2464b8e80941Smrg#define   C_00B848_CDBG_USER                                          0xFDFFFFFF
2465b8e80941Smrg#define   S_00B848_FP16_OVFL(x)                                       (((unsigned)(x) & 0x1) << 26)
2466b8e80941Smrg#define   G_00B848_FP16_OVFL(x)                                       (((x) >> 26) & 0x1)
2467b8e80941Smrg#define   C_00B848_FP16_OVFL                                          0xFBFFFFFF
2468b8e80941Smrg#define R_00B84C_COMPUTE_PGM_RSRC2                                      0x00B84C
2469b8e80941Smrg#define   S_00B84C_SCRATCH_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
2470b8e80941Smrg#define   G_00B84C_SCRATCH_EN(x)                                      (((x) >> 0) & 0x1)
2471b8e80941Smrg#define   C_00B84C_SCRATCH_EN                                         0xFFFFFFFE
2472b8e80941Smrg#define   S_00B84C_USER_SGPR(x)                                       (((unsigned)(x) & 0x1F) << 1)
2473b8e80941Smrg#define   G_00B84C_USER_SGPR(x)                                       (((x) >> 1) & 0x1F)
2474b8e80941Smrg#define   C_00B84C_USER_SGPR                                          0xFFFFFFC1
2475b8e80941Smrg#define   S_00B84C_TRAP_PRESENT(x)                                    (((unsigned)(x) & 0x1) << 6)
2476b8e80941Smrg#define   G_00B84C_TRAP_PRESENT(x)                                    (((x) >> 6) & 0x1)
2477b8e80941Smrg#define   C_00B84C_TRAP_PRESENT                                       0xFFFFFFBF
2478b8e80941Smrg#define   S_00B84C_TGID_X_EN(x)                                       (((unsigned)(x) & 0x1) << 7)
2479b8e80941Smrg#define   G_00B84C_TGID_X_EN(x)                                       (((x) >> 7) & 0x1)
2480b8e80941Smrg#define   C_00B84C_TGID_X_EN                                          0xFFFFFF7F
2481b8e80941Smrg#define   S_00B84C_TGID_Y_EN(x)                                       (((unsigned)(x) & 0x1) << 8)
2482b8e80941Smrg#define   G_00B84C_TGID_Y_EN(x)                                       (((x) >> 8) & 0x1)
2483b8e80941Smrg#define   C_00B84C_TGID_Y_EN                                          0xFFFFFEFF
2484b8e80941Smrg#define   S_00B84C_TGID_Z_EN(x)                                       (((unsigned)(x) & 0x1) << 9)
2485b8e80941Smrg#define   G_00B84C_TGID_Z_EN(x)                                       (((x) >> 9) & 0x1)
2486b8e80941Smrg#define   C_00B84C_TGID_Z_EN                                          0xFFFFFDFF
2487b8e80941Smrg#define   S_00B84C_TG_SIZE_EN(x)                                      (((unsigned)(x) & 0x1) << 10)
2488b8e80941Smrg#define   G_00B84C_TG_SIZE_EN(x)                                      (((x) >> 10) & 0x1)
2489b8e80941Smrg#define   C_00B84C_TG_SIZE_EN                                         0xFFFFFBFF
2490b8e80941Smrg#define   S_00B84C_TIDIG_COMP_CNT(x)                                  (((unsigned)(x) & 0x03) << 11)
2491b8e80941Smrg#define   G_00B84C_TIDIG_COMP_CNT(x)                                  (((x) >> 11) & 0x03)
2492b8e80941Smrg#define   C_00B84C_TIDIG_COMP_CNT                                     0xFFFFE7FF
2493b8e80941Smrg#define   S_00B84C_EXCP_EN_MSB(x)                                     (((unsigned)(x) & 0x03) << 13)
2494b8e80941Smrg#define   G_00B84C_EXCP_EN_MSB(x)                                     (((x) >> 13) & 0x03)
2495b8e80941Smrg#define   C_00B84C_EXCP_EN_MSB                                        0xFFFF9FFF
2496b8e80941Smrg#define   S_00B84C_LDS_SIZE(x)                                        (((unsigned)(x) & 0x1FF) << 15)
2497b8e80941Smrg#define   G_00B84C_LDS_SIZE(x)                                        (((x) >> 15) & 0x1FF)
2498b8e80941Smrg#define   C_00B84C_LDS_SIZE                                           0xFF007FFF
2499b8e80941Smrg#define   S_00B84C_EXCP_EN(x)                                         (((unsigned)(x) & 0x7F) << 24)
2500b8e80941Smrg#define   G_00B84C_EXCP_EN(x)                                         (((x) >> 24) & 0x7F)
2501b8e80941Smrg#define   C_00B84C_EXCP_EN                                            0x80FFFFFF
2502b8e80941Smrg#define   S_00B84C_SKIP_USGPR0(x)                                     (((unsigned)(x) & 0x1) << 31)
2503b8e80941Smrg#define   G_00B84C_SKIP_USGPR0(x)                                     (((x) >> 31) & 0x1)
2504b8e80941Smrg#define   C_00B84C_SKIP_USGPR0                                        0x7FFFFFFF
2505b8e80941Smrg#define R_00B850_COMPUTE_VMID                                           0x00B850
2506b8e80941Smrg#define   S_00B850_DATA(x)                                            (((unsigned)(x) & 0x0F) << 0)
2507b8e80941Smrg#define   G_00B850_DATA(x)                                            (((x) >> 0) & 0x0F)
2508b8e80941Smrg#define   C_00B850_DATA                                               0xFFFFFFF0
2509b8e80941Smrg#define R_00B854_COMPUTE_RESOURCE_LIMITS                                0x00B854
2510b8e80941Smrg#define   S_00B854_WAVES_PER_SH(x)                                    (((unsigned)(x) & 0x3FF) << 0)
2511b8e80941Smrg#define   G_00B854_WAVES_PER_SH(x)                                    (((x) >> 0) & 0x3FF)
2512b8e80941Smrg#define   C_00B854_WAVES_PER_SH                                       0xFFFFFC00
2513b8e80941Smrg#define   S_00B854_TG_PER_CU(x)                                       (((unsigned)(x) & 0x0F) << 12)
2514b8e80941Smrg#define   G_00B854_TG_PER_CU(x)                                       (((x) >> 12) & 0x0F)
2515b8e80941Smrg#define   C_00B854_TG_PER_CU                                          0xFFFF0FFF
2516b8e80941Smrg#define   S_00B854_LOCK_THRESHOLD(x)                                  (((unsigned)(x) & 0x3F) << 16)
2517b8e80941Smrg#define   G_00B854_LOCK_THRESHOLD(x)                                  (((x) >> 16) & 0x3F)
2518b8e80941Smrg#define   C_00B854_LOCK_THRESHOLD                                     0xFFC0FFFF
2519b8e80941Smrg#define   S_00B854_SIMD_DEST_CNTL(x)                                  (((unsigned)(x) & 0x1) << 22)
2520b8e80941Smrg#define   G_00B854_SIMD_DEST_CNTL(x)                                  (((x) >> 22) & 0x1)
2521b8e80941Smrg#define   C_00B854_SIMD_DEST_CNTL                                     0xFFBFFFFF
2522b8e80941Smrg#define   S_00B854_FORCE_SIMD_DIST(x)                                 (((unsigned)(x) & 0x1) << 23)
2523b8e80941Smrg#define   G_00B854_FORCE_SIMD_DIST(x)                                 (((x) >> 23) & 0x1)
2524b8e80941Smrg#define   C_00B854_FORCE_SIMD_DIST                                    0xFF7FFFFF
2525b8e80941Smrg#define   S_00B854_CU_GROUP_COUNT(x)                                  (((unsigned)(x) & 0x07) << 24)
2526b8e80941Smrg#define   G_00B854_CU_GROUP_COUNT(x)                                  (((x) >> 24) & 0x07)
2527b8e80941Smrg#define   C_00B854_CU_GROUP_COUNT                                     0xF8FFFFFF
2528b8e80941Smrg#define   S_00B854_SIMD_DISABLE(x)                                    (((unsigned)(x) & 0x0F) << 27)
2529b8e80941Smrg#define   G_00B854_SIMD_DISABLE(x)                                    (((x) >> 27) & 0x0F)
2530b8e80941Smrg#define   C_00B854_SIMD_DISABLE                                       0x87FFFFFF
2531b8e80941Smrg#define R_00B858_COMPUTE_STATIC_THREAD_MGMT_SE0                         0x00B858
2532b8e80941Smrg#define   S_00B858_SH0_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 0)
2533b8e80941Smrg#define   G_00B858_SH0_CU_EN(x)                                       (((x) >> 0) & 0xFFFF)
2534b8e80941Smrg#define   C_00B858_SH0_CU_EN                                          0xFFFF0000
2535b8e80941Smrg#define   S_00B858_SH1_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 16)
2536b8e80941Smrg#define   G_00B858_SH1_CU_EN(x)                                       (((x) >> 16) & 0xFFFF)
2537b8e80941Smrg#define   C_00B858_SH1_CU_EN                                          0x0000FFFF
2538b8e80941Smrg#define R_00B85C_COMPUTE_STATIC_THREAD_MGMT_SE1                         0x00B85C
2539b8e80941Smrg#define   S_00B85C_SH0_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 0)
2540b8e80941Smrg#define   G_00B85C_SH0_CU_EN(x)                                       (((x) >> 0) & 0xFFFF)
2541b8e80941Smrg#define   C_00B85C_SH0_CU_EN                                          0xFFFF0000
2542b8e80941Smrg#define   S_00B85C_SH1_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 16)
2543b8e80941Smrg#define   G_00B85C_SH1_CU_EN(x)                                       (((x) >> 16) & 0xFFFF)
2544b8e80941Smrg#define   C_00B85C_SH1_CU_EN                                          0x0000FFFF
2545b8e80941Smrg#define R_00B860_COMPUTE_TMPRING_SIZE                                   0x00B860
2546b8e80941Smrg#define   S_00B860_WAVES(x)                                           (((unsigned)(x) & 0xFFF) << 0)
2547b8e80941Smrg#define   G_00B860_WAVES(x)                                           (((x) >> 0) & 0xFFF)
2548b8e80941Smrg#define   C_00B860_WAVES                                              0xFFFFF000
2549b8e80941Smrg#define   S_00B860_WAVESIZE(x)                                        (((unsigned)(x) & 0x1FFF) << 12)
2550b8e80941Smrg#define   G_00B860_WAVESIZE(x)                                        (((x) >> 12) & 0x1FFF)
2551b8e80941Smrg#define   C_00B860_WAVESIZE                                           0xFE000FFF
2552b8e80941Smrg#define R_00B864_COMPUTE_STATIC_THREAD_MGMT_SE2                         0x00B864
2553b8e80941Smrg#define   S_00B864_SH0_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 0)
2554b8e80941Smrg#define   G_00B864_SH0_CU_EN(x)                                       (((x) >> 0) & 0xFFFF)
2555b8e80941Smrg#define   C_00B864_SH0_CU_EN                                          0xFFFF0000
2556b8e80941Smrg#define   S_00B864_SH1_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 16)
2557b8e80941Smrg#define   G_00B864_SH1_CU_EN(x)                                       (((x) >> 16) & 0xFFFF)
2558b8e80941Smrg#define   C_00B864_SH1_CU_EN                                          0x0000FFFF
2559b8e80941Smrg#define R_00B868_COMPUTE_STATIC_THREAD_MGMT_SE3                         0x00B868
2560b8e80941Smrg#define   S_00B868_SH0_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 0)
2561b8e80941Smrg#define   G_00B868_SH0_CU_EN(x)                                       (((x) >> 0) & 0xFFFF)
2562b8e80941Smrg#define   C_00B868_SH0_CU_EN                                          0xFFFF0000
2563b8e80941Smrg#define   S_00B868_SH1_CU_EN(x)                                       (((unsigned)(x) & 0xFFFF) << 16)
2564b8e80941Smrg#define   G_00B868_SH1_CU_EN(x)                                       (((x) >> 16) & 0xFFFF)
2565b8e80941Smrg#define   C_00B868_SH1_CU_EN                                          0x0000FFFF
2566b8e80941Smrg#define R_00B86C_COMPUTE_RESTART_X                                      0x00B86C
2567b8e80941Smrg#define R_00B870_COMPUTE_RESTART_Y                                      0x00B870
2568b8e80941Smrg#define R_00B874_COMPUTE_RESTART_Z                                      0x00B874
2569b8e80941Smrg#define R_00B87C_COMPUTE_MISC_RESERVED                                  0x00B87C
2570b8e80941Smrg#define   S_00B87C_SEND_SEID(x)                                       (((unsigned)(x) & 0x03) << 0)
2571b8e80941Smrg#define   G_00B87C_SEND_SEID(x)                                       (((x) >> 0) & 0x03)
2572b8e80941Smrg#define   C_00B87C_SEND_SEID                                          0xFFFFFFFC
2573b8e80941Smrg#define   S_00B87C_RESERVED2(x)                                       (((unsigned)(x) & 0x1) << 2)
2574b8e80941Smrg#define   G_00B87C_RESERVED2(x)                                       (((x) >> 2) & 0x1)
2575b8e80941Smrg#define   C_00B87C_RESERVED2                                          0xFFFFFFFB
2576b8e80941Smrg#define   S_00B87C_RESERVED3(x)                                       (((unsigned)(x) & 0x1) << 3)
2577b8e80941Smrg#define   G_00B87C_RESERVED3(x)                                       (((x) >> 3) & 0x1)
2578b8e80941Smrg#define   C_00B87C_RESERVED3                                          0xFFFFFFF7
2579b8e80941Smrg#define   S_00B87C_RESERVED4(x)                                       (((unsigned)(x) & 0x1) << 4)
2580b8e80941Smrg#define   G_00B87C_RESERVED4(x)                                       (((x) >> 4) & 0x1)
2581b8e80941Smrg#define   C_00B87C_RESERVED4                                          0xFFFFFFEF
2582b8e80941Smrg#define   S_00B87C_WAVE_ID_BASE(x)                                    (((unsigned)(x) & 0xFFF) << 5)
2583b8e80941Smrg#define   G_00B87C_WAVE_ID_BASE(x)                                    (((x) >> 5) & 0xFFF)
2584b8e80941Smrg#define   C_00B87C_WAVE_ID_BASE                                       0xFFFE001F
2585b8e80941Smrg#define R_00B880_COMPUTE_DISPATCH_ID                                    0x00B880
2586b8e80941Smrg#define R_00B884_COMPUTE_THREADGROUP_ID                                 0x00B884
2587b8e80941Smrg#define R_00B888_COMPUTE_RELAUNCH                                       0x00B888
2588b8e80941Smrg#define   S_00B888_PAYLOAD(x)                                         (((unsigned)(x) & 0x3FFFFFFF) << 0)
2589b8e80941Smrg#define   G_00B888_PAYLOAD(x)                                         (((x) >> 0) & 0x3FFFFFFF)
2590b8e80941Smrg#define   C_00B888_PAYLOAD                                            0xC0000000
2591b8e80941Smrg#define   S_00B888_IS_EVENT(x)                                        (((unsigned)(x) & 0x1) << 30)
2592b8e80941Smrg#define   G_00B888_IS_EVENT(x)                                        (((x) >> 30) & 0x1)
2593b8e80941Smrg#define   C_00B888_IS_EVENT                                           0xBFFFFFFF
2594b8e80941Smrg#define   S_00B888_IS_STATE(x)                                        (((unsigned)(x) & 0x1) << 31)
2595b8e80941Smrg#define   G_00B888_IS_STATE(x)                                        (((x) >> 31) & 0x1)
2596b8e80941Smrg#define   C_00B888_IS_STATE                                           0x7FFFFFFF
2597b8e80941Smrg#define R_00B88C_COMPUTE_WAVE_RESTORE_ADDR_LO                           0x00B88C
2598b8e80941Smrg#define R_00B890_COMPUTE_WAVE_RESTORE_ADDR_HI                           0x00B890
2599b8e80941Smrg#define   S_00B890_ADDR(x)                                            (((unsigned)(x) & 0xFFFF) << 0)
2600b8e80941Smrg#define   G_00B890_ADDR(x)                                            (((x) >> 0) & 0xFFFF)
2601b8e80941Smrg#define   C_00B890_ADDR                                               0xFFFF0000
2602b8e80941Smrg#define R_00B900_COMPUTE_USER_DATA_0                                    0x00B900
2603b8e80941Smrg#define R_00B904_COMPUTE_USER_DATA_1                                    0x00B904
2604b8e80941Smrg#define R_00B908_COMPUTE_USER_DATA_2                                    0x00B908
2605b8e80941Smrg#define R_00B90C_COMPUTE_USER_DATA_3                                    0x00B90C
2606b8e80941Smrg#define R_00B910_COMPUTE_USER_DATA_4                                    0x00B910
2607b8e80941Smrg#define R_00B914_COMPUTE_USER_DATA_5                                    0x00B914
2608b8e80941Smrg#define R_00B918_COMPUTE_USER_DATA_6                                    0x00B918
2609b8e80941Smrg#define R_00B91C_COMPUTE_USER_DATA_7                                    0x00B91C
2610b8e80941Smrg#define R_00B920_COMPUTE_USER_DATA_8                                    0x00B920
2611b8e80941Smrg#define R_00B924_COMPUTE_USER_DATA_9                                    0x00B924
2612b8e80941Smrg#define R_00B928_COMPUTE_USER_DATA_10                                   0x00B928
2613b8e80941Smrg#define R_00B92C_COMPUTE_USER_DATA_11                                   0x00B92C
2614b8e80941Smrg#define R_00B930_COMPUTE_USER_DATA_12                                   0x00B930
2615b8e80941Smrg#define R_00B934_COMPUTE_USER_DATA_13                                   0x00B934
2616b8e80941Smrg#define R_00B938_COMPUTE_USER_DATA_14                                   0x00B938
2617b8e80941Smrg#define R_00B93C_COMPUTE_USER_DATA_15                                   0x00B93C
2618b8e80941Smrg#define R_00B9FC_COMPUTE_NOWHERE                                        0x00B9FC
2619b8e80941Smrg#define R_034000_CPG_PERFCOUNTER1_LO                                    0x034000
2620b8e80941Smrg#define R_034004_CPG_PERFCOUNTER1_HI                                    0x034004
2621b8e80941Smrg#define R_034008_CPG_PERFCOUNTER0_LO                                    0x034008
2622b8e80941Smrg#define R_03400C_CPG_PERFCOUNTER0_HI                                    0x03400C
2623b8e80941Smrg#define R_034010_CPC_PERFCOUNTER1_LO                                    0x034010
2624b8e80941Smrg#define R_034014_CPC_PERFCOUNTER1_HI                                    0x034014
2625b8e80941Smrg#define R_034018_CPC_PERFCOUNTER0_LO                                    0x034018
2626b8e80941Smrg#define R_03401C_CPC_PERFCOUNTER0_HI                                    0x03401C
2627b8e80941Smrg#define R_034020_CPF_PERFCOUNTER1_LO                                    0x034020
2628b8e80941Smrg#define R_034024_CPF_PERFCOUNTER1_HI                                    0x034024
2629b8e80941Smrg#define R_034028_CPF_PERFCOUNTER0_LO                                    0x034028
2630b8e80941Smrg#define R_03402C_CPF_PERFCOUNTER0_HI                                    0x03402C
2631b8e80941Smrg#define R_034030_CPF_LATENCY_STATS_DATA                                 0x034030
2632b8e80941Smrg#define R_034034_CPG_LATENCY_STATS_DATA                                 0x034034
2633b8e80941Smrg#define R_034038_CPC_LATENCY_STATS_DATA                                 0x034038
2634b8e80941Smrg#define R_034100_GRBM_PERFCOUNTER0_LO                                   0x034100
2635b8e80941Smrg#define R_034104_GRBM_PERFCOUNTER0_HI                                   0x034104
2636b8e80941Smrg#define R_03410C_GRBM_PERFCOUNTER1_LO                                   0x03410C
2637b8e80941Smrg#define R_034110_GRBM_PERFCOUNTER1_HI                                   0x034110
2638b8e80941Smrg#define R_034114_GRBM_SE0_PERFCOUNTER_LO                                0x034114
2639b8e80941Smrg#define R_034118_GRBM_SE0_PERFCOUNTER_HI                                0x034118
2640b8e80941Smrg#define R_03411C_GRBM_SE1_PERFCOUNTER_LO                                0x03411C
2641b8e80941Smrg#define R_034120_GRBM_SE1_PERFCOUNTER_HI                                0x034120
2642b8e80941Smrg#define R_034124_GRBM_SE2_PERFCOUNTER_LO                                0x034124
2643b8e80941Smrg#define R_034128_GRBM_SE2_PERFCOUNTER_HI                                0x034128
2644b8e80941Smrg#define R_03412C_GRBM_SE3_PERFCOUNTER_LO                                0x03412C
2645b8e80941Smrg#define R_034130_GRBM_SE3_PERFCOUNTER_HI                                0x034130
2646b8e80941Smrg#define R_034200_WD_PERFCOUNTER0_LO                                     0x034200
2647b8e80941Smrg#define R_034204_WD_PERFCOUNTER0_HI                                     0x034204
2648b8e80941Smrg#define R_034208_WD_PERFCOUNTER1_LO                                     0x034208
2649b8e80941Smrg#define R_03420C_WD_PERFCOUNTER1_HI                                     0x03420C
2650b8e80941Smrg#define R_034210_WD_PERFCOUNTER2_LO                                     0x034210
2651b8e80941Smrg#define R_034214_WD_PERFCOUNTER2_HI                                     0x034214
2652b8e80941Smrg#define R_034218_WD_PERFCOUNTER3_LO                                     0x034218
2653b8e80941Smrg#define R_03421C_WD_PERFCOUNTER3_HI                                     0x03421C
2654b8e80941Smrg#define R_034220_IA_PERFCOUNTER0_LO                                     0x034220
2655b8e80941Smrg#define R_034224_IA_PERFCOUNTER0_HI                                     0x034224
2656b8e80941Smrg#define R_034228_IA_PERFCOUNTER1_LO                                     0x034228
2657b8e80941Smrg#define R_03422C_IA_PERFCOUNTER1_HI                                     0x03422C
2658b8e80941Smrg#define R_034230_IA_PERFCOUNTER2_LO                                     0x034230
2659b8e80941Smrg#define R_034234_IA_PERFCOUNTER2_HI                                     0x034234
2660b8e80941Smrg#define R_034238_IA_PERFCOUNTER3_LO                                     0x034238
2661b8e80941Smrg#define R_03423C_IA_PERFCOUNTER3_HI                                     0x03423C
2662b8e80941Smrg#define R_034240_VGT_PERFCOUNTER0_LO                                    0x034240
2663b8e80941Smrg#define R_034244_VGT_PERFCOUNTER0_HI                                    0x034244
2664b8e80941Smrg#define R_034248_VGT_PERFCOUNTER1_LO                                    0x034248
2665b8e80941Smrg#define R_03424C_VGT_PERFCOUNTER1_HI                                    0x03424C
2666b8e80941Smrg#define R_034250_VGT_PERFCOUNTER2_LO                                    0x034250
2667b8e80941Smrg#define R_034254_VGT_PERFCOUNTER2_HI                                    0x034254
2668b8e80941Smrg#define R_034258_VGT_PERFCOUNTER3_LO                                    0x034258
2669b8e80941Smrg#define R_03425C_VGT_PERFCOUNTER3_HI                                    0x03425C
2670b8e80941Smrg#define R_034400_PA_SU_PERFCOUNTER0_LO                                  0x034400
2671b8e80941Smrg#define R_034404_PA_SU_PERFCOUNTER0_HI                                  0x034404
2672b8e80941Smrg#define   S_034404_PERFCOUNTER_HI(x)                                  (((unsigned)(x) & 0xFFFF) << 0)
2673b8e80941Smrg#define   G_034404_PERFCOUNTER_HI(x)                                  (((x) >> 0) & 0xFFFF)
2674b8e80941Smrg#define   C_034404_PERFCOUNTER_HI                                     0xFFFF0000
2675b8e80941Smrg#define R_034408_PA_SU_PERFCOUNTER1_LO                                  0x034408
2676b8e80941Smrg#define R_03440C_PA_SU_PERFCOUNTER1_HI                                  0x03440C
2677b8e80941Smrg#define R_034410_PA_SU_PERFCOUNTER2_LO                                  0x034410
2678b8e80941Smrg#define R_034414_PA_SU_PERFCOUNTER2_HI                                  0x034414
2679b8e80941Smrg#define R_034418_PA_SU_PERFCOUNTER3_LO                                  0x034418
2680b8e80941Smrg#define R_03441C_PA_SU_PERFCOUNTER3_HI                                  0x03441C
2681b8e80941Smrg#define R_034500_PA_SC_PERFCOUNTER0_LO                                  0x034500
2682b8e80941Smrg#define R_034504_PA_SC_PERFCOUNTER0_HI                                  0x034504
2683b8e80941Smrg#define R_034508_PA_SC_PERFCOUNTER1_LO                                  0x034508
2684b8e80941Smrg#define R_03450C_PA_SC_PERFCOUNTER1_HI                                  0x03450C
2685b8e80941Smrg#define R_034510_PA_SC_PERFCOUNTER2_LO                                  0x034510
2686b8e80941Smrg#define R_034514_PA_SC_PERFCOUNTER2_HI                                  0x034514
2687b8e80941Smrg#define R_034518_PA_SC_PERFCOUNTER3_LO                                  0x034518
2688b8e80941Smrg#define R_03451C_PA_SC_PERFCOUNTER3_HI                                  0x03451C
2689b8e80941Smrg#define R_034520_PA_SC_PERFCOUNTER4_LO                                  0x034520
2690b8e80941Smrg#define R_034524_PA_SC_PERFCOUNTER4_HI                                  0x034524
2691b8e80941Smrg#define R_034528_PA_SC_PERFCOUNTER5_LO                                  0x034528
2692b8e80941Smrg#define R_03452C_PA_SC_PERFCOUNTER5_HI                                  0x03452C
2693b8e80941Smrg#define R_034530_PA_SC_PERFCOUNTER6_LO                                  0x034530
2694b8e80941Smrg#define R_034534_PA_SC_PERFCOUNTER6_HI                                  0x034534
2695b8e80941Smrg#define R_034538_PA_SC_PERFCOUNTER7_LO                                  0x034538
2696b8e80941Smrg#define R_03453C_PA_SC_PERFCOUNTER7_HI                                  0x03453C
2697b8e80941Smrg#define R_034600_SPI_PERFCOUNTER0_HI                                    0x034600
2698b8e80941Smrg#define R_034604_SPI_PERFCOUNTER0_LO                                    0x034604
2699b8e80941Smrg#define R_034608_SPI_PERFCOUNTER1_HI                                    0x034608
2700b8e80941Smrg#define R_03460C_SPI_PERFCOUNTER1_LO                                    0x03460C
2701b8e80941Smrg#define R_034610_SPI_PERFCOUNTER2_HI                                    0x034610
2702b8e80941Smrg#define R_034614_SPI_PERFCOUNTER2_LO                                    0x034614
2703b8e80941Smrg#define R_034618_SPI_PERFCOUNTER3_HI                                    0x034618
2704b8e80941Smrg#define R_03461C_SPI_PERFCOUNTER3_LO                                    0x03461C
2705b8e80941Smrg#define R_034620_SPI_PERFCOUNTER4_HI                                    0x034620
2706b8e80941Smrg#define R_034624_SPI_PERFCOUNTER4_LO                                    0x034624
2707b8e80941Smrg#define R_034628_SPI_PERFCOUNTER5_HI                                    0x034628
2708b8e80941Smrg#define R_03462C_SPI_PERFCOUNTER5_LO                                    0x03462C
2709b8e80941Smrg#define R_034700_SQ_PERFCOUNTER0_LO                                     0x034700
2710b8e80941Smrg#define R_034704_SQ_PERFCOUNTER0_HI                                     0x034704
2711b8e80941Smrg#define R_034708_SQ_PERFCOUNTER1_LO                                     0x034708
2712b8e80941Smrg#define R_03470C_SQ_PERFCOUNTER1_HI                                     0x03470C
2713b8e80941Smrg#define R_034710_SQ_PERFCOUNTER2_LO                                     0x034710
2714b8e80941Smrg#define R_034714_SQ_PERFCOUNTER2_HI                                     0x034714
2715b8e80941Smrg#define R_034718_SQ_PERFCOUNTER3_LO                                     0x034718
2716b8e80941Smrg#define R_03471C_SQ_PERFCOUNTER3_HI                                     0x03471C
2717b8e80941Smrg#define R_034720_SQ_PERFCOUNTER4_LO                                     0x034720
2718b8e80941Smrg#define R_034724_SQ_PERFCOUNTER4_HI                                     0x034724
2719b8e80941Smrg#define R_034728_SQ_PERFCOUNTER5_LO                                     0x034728
2720b8e80941Smrg#define R_03472C_SQ_PERFCOUNTER5_HI                                     0x03472C
2721b8e80941Smrg#define R_034730_SQ_PERFCOUNTER6_LO                                     0x034730
2722b8e80941Smrg#define R_034734_SQ_PERFCOUNTER6_HI                                     0x034734
2723b8e80941Smrg#define R_034738_SQ_PERFCOUNTER7_LO                                     0x034738
2724b8e80941Smrg#define R_03473C_SQ_PERFCOUNTER7_HI                                     0x03473C
2725b8e80941Smrg#define R_034740_SQ_PERFCOUNTER8_LO                                     0x034740
2726b8e80941Smrg#define R_034744_SQ_PERFCOUNTER8_HI                                     0x034744
2727b8e80941Smrg#define R_034748_SQ_PERFCOUNTER9_LO                                     0x034748
2728b8e80941Smrg#define R_03474C_SQ_PERFCOUNTER9_HI                                     0x03474C
2729b8e80941Smrg#define R_034750_SQ_PERFCOUNTER10_LO                                    0x034750
2730b8e80941Smrg#define R_034754_SQ_PERFCOUNTER10_HI                                    0x034754
2731b8e80941Smrg#define R_034758_SQ_PERFCOUNTER11_LO                                    0x034758
2732b8e80941Smrg#define R_03475C_SQ_PERFCOUNTER11_HI                                    0x03475C
2733b8e80941Smrg#define R_034760_SQ_PERFCOUNTER12_LO                                    0x034760
2734b8e80941Smrg#define R_034764_SQ_PERFCOUNTER12_HI                                    0x034764
2735b8e80941Smrg#define R_034768_SQ_PERFCOUNTER13_LO                                    0x034768
2736b8e80941Smrg#define R_03476C_SQ_PERFCOUNTER13_HI                                    0x03476C
2737b8e80941Smrg#define R_034770_SQ_PERFCOUNTER14_LO                                    0x034770
2738b8e80941Smrg#define R_034774_SQ_PERFCOUNTER14_HI                                    0x034774
2739b8e80941Smrg#define R_034778_SQ_PERFCOUNTER15_LO                                    0x034778
2740b8e80941Smrg#define R_03477C_SQ_PERFCOUNTER15_HI                                    0x03477C
2741b8e80941Smrg#define R_034900_SX_PERFCOUNTER0_LO                                     0x034900
2742b8e80941Smrg#define R_034904_SX_PERFCOUNTER0_HI                                     0x034904
2743b8e80941Smrg#define R_034908_SX_PERFCOUNTER1_LO                                     0x034908
2744b8e80941Smrg#define R_03490C_SX_PERFCOUNTER1_HI                                     0x03490C
2745b8e80941Smrg#define R_034910_SX_PERFCOUNTER2_LO                                     0x034910
2746b8e80941Smrg#define R_034914_SX_PERFCOUNTER2_HI                                     0x034914
2747b8e80941Smrg#define R_034918_SX_PERFCOUNTER3_LO                                     0x034918
2748b8e80941Smrg#define R_03491C_SX_PERFCOUNTER3_HI                                     0x03491C
2749b8e80941Smrg#define R_034A00_GDS_PERFCOUNTER0_LO                                    0x034A00
2750b8e80941Smrg#define R_034A04_GDS_PERFCOUNTER0_HI                                    0x034A04
2751b8e80941Smrg#define R_034A08_GDS_PERFCOUNTER1_LO                                    0x034A08
2752b8e80941Smrg#define R_034A0C_GDS_PERFCOUNTER1_HI                                    0x034A0C
2753b8e80941Smrg#define R_034A10_GDS_PERFCOUNTER2_LO                                    0x034A10
2754b8e80941Smrg#define R_034A14_GDS_PERFCOUNTER2_HI                                    0x034A14
2755b8e80941Smrg#define R_034A18_GDS_PERFCOUNTER3_LO                                    0x034A18
2756b8e80941Smrg#define R_034A1C_GDS_PERFCOUNTER3_HI                                    0x034A1C
2757b8e80941Smrg#define R_034B00_TA_PERFCOUNTER0_LO                                     0x034B00
2758b8e80941Smrg#define R_034B04_TA_PERFCOUNTER0_HI                                     0x034B04
2759b8e80941Smrg#define R_034B08_TA_PERFCOUNTER1_LO                                     0x034B08
2760b8e80941Smrg#define R_034B0C_TA_PERFCOUNTER1_HI                                     0x034B0C
2761b8e80941Smrg#define R_034C00_TD_PERFCOUNTER0_LO                                     0x034C00
2762b8e80941Smrg#define R_034C04_TD_PERFCOUNTER0_HI                                     0x034C04
2763b8e80941Smrg#define R_034C08_TD_PERFCOUNTER1_LO                                     0x034C08
2764b8e80941Smrg#define R_034C0C_TD_PERFCOUNTER1_HI                                     0x034C0C
2765b8e80941Smrg#define R_034D00_TCP_PERFCOUNTER0_LO                                    0x034D00
2766b8e80941Smrg#define R_034D04_TCP_PERFCOUNTER0_HI                                    0x034D04
2767b8e80941Smrg#define R_034D08_TCP_PERFCOUNTER1_LO                                    0x034D08
2768b8e80941Smrg#define R_034D0C_TCP_PERFCOUNTER1_HI                                    0x034D0C
2769b8e80941Smrg#define R_034D10_TCP_PERFCOUNTER2_LO                                    0x034D10
2770b8e80941Smrg#define R_034D14_TCP_PERFCOUNTER2_HI                                    0x034D14
2771b8e80941Smrg#define R_034D18_TCP_PERFCOUNTER3_LO                                    0x034D18
2772b8e80941Smrg#define R_034D1C_TCP_PERFCOUNTER3_HI                                    0x034D1C
2773b8e80941Smrg#define R_034E00_TCC_PERFCOUNTER0_LO                                    0x034E00
2774b8e80941Smrg#define R_034E04_TCC_PERFCOUNTER0_HI                                    0x034E04
2775b8e80941Smrg#define R_034E08_TCC_PERFCOUNTER1_LO                                    0x034E08
2776b8e80941Smrg#define R_034E0C_TCC_PERFCOUNTER1_HI                                    0x034E0C
2777b8e80941Smrg#define R_034E10_TCC_PERFCOUNTER2_LO                                    0x034E10
2778b8e80941Smrg#define R_034E14_TCC_PERFCOUNTER2_HI                                    0x034E14
2779b8e80941Smrg#define R_034E18_TCC_PERFCOUNTER3_LO                                    0x034E18
2780b8e80941Smrg#define R_034E1C_TCC_PERFCOUNTER3_HI                                    0x034E1C
2781b8e80941Smrg#define R_034E40_TCA_PERFCOUNTER0_LO                                    0x034E40
2782b8e80941Smrg#define R_034E44_TCA_PERFCOUNTER0_HI                                    0x034E44
2783b8e80941Smrg#define R_034E48_TCA_PERFCOUNTER1_LO                                    0x034E48
2784b8e80941Smrg#define R_034E4C_TCA_PERFCOUNTER1_HI                                    0x034E4C
2785b8e80941Smrg#define R_034E50_TCA_PERFCOUNTER2_LO                                    0x034E50
2786b8e80941Smrg#define R_034E54_TCA_PERFCOUNTER2_HI                                    0x034E54
2787b8e80941Smrg#define R_034E58_TCA_PERFCOUNTER3_LO                                    0x034E58
2788b8e80941Smrg#define R_034E5C_TCA_PERFCOUNTER3_HI                                    0x034E5C
2789b8e80941Smrg#define R_035018_CB_PERFCOUNTER0_LO                                     0x035018
2790b8e80941Smrg#define R_03501C_CB_PERFCOUNTER0_HI                                     0x03501C
2791b8e80941Smrg#define R_035020_CB_PERFCOUNTER1_LO                                     0x035020
2792b8e80941Smrg#define R_035024_CB_PERFCOUNTER1_HI                                     0x035024
2793b8e80941Smrg#define R_035028_CB_PERFCOUNTER2_LO                                     0x035028
2794b8e80941Smrg#define R_03502C_CB_PERFCOUNTER2_HI                                     0x03502C
2795b8e80941Smrg#define R_035030_CB_PERFCOUNTER3_LO                                     0x035030
2796b8e80941Smrg#define R_035034_CB_PERFCOUNTER3_HI                                     0x035034
2797b8e80941Smrg#define R_035100_DB_PERFCOUNTER0_LO                                     0x035100
2798b8e80941Smrg#define R_035104_DB_PERFCOUNTER0_HI                                     0x035104
2799b8e80941Smrg#define R_035108_DB_PERFCOUNTER1_LO                                     0x035108
2800b8e80941Smrg#define R_03510C_DB_PERFCOUNTER1_HI                                     0x03510C
2801b8e80941Smrg#define R_035110_DB_PERFCOUNTER2_LO                                     0x035110
2802b8e80941Smrg#define R_035114_DB_PERFCOUNTER2_HI                                     0x035114
2803b8e80941Smrg#define R_035118_DB_PERFCOUNTER3_LO                                     0x035118
2804b8e80941Smrg#define R_03511C_DB_PERFCOUNTER3_HI                                     0x03511C
2805b8e80941Smrg#define R_036000_CPG_PERFCOUNTER1_SELECT                                0x036000
2806b8e80941Smrg#define R_036004_CPG_PERFCOUNTER0_SELECT1                               0x036004
2807b8e80941Smrg#define   S_036004_CNTR_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2808b8e80941Smrg#define   G_036004_CNTR_SEL2(x)                                       (((x) >> 0) & 0x3FF)
2809b8e80941Smrg#define   C_036004_CNTR_SEL2                                          0xFFFFFC00
2810b8e80941Smrg#define   S_036004_CNTR_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2811b8e80941Smrg#define   G_036004_CNTR_SEL3(x)                                       (((x) >> 10) & 0x3FF)
2812b8e80941Smrg#define   C_036004_CNTR_SEL3                                          0xFFF003FF
2813b8e80941Smrg#define   S_036004_CNTR_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
2814b8e80941Smrg#define   G_036004_CNTR_MODE3(x)                                      (((x) >> 24) & 0x0F)
2815b8e80941Smrg#define   C_036004_CNTR_MODE3                                         0xF0FFFFFF
2816b8e80941Smrg#define   S_036004_CNTR_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
2817b8e80941Smrg#define   G_036004_CNTR_MODE2(x)                                      (((x) >> 28) & 0x0F)
2818b8e80941Smrg#define   C_036004_CNTR_MODE2                                         0x0FFFFFFF
2819b8e80941Smrg#define R_036008_CPG_PERFCOUNTER0_SELECT                                0x036008
2820b8e80941Smrg#define   S_036008_CNTR_SEL0(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2821b8e80941Smrg#define   G_036008_CNTR_SEL0(x)                                       (((x) >> 0) & 0x3FF)
2822b8e80941Smrg#define   C_036008_CNTR_SEL0                                          0xFFFFFC00
2823b8e80941Smrg#define   S_036008_CNTR_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2824b8e80941Smrg#define   G_036008_CNTR_SEL1(x)                                       (((x) >> 10) & 0x3FF)
2825b8e80941Smrg#define   C_036008_CNTR_SEL1                                          0xFFF003FF
2826b8e80941Smrg#define   S_036008_SPM_MODE(x)                                        (((unsigned)(x) & 0x0F) << 20)
2827b8e80941Smrg#define   G_036008_SPM_MODE(x)                                        (((x) >> 20) & 0x0F)
2828b8e80941Smrg#define   C_036008_SPM_MODE                                           0xFF0FFFFF
2829b8e80941Smrg#define   S_036008_CNTR_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
2830b8e80941Smrg#define   G_036008_CNTR_MODE1(x)                                      (((x) >> 24) & 0x0F)
2831b8e80941Smrg#define   C_036008_CNTR_MODE1                                         0xF0FFFFFF
2832b8e80941Smrg#define   S_036008_CNTR_MODE0(x)                                      (((unsigned)(x) & 0x0F) << 28)
2833b8e80941Smrg#define   G_036008_CNTR_MODE0(x)                                      (((x) >> 28) & 0x0F)
2834b8e80941Smrg#define   C_036008_CNTR_MODE0                                         0x0FFFFFFF
2835b8e80941Smrg#define R_03600C_CPC_PERFCOUNTER1_SELECT                                0x03600C
2836b8e80941Smrg#define R_036010_CPC_PERFCOUNTER0_SELECT1                               0x036010
2837b8e80941Smrg#define   S_036010_CNTR_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2838b8e80941Smrg#define   G_036010_CNTR_SEL2(x)                                       (((x) >> 0) & 0x3FF)
2839b8e80941Smrg#define   C_036010_CNTR_SEL2                                          0xFFFFFC00
2840b8e80941Smrg#define   S_036010_CNTR_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2841b8e80941Smrg#define   G_036010_CNTR_SEL3(x)                                       (((x) >> 10) & 0x3FF)
2842b8e80941Smrg#define   C_036010_CNTR_SEL3                                          0xFFF003FF
2843b8e80941Smrg#define   S_036010_CNTR_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
2844b8e80941Smrg#define   G_036010_CNTR_MODE3(x)                                      (((x) >> 24) & 0x0F)
2845b8e80941Smrg#define   C_036010_CNTR_MODE3                                         0xF0FFFFFF
2846b8e80941Smrg#define   S_036010_CNTR_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
2847b8e80941Smrg#define   G_036010_CNTR_MODE2(x)                                      (((x) >> 28) & 0x0F)
2848b8e80941Smrg#define   C_036010_CNTR_MODE2                                         0x0FFFFFFF
2849b8e80941Smrg#define R_036014_CPF_PERFCOUNTER1_SELECT                                0x036014
2850b8e80941Smrg#define R_036018_CPF_PERFCOUNTER0_SELECT1                               0x036018
2851b8e80941Smrg#define   S_036018_CNTR_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2852b8e80941Smrg#define   G_036018_CNTR_SEL2(x)                                       (((x) >> 0) & 0x3FF)
2853b8e80941Smrg#define   C_036018_CNTR_SEL2                                          0xFFFFFC00
2854b8e80941Smrg#define   S_036018_CNTR_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2855b8e80941Smrg#define   G_036018_CNTR_SEL3(x)                                       (((x) >> 10) & 0x3FF)
2856b8e80941Smrg#define   C_036018_CNTR_SEL3                                          0xFFF003FF
2857b8e80941Smrg#define   S_036018_CNTR_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
2858b8e80941Smrg#define   G_036018_CNTR_MODE3(x)                                      (((x) >> 24) & 0x0F)
2859b8e80941Smrg#define   C_036018_CNTR_MODE3                                         0xF0FFFFFF
2860b8e80941Smrg#define   S_036018_CNTR_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
2861b8e80941Smrg#define   G_036018_CNTR_MODE2(x)                                      (((x) >> 28) & 0x0F)
2862b8e80941Smrg#define   C_036018_CNTR_MODE2                                         0x0FFFFFFF
2863b8e80941Smrg#define R_03601C_CPF_PERFCOUNTER0_SELECT                                0x03601C
2864b8e80941Smrg#define   S_03601C_CNTR_SEL0(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2865b8e80941Smrg#define   G_03601C_CNTR_SEL0(x)                                       (((x) >> 0) & 0x3FF)
2866b8e80941Smrg#define   C_03601C_CNTR_SEL0                                          0xFFFFFC00
2867b8e80941Smrg#define   S_03601C_CNTR_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2868b8e80941Smrg#define   G_03601C_CNTR_SEL1(x)                                       (((x) >> 10) & 0x3FF)
2869b8e80941Smrg#define   C_03601C_CNTR_SEL1                                          0xFFF003FF
2870b8e80941Smrg#define   S_03601C_SPM_MODE(x)                                        (((unsigned)(x) & 0x0F) << 20)
2871b8e80941Smrg#define   G_03601C_SPM_MODE(x)                                        (((x) >> 20) & 0x0F)
2872b8e80941Smrg#define   C_03601C_SPM_MODE                                           0xFF0FFFFF
2873b8e80941Smrg#define   S_03601C_CNTR_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
2874b8e80941Smrg#define   G_03601C_CNTR_MODE1(x)                                      (((x) >> 24) & 0x0F)
2875b8e80941Smrg#define   C_03601C_CNTR_MODE1                                         0xF0FFFFFF
2876b8e80941Smrg#define   S_03601C_CNTR_MODE0(x)                                      (((unsigned)(x) & 0x0F) << 28)
2877b8e80941Smrg#define   G_03601C_CNTR_MODE0(x)                                      (((x) >> 28) & 0x0F)
2878b8e80941Smrg#define   C_03601C_CNTR_MODE0                                         0x0FFFFFFF
2879b8e80941Smrg#define R_036020_CP_PERFMON_CNTL                                        0x036020
2880b8e80941Smrg#define   S_036020_PERFMON_STATE(x)                                   (((unsigned)(x) & 0x0F) << 0)
2881b8e80941Smrg#define   G_036020_PERFMON_STATE(x)                                   (((x) >> 0) & 0x0F)
2882b8e80941Smrg#define   C_036020_PERFMON_STATE                                      0xFFFFFFF0
2883b8e80941Smrg#define   S_036020_SPM_PERFMON_STATE(x)                               (((unsigned)(x) & 0x0F) << 4)
2884b8e80941Smrg#define   G_036020_SPM_PERFMON_STATE(x)                               (((x) >> 4) & 0x0F)
2885b8e80941Smrg#define   C_036020_SPM_PERFMON_STATE                                  0xFFFFFF0F
2886b8e80941Smrg#define   S_036020_PERFMON_ENABLE_MODE(x)                             (((unsigned)(x) & 0x03) << 8)
2887b8e80941Smrg#define   G_036020_PERFMON_ENABLE_MODE(x)                             (((x) >> 8) & 0x03)
2888b8e80941Smrg#define   C_036020_PERFMON_ENABLE_MODE                                0xFFFFFCFF
2889b8e80941Smrg#define   S_036020_PERFMON_SAMPLE_ENABLE(x)                           (((unsigned)(x) & 0x1) << 10)
2890b8e80941Smrg#define   G_036020_PERFMON_SAMPLE_ENABLE(x)                           (((x) >> 10) & 0x1)
2891b8e80941Smrg#define   C_036020_PERFMON_SAMPLE_ENABLE                              0xFFFFFBFF
2892b8e80941Smrg#define R_036024_CPC_PERFCOUNTER0_SELECT                                0x036024
2893b8e80941Smrg#define   S_036024_CNTR_SEL0(x)                                       (((unsigned)(x) & 0x3FF) << 0)
2894b8e80941Smrg#define   G_036024_CNTR_SEL0(x)                                       (((x) >> 0) & 0x3FF)
2895b8e80941Smrg#define   C_036024_CNTR_SEL0                                          0xFFFFFC00
2896b8e80941Smrg#define   S_036024_CNTR_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
2897b8e80941Smrg#define   G_036024_CNTR_SEL1(x)                                       (((x) >> 10) & 0x3FF)
2898b8e80941Smrg#define   C_036024_CNTR_SEL1                                          0xFFF003FF
2899b8e80941Smrg#define   S_036024_SPM_MODE(x)                                        (((unsigned)(x) & 0x0F) << 20)
2900b8e80941Smrg#define   G_036024_SPM_MODE(x)                                        (((x) >> 20) & 0x0F)
2901b8e80941Smrg#define   C_036024_SPM_MODE                                           0xFF0FFFFF
2902b8e80941Smrg#define   S_036024_CNTR_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
2903b8e80941Smrg#define   G_036024_CNTR_MODE1(x)                                      (((x) >> 24) & 0x0F)
2904b8e80941Smrg#define   C_036024_CNTR_MODE1                                         0xF0FFFFFF
2905b8e80941Smrg#define   S_036024_CNTR_MODE0(x)                                      (((unsigned)(x) & 0x0F) << 28)
2906b8e80941Smrg#define   G_036024_CNTR_MODE0(x)                                      (((x) >> 28) & 0x0F)
2907b8e80941Smrg#define   C_036024_CNTR_MODE0                                         0x0FFFFFFF
2908b8e80941Smrg#define R_036028_CPF_TC_PERF_COUNTER_WINDOW_SELECT                      0x036028
2909b8e80941Smrg#define   S_036028_INDEX(x)                                           (((unsigned)(x) & 0x07) << 0)
2910b8e80941Smrg#define   G_036028_INDEX(x)                                           (((x) >> 0) & 0x07)
2911b8e80941Smrg#define   C_036028_INDEX                                              0xFFFFFFF8
2912b8e80941Smrg#define   S_036028_ALWAYS(x)                                          (((unsigned)(x) & 0x1) << 30)
2913b8e80941Smrg#define   G_036028_ALWAYS(x)                                          (((x) >> 30) & 0x1)
2914b8e80941Smrg#define   C_036028_ALWAYS                                             0xBFFFFFFF
2915b8e80941Smrg#define   S_036028_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
2916b8e80941Smrg#define   G_036028_ENABLE(x)                                          (((x) >> 31) & 0x1)
2917b8e80941Smrg#define   C_036028_ENABLE                                             0x7FFFFFFF
2918b8e80941Smrg#define R_03602C_CPG_TC_PERF_COUNTER_WINDOW_SELECT                      0x03602C
2919b8e80941Smrg#define   S_03602C_INDEX(x)                                           (((unsigned)(x) & 0x1F) << 0)
2920b8e80941Smrg#define   G_03602C_INDEX(x)                                           (((x) >> 0) & 0x1F)
2921b8e80941Smrg#define   C_03602C_INDEX                                              0xFFFFFFE0
2922b8e80941Smrg#define   S_03602C_ALWAYS(x)                                          (((unsigned)(x) & 0x1) << 30)
2923b8e80941Smrg#define   G_03602C_ALWAYS(x)                                          (((x) >> 30) & 0x1)
2924b8e80941Smrg#define   C_03602C_ALWAYS                                             0xBFFFFFFF
2925b8e80941Smrg#define   S_03602C_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
2926b8e80941Smrg#define   G_03602C_ENABLE(x)                                          (((x) >> 31) & 0x1)
2927b8e80941Smrg#define   C_03602C_ENABLE                                             0x7FFFFFFF
2928b8e80941Smrg#define R_036030_CPF_LATENCY_STATS_SELECT                               0x036030
2929b8e80941Smrg#define   S_036030_INDEX(x)                                           (((unsigned)(x) & 0x0F) << 0)
2930b8e80941Smrg#define   G_036030_INDEX(x)                                           (((x) >> 0) & 0x0F)
2931b8e80941Smrg#define   C_036030_INDEX                                              0xFFFFFFF0
2932b8e80941Smrg#define   S_036030_CLEAR(x)                                           (((unsigned)(x) & 0x1) << 30)
2933b8e80941Smrg#define   G_036030_CLEAR(x)                                           (((x) >> 30) & 0x1)
2934b8e80941Smrg#define   C_036030_CLEAR                                              0xBFFFFFFF
2935b8e80941Smrg#define   S_036030_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
2936b8e80941Smrg#define   G_036030_ENABLE(x)                                          (((x) >> 31) & 0x1)
2937b8e80941Smrg#define   C_036030_ENABLE                                             0x7FFFFFFF
2938b8e80941Smrg#define R_036034_CPG_LATENCY_STATS_SELECT                               0x036034
2939b8e80941Smrg#define   S_036034_INDEX(x)                                           (((unsigned)(x) & 0x1F) << 0)
2940b8e80941Smrg#define   G_036034_INDEX(x)                                           (((x) >> 0) & 0x1F)
2941b8e80941Smrg#define   C_036034_INDEX                                              0xFFFFFFE0
2942b8e80941Smrg#define   S_036034_CLEAR(x)                                           (((unsigned)(x) & 0x1) << 30)
2943b8e80941Smrg#define   G_036034_CLEAR(x)                                           (((x) >> 30) & 0x1)
2944b8e80941Smrg#define   C_036034_CLEAR                                              0xBFFFFFFF
2945b8e80941Smrg#define   S_036034_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
2946b8e80941Smrg#define   G_036034_ENABLE(x)                                          (((x) >> 31) & 0x1)
2947b8e80941Smrg#define   C_036034_ENABLE                                             0x7FFFFFFF
2948b8e80941Smrg#define R_036038_CPC_LATENCY_STATS_SELECT                               0x036038
2949b8e80941Smrg#define   S_036038_INDEX(x)                                           (((unsigned)(x) & 0x07) << 0)
2950b8e80941Smrg#define   G_036038_INDEX(x)                                           (((x) >> 0) & 0x07)
2951b8e80941Smrg#define   C_036038_INDEX                                              0xFFFFFFF8
2952b8e80941Smrg#define   S_036038_CLEAR(x)                                           (((unsigned)(x) & 0x1) << 30)
2953b8e80941Smrg#define   G_036038_CLEAR(x)                                           (((x) >> 30) & 0x1)
2954b8e80941Smrg#define   C_036038_CLEAR                                              0xBFFFFFFF
2955b8e80941Smrg#define   S_036038_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
2956b8e80941Smrg#define   G_036038_ENABLE(x)                                          (((x) >> 31) & 0x1)
2957b8e80941Smrg#define   C_036038_ENABLE                                             0x7FFFFFFF
2958b8e80941Smrg#define R_036100_GRBM_PERFCOUNTER0_SELECT                               0x036100
2959b8e80941Smrg#define   S_036100_PERF_SEL(x)                                        (((unsigned)(x) & 0x3F) << 0)
2960b8e80941Smrg#define   G_036100_PERF_SEL(x)                                        (((x) >> 0) & 0x3F)
2961b8e80941Smrg#define   C_036100_PERF_SEL                                           0xFFFFFFC0
2962b8e80941Smrg#define   S_036100_DB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 10)
2963b8e80941Smrg#define   G_036100_DB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 10) & 0x1)
2964b8e80941Smrg#define   C_036100_DB_CLEAN_USER_DEFINED_MASK                         0xFFFFFBFF
2965b8e80941Smrg#define   S_036100_CB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 11)
2966b8e80941Smrg#define   G_036100_CB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 11) & 0x1)
2967b8e80941Smrg#define   C_036100_CB_CLEAN_USER_DEFINED_MASK                         0xFFFFF7FF
2968b8e80941Smrg#define   S_036100_VGT_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 12)
2969b8e80941Smrg#define   G_036100_VGT_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 12) & 0x1)
2970b8e80941Smrg#define   C_036100_VGT_BUSY_USER_DEFINED_MASK                         0xFFFFEFFF
2971b8e80941Smrg#define   S_036100_TA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 13)
2972b8e80941Smrg#define   G_036100_TA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 13) & 0x1)
2973b8e80941Smrg#define   C_036100_TA_BUSY_USER_DEFINED_MASK                          0xFFFFDFFF
2974b8e80941Smrg#define   S_036100_SX_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 14)
2975b8e80941Smrg#define   G_036100_SX_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 14) & 0x1)
2976b8e80941Smrg#define   C_036100_SX_BUSY_USER_DEFINED_MASK                          0xFFFFBFFF
2977b8e80941Smrg#define   S_036100_SPI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 16)
2978b8e80941Smrg#define   G_036100_SPI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 16) & 0x1)
2979b8e80941Smrg#define   C_036100_SPI_BUSY_USER_DEFINED_MASK                         0xFFFEFFFF
2980b8e80941Smrg#define   S_036100_SC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 17)
2981b8e80941Smrg#define   G_036100_SC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 17) & 0x1)
2982b8e80941Smrg#define   C_036100_SC_BUSY_USER_DEFINED_MASK                          0xFFFDFFFF
2983b8e80941Smrg#define   S_036100_PA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 18)
2984b8e80941Smrg#define   G_036100_PA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 18) & 0x1)
2985b8e80941Smrg#define   C_036100_PA_BUSY_USER_DEFINED_MASK                          0xFFFBFFFF
2986b8e80941Smrg#define   S_036100_GRBM_BUSY_USER_DEFINED_MASK(x)                     (((unsigned)(x) & 0x1) << 19)
2987b8e80941Smrg#define   G_036100_GRBM_BUSY_USER_DEFINED_MASK(x)                     (((x) >> 19) & 0x1)
2988b8e80941Smrg#define   C_036100_GRBM_BUSY_USER_DEFINED_MASK                        0xFFF7FFFF
2989b8e80941Smrg#define   S_036100_DB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 20)
2990b8e80941Smrg#define   G_036100_DB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 20) & 0x1)
2991b8e80941Smrg#define   C_036100_DB_BUSY_USER_DEFINED_MASK                          0xFFEFFFFF
2992b8e80941Smrg#define   S_036100_CB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 21)
2993b8e80941Smrg#define   G_036100_CB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 21) & 0x1)
2994b8e80941Smrg#define   C_036100_CB_BUSY_USER_DEFINED_MASK                          0xFFDFFFFF
2995b8e80941Smrg#define   S_036100_CP_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 22)
2996b8e80941Smrg#define   G_036100_CP_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 22) & 0x1)
2997b8e80941Smrg#define   C_036100_CP_BUSY_USER_DEFINED_MASK                          0xFFBFFFFF
2998b8e80941Smrg#define   S_036100_IA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 23)
2999b8e80941Smrg#define   G_036100_IA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 23) & 0x1)
3000b8e80941Smrg#define   C_036100_IA_BUSY_USER_DEFINED_MASK                          0xFF7FFFFF
3001b8e80941Smrg#define   S_036100_GDS_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 24)
3002b8e80941Smrg#define   G_036100_GDS_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 24) & 0x1)
3003b8e80941Smrg#define   C_036100_GDS_BUSY_USER_DEFINED_MASK                         0xFEFFFFFF
3004b8e80941Smrg#define   S_036100_BCI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 25)
3005b8e80941Smrg#define   G_036100_BCI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 25) & 0x1)
3006b8e80941Smrg#define   C_036100_BCI_BUSY_USER_DEFINED_MASK                         0xFDFFFFFF
3007b8e80941Smrg#define   S_036100_RLC_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 26)
3008b8e80941Smrg#define   G_036100_RLC_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 26) & 0x1)
3009b8e80941Smrg#define   C_036100_RLC_BUSY_USER_DEFINED_MASK                         0xFBFFFFFF
3010b8e80941Smrg#define   S_036100_TC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 27)
3011b8e80941Smrg#define   G_036100_TC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 27) & 0x1)
3012b8e80941Smrg#define   C_036100_TC_BUSY_USER_DEFINED_MASK                          0xF7FFFFFF
3013b8e80941Smrg#define   S_036100_WD_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 28)
3014b8e80941Smrg#define   G_036100_WD_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 28) & 0x1)
3015b8e80941Smrg#define   C_036100_WD_BUSY_USER_DEFINED_MASK                          0xEFFFFFFF
3016b8e80941Smrg#define   S_036100_UTCL2_BUSY_USER_DEFINED_MASK(x)                    (((unsigned)(x) & 0x1) << 29)
3017b8e80941Smrg#define   G_036100_UTCL2_BUSY_USER_DEFINED_MASK(x)                    (((x) >> 29) & 0x1)
3018b8e80941Smrg#define   C_036100_UTCL2_BUSY_USER_DEFINED_MASK                       0xDFFFFFFF
3019b8e80941Smrg#define   S_036100_EA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 30)
3020b8e80941Smrg#define   G_036100_EA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 30) & 0x1)
3021b8e80941Smrg#define   C_036100_EA_BUSY_USER_DEFINED_MASK                          0xBFFFFFFF
3022b8e80941Smrg#define   S_036100_RMI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 31)
3023b8e80941Smrg#define   G_036100_RMI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 31) & 0x1)
3024b8e80941Smrg#define   C_036100_RMI_BUSY_USER_DEFINED_MASK                         0x7FFFFFFF
3025b8e80941Smrg#define R_036104_GRBM_PERFCOUNTER1_SELECT                               0x036104
3026b8e80941Smrg#define R_036108_GRBM_SE0_PERFCOUNTER_SELECT                            0x036108
3027b8e80941Smrg#define   S_036108_PERF_SEL(x)                                        (((unsigned)(x) & 0x3F) << 0)
3028b8e80941Smrg#define   G_036108_PERF_SEL(x)                                        (((x) >> 0) & 0x3F)
3029b8e80941Smrg#define   C_036108_PERF_SEL                                           0xFFFFFFC0
3030b8e80941Smrg#define   S_036108_DB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 10)
3031b8e80941Smrg#define   G_036108_DB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 10) & 0x1)
3032b8e80941Smrg#define   C_036108_DB_CLEAN_USER_DEFINED_MASK                         0xFFFFFBFF
3033b8e80941Smrg#define   S_036108_CB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 11)
3034b8e80941Smrg#define   G_036108_CB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 11) & 0x1)
3035b8e80941Smrg#define   C_036108_CB_CLEAN_USER_DEFINED_MASK                         0xFFFFF7FF
3036b8e80941Smrg#define   S_036108_TA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 12)
3037b8e80941Smrg#define   G_036108_TA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 12) & 0x1)
3038b8e80941Smrg#define   C_036108_TA_BUSY_USER_DEFINED_MASK                          0xFFFFEFFF
3039b8e80941Smrg#define   S_036108_SX_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 13)
3040b8e80941Smrg#define   G_036108_SX_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 13) & 0x1)
3041b8e80941Smrg#define   C_036108_SX_BUSY_USER_DEFINED_MASK                          0xFFFFDFFF
3042b8e80941Smrg#define   S_036108_SPI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 15)
3043b8e80941Smrg#define   G_036108_SPI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 15) & 0x1)
3044b8e80941Smrg#define   C_036108_SPI_BUSY_USER_DEFINED_MASK                         0xFFFF7FFF
3045b8e80941Smrg#define   S_036108_SC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 16)
3046b8e80941Smrg#define   G_036108_SC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 16) & 0x1)
3047b8e80941Smrg#define   C_036108_SC_BUSY_USER_DEFINED_MASK                          0xFFFEFFFF
3048b8e80941Smrg#define   S_036108_DB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 17)
3049b8e80941Smrg#define   G_036108_DB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 17) & 0x1)
3050b8e80941Smrg#define   C_036108_DB_BUSY_USER_DEFINED_MASK                          0xFFFDFFFF
3051b8e80941Smrg#define   S_036108_CB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 18)
3052b8e80941Smrg#define   G_036108_CB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 18) & 0x1)
3053b8e80941Smrg#define   C_036108_CB_BUSY_USER_DEFINED_MASK                          0xFFFBFFFF
3054b8e80941Smrg#define   S_036108_VGT_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 19)
3055b8e80941Smrg#define   G_036108_VGT_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 19) & 0x1)
3056b8e80941Smrg#define   C_036108_VGT_BUSY_USER_DEFINED_MASK                         0xFFF7FFFF
3057b8e80941Smrg#define   S_036108_PA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 20)
3058b8e80941Smrg#define   G_036108_PA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 20) & 0x1)
3059b8e80941Smrg#define   C_036108_PA_BUSY_USER_DEFINED_MASK                          0xFFEFFFFF
3060b8e80941Smrg#define   S_036108_BCI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 21)
3061b8e80941Smrg#define   G_036108_BCI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 21) & 0x1)
3062b8e80941Smrg#define   C_036108_BCI_BUSY_USER_DEFINED_MASK                         0xFFDFFFFF
3063b8e80941Smrg#define   S_036108_RMI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 22)
3064b8e80941Smrg#define   G_036108_RMI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 22) & 0x1)
3065b8e80941Smrg#define   C_036108_RMI_BUSY_USER_DEFINED_MASK                         0xFFBFFFFF
3066b8e80941Smrg#define R_03610C_GRBM_SE1_PERFCOUNTER_SELECT                            0x03610C
3067b8e80941Smrg#define   S_03610C_PERF_SEL(x)                                        (((unsigned)(x) & 0x3F) << 0)
3068b8e80941Smrg#define   G_03610C_PERF_SEL(x)                                        (((x) >> 0) & 0x3F)
3069b8e80941Smrg#define   C_03610C_PERF_SEL                                           0xFFFFFFC0
3070b8e80941Smrg#define   S_03610C_DB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 10)
3071b8e80941Smrg#define   G_03610C_DB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 10) & 0x1)
3072b8e80941Smrg#define   C_03610C_DB_CLEAN_USER_DEFINED_MASK                         0xFFFFFBFF
3073b8e80941Smrg#define   S_03610C_CB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 11)
3074b8e80941Smrg#define   G_03610C_CB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 11) & 0x1)
3075b8e80941Smrg#define   C_03610C_CB_CLEAN_USER_DEFINED_MASK                         0xFFFFF7FF
3076b8e80941Smrg#define   S_03610C_TA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 12)
3077b8e80941Smrg#define   G_03610C_TA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 12) & 0x1)
3078b8e80941Smrg#define   C_03610C_TA_BUSY_USER_DEFINED_MASK                          0xFFFFEFFF
3079b8e80941Smrg#define   S_03610C_SX_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 13)
3080b8e80941Smrg#define   G_03610C_SX_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 13) & 0x1)
3081b8e80941Smrg#define   C_03610C_SX_BUSY_USER_DEFINED_MASK                          0xFFFFDFFF
3082b8e80941Smrg#define   S_03610C_SPI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 15)
3083b8e80941Smrg#define   G_03610C_SPI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 15) & 0x1)
3084b8e80941Smrg#define   C_03610C_SPI_BUSY_USER_DEFINED_MASK                         0xFFFF7FFF
3085b8e80941Smrg#define   S_03610C_SC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 16)
3086b8e80941Smrg#define   G_03610C_SC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 16) & 0x1)
3087b8e80941Smrg#define   C_03610C_SC_BUSY_USER_DEFINED_MASK                          0xFFFEFFFF
3088b8e80941Smrg#define   S_03610C_DB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 17)
3089b8e80941Smrg#define   G_03610C_DB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 17) & 0x1)
3090b8e80941Smrg#define   C_03610C_DB_BUSY_USER_DEFINED_MASK                          0xFFFDFFFF
3091b8e80941Smrg#define   S_03610C_CB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 18)
3092b8e80941Smrg#define   G_03610C_CB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 18) & 0x1)
3093b8e80941Smrg#define   C_03610C_CB_BUSY_USER_DEFINED_MASK                          0xFFFBFFFF
3094b8e80941Smrg#define   S_03610C_VGT_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 19)
3095b8e80941Smrg#define   G_03610C_VGT_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 19) & 0x1)
3096b8e80941Smrg#define   C_03610C_VGT_BUSY_USER_DEFINED_MASK                         0xFFF7FFFF
3097b8e80941Smrg#define   S_03610C_PA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 20)
3098b8e80941Smrg#define   G_03610C_PA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 20) & 0x1)
3099b8e80941Smrg#define   C_03610C_PA_BUSY_USER_DEFINED_MASK                          0xFFEFFFFF
3100b8e80941Smrg#define   S_03610C_BCI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 21)
3101b8e80941Smrg#define   G_03610C_BCI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 21) & 0x1)
3102b8e80941Smrg#define   C_03610C_BCI_BUSY_USER_DEFINED_MASK                         0xFFDFFFFF
3103b8e80941Smrg#define   S_03610C_RMI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 22)
3104b8e80941Smrg#define   G_03610C_RMI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 22) & 0x1)
3105b8e80941Smrg#define   C_03610C_RMI_BUSY_USER_DEFINED_MASK                         0xFFBFFFFF
3106b8e80941Smrg#define R_036110_GRBM_SE2_PERFCOUNTER_SELECT                            0x036110
3107b8e80941Smrg#define   S_036110_PERF_SEL(x)                                        (((unsigned)(x) & 0x3F) << 0)
3108b8e80941Smrg#define   G_036110_PERF_SEL(x)                                        (((x) >> 0) & 0x3F)
3109b8e80941Smrg#define   C_036110_PERF_SEL                                           0xFFFFFFC0
3110b8e80941Smrg#define   S_036110_DB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 10)
3111b8e80941Smrg#define   G_036110_DB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 10) & 0x1)
3112b8e80941Smrg#define   C_036110_DB_CLEAN_USER_DEFINED_MASK                         0xFFFFFBFF
3113b8e80941Smrg#define   S_036110_CB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 11)
3114b8e80941Smrg#define   G_036110_CB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 11) & 0x1)
3115b8e80941Smrg#define   C_036110_CB_CLEAN_USER_DEFINED_MASK                         0xFFFFF7FF
3116b8e80941Smrg#define   S_036110_TA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 12)
3117b8e80941Smrg#define   G_036110_TA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 12) & 0x1)
3118b8e80941Smrg#define   C_036110_TA_BUSY_USER_DEFINED_MASK                          0xFFFFEFFF
3119b8e80941Smrg#define   S_036110_SX_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 13)
3120b8e80941Smrg#define   G_036110_SX_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 13) & 0x1)
3121b8e80941Smrg#define   C_036110_SX_BUSY_USER_DEFINED_MASK                          0xFFFFDFFF
3122b8e80941Smrg#define   S_036110_SPI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 15)
3123b8e80941Smrg#define   G_036110_SPI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 15) & 0x1)
3124b8e80941Smrg#define   C_036110_SPI_BUSY_USER_DEFINED_MASK                         0xFFFF7FFF
3125b8e80941Smrg#define   S_036110_SC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 16)
3126b8e80941Smrg#define   G_036110_SC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 16) & 0x1)
3127b8e80941Smrg#define   C_036110_SC_BUSY_USER_DEFINED_MASK                          0xFFFEFFFF
3128b8e80941Smrg#define   S_036110_DB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 17)
3129b8e80941Smrg#define   G_036110_DB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 17) & 0x1)
3130b8e80941Smrg#define   C_036110_DB_BUSY_USER_DEFINED_MASK                          0xFFFDFFFF
3131b8e80941Smrg#define   S_036110_CB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 18)
3132b8e80941Smrg#define   G_036110_CB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 18) & 0x1)
3133b8e80941Smrg#define   C_036110_CB_BUSY_USER_DEFINED_MASK                          0xFFFBFFFF
3134b8e80941Smrg#define   S_036110_VGT_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 19)
3135b8e80941Smrg#define   G_036110_VGT_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 19) & 0x1)
3136b8e80941Smrg#define   C_036110_VGT_BUSY_USER_DEFINED_MASK                         0xFFF7FFFF
3137b8e80941Smrg#define   S_036110_PA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 20)
3138b8e80941Smrg#define   G_036110_PA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 20) & 0x1)
3139b8e80941Smrg#define   C_036110_PA_BUSY_USER_DEFINED_MASK                          0xFFEFFFFF
3140b8e80941Smrg#define   S_036110_BCI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 21)
3141b8e80941Smrg#define   G_036110_BCI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 21) & 0x1)
3142b8e80941Smrg#define   C_036110_BCI_BUSY_USER_DEFINED_MASK                         0xFFDFFFFF
3143b8e80941Smrg#define   S_036110_RMI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 22)
3144b8e80941Smrg#define   G_036110_RMI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 22) & 0x1)
3145b8e80941Smrg#define   C_036110_RMI_BUSY_USER_DEFINED_MASK                         0xFFBFFFFF
3146b8e80941Smrg#define R_036114_GRBM_SE3_PERFCOUNTER_SELECT                            0x036114
3147b8e80941Smrg#define   S_036114_PERF_SEL(x)                                        (((unsigned)(x) & 0x3F) << 0)
3148b8e80941Smrg#define   G_036114_PERF_SEL(x)                                        (((x) >> 0) & 0x3F)
3149b8e80941Smrg#define   C_036114_PERF_SEL                                           0xFFFFFFC0
3150b8e80941Smrg#define   S_036114_DB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 10)
3151b8e80941Smrg#define   G_036114_DB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 10) & 0x1)
3152b8e80941Smrg#define   C_036114_DB_CLEAN_USER_DEFINED_MASK                         0xFFFFFBFF
3153b8e80941Smrg#define   S_036114_CB_CLEAN_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 11)
3154b8e80941Smrg#define   G_036114_CB_CLEAN_USER_DEFINED_MASK(x)                      (((x) >> 11) & 0x1)
3155b8e80941Smrg#define   C_036114_CB_CLEAN_USER_DEFINED_MASK                         0xFFFFF7FF
3156b8e80941Smrg#define   S_036114_TA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 12)
3157b8e80941Smrg#define   G_036114_TA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 12) & 0x1)
3158b8e80941Smrg#define   C_036114_TA_BUSY_USER_DEFINED_MASK                          0xFFFFEFFF
3159b8e80941Smrg#define   S_036114_SX_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 13)
3160b8e80941Smrg#define   G_036114_SX_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 13) & 0x1)
3161b8e80941Smrg#define   C_036114_SX_BUSY_USER_DEFINED_MASK                          0xFFFFDFFF
3162b8e80941Smrg#define   S_036114_SPI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 15)
3163b8e80941Smrg#define   G_036114_SPI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 15) & 0x1)
3164b8e80941Smrg#define   C_036114_SPI_BUSY_USER_DEFINED_MASK                         0xFFFF7FFF
3165b8e80941Smrg#define   S_036114_SC_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 16)
3166b8e80941Smrg#define   G_036114_SC_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 16) & 0x1)
3167b8e80941Smrg#define   C_036114_SC_BUSY_USER_DEFINED_MASK                          0xFFFEFFFF
3168b8e80941Smrg#define   S_036114_DB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 17)
3169b8e80941Smrg#define   G_036114_DB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 17) & 0x1)
3170b8e80941Smrg#define   C_036114_DB_BUSY_USER_DEFINED_MASK                          0xFFFDFFFF
3171b8e80941Smrg#define   S_036114_CB_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 18)
3172b8e80941Smrg#define   G_036114_CB_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 18) & 0x1)
3173b8e80941Smrg#define   C_036114_CB_BUSY_USER_DEFINED_MASK                          0xFFFBFFFF
3174b8e80941Smrg#define   S_036114_VGT_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 19)
3175b8e80941Smrg#define   G_036114_VGT_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 19) & 0x1)
3176b8e80941Smrg#define   C_036114_VGT_BUSY_USER_DEFINED_MASK                         0xFFF7FFFF
3177b8e80941Smrg#define   S_036114_PA_BUSY_USER_DEFINED_MASK(x)                       (((unsigned)(x) & 0x1) << 20)
3178b8e80941Smrg#define   G_036114_PA_BUSY_USER_DEFINED_MASK(x)                       (((x) >> 20) & 0x1)
3179b8e80941Smrg#define   C_036114_PA_BUSY_USER_DEFINED_MASK                          0xFFEFFFFF
3180b8e80941Smrg#define   S_036114_BCI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 21)
3181b8e80941Smrg#define   G_036114_BCI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 21) & 0x1)
3182b8e80941Smrg#define   C_036114_BCI_BUSY_USER_DEFINED_MASK                         0xFFDFFFFF
3183b8e80941Smrg#define   S_036114_RMI_BUSY_USER_DEFINED_MASK(x)                      (((unsigned)(x) & 0x1) << 22)
3184b8e80941Smrg#define   G_036114_RMI_BUSY_USER_DEFINED_MASK(x)                      (((x) >> 22) & 0x1)
3185b8e80941Smrg#define   C_036114_RMI_BUSY_USER_DEFINED_MASK                         0xFFBFFFFF
3186b8e80941Smrg#define R_036200_WD_PERFCOUNTER0_SELECT                                 0x036200
3187b8e80941Smrg#define   S_036200_PERF_SEL(x)                                        (((unsigned)(x) & 0xFF) << 0)
3188b8e80941Smrg#define   G_036200_PERF_SEL(x)                                        (((x) >> 0) & 0xFF)
3189b8e80941Smrg#define   C_036200_PERF_SEL                                           0xFFFFFF00
3190b8e80941Smrg#define   S_036200_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3191b8e80941Smrg#define   G_036200_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3192b8e80941Smrg#define   C_036200_PERF_MODE                                          0x0FFFFFFF
3193b8e80941Smrg#define R_036204_WD_PERFCOUNTER1_SELECT                                 0x036204
3194b8e80941Smrg#define R_036208_WD_PERFCOUNTER2_SELECT                                 0x036208
3195b8e80941Smrg#define R_03620C_WD_PERFCOUNTER3_SELECT                                 0x03620C
3196b8e80941Smrg#define R_036210_IA_PERFCOUNTER0_SELECT                                 0x036210
3197b8e80941Smrg#define   S_036210_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3198b8e80941Smrg#define   G_036210_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3199b8e80941Smrg#define   C_036210_PERF_SEL                                           0xFFFFFC00
3200b8e80941Smrg#define   S_036210_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3201b8e80941Smrg#define   G_036210_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3202b8e80941Smrg#define   C_036210_PERF_SEL1                                          0xFFF003FF
3203b8e80941Smrg#define   S_036210_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3204b8e80941Smrg#define   G_036210_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3205b8e80941Smrg#define   C_036210_CNTR_MODE                                          0xFF0FFFFF
3206b8e80941Smrg#define   S_036210_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3207b8e80941Smrg#define   G_036210_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3208b8e80941Smrg#define   C_036210_PERF_MODE1                                         0xF0FFFFFF
3209b8e80941Smrg#define   S_036210_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3210b8e80941Smrg#define   G_036210_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3211b8e80941Smrg#define   C_036210_PERF_MODE                                          0x0FFFFFFF
3212b8e80941Smrg#define R_036214_IA_PERFCOUNTER1_SELECT                                 0x036214
3213b8e80941Smrg#define R_036218_IA_PERFCOUNTER2_SELECT                                 0x036218
3214b8e80941Smrg#define R_03621C_IA_PERFCOUNTER3_SELECT                                 0x03621C
3215b8e80941Smrg#define R_036220_IA_PERFCOUNTER0_SELECT1                                0x036220
3216b8e80941Smrg#define   S_036220_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3217b8e80941Smrg#define   G_036220_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3218b8e80941Smrg#define   C_036220_PERF_SEL2                                          0xFFFFFC00
3219b8e80941Smrg#define   S_036220_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3220b8e80941Smrg#define   G_036220_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3221b8e80941Smrg#define   C_036220_PERF_SEL3                                          0xFFF003FF
3222b8e80941Smrg#define   S_036220_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3223b8e80941Smrg#define   G_036220_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3224b8e80941Smrg#define   C_036220_PERF_MODE3                                         0xF0FFFFFF
3225b8e80941Smrg#define   S_036220_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3226b8e80941Smrg#define   G_036220_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3227b8e80941Smrg#define   C_036220_PERF_MODE2                                         0x0FFFFFFF
3228b8e80941Smrg#define R_036230_VGT_PERFCOUNTER0_SELECT                                0x036230
3229b8e80941Smrg#define   S_036230_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3230b8e80941Smrg#define   G_036230_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3231b8e80941Smrg#define   C_036230_PERF_SEL                                           0xFFFFFC00
3232b8e80941Smrg#define   S_036230_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3233b8e80941Smrg#define   G_036230_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3234b8e80941Smrg#define   C_036230_PERF_SEL1                                          0xFFF003FF
3235b8e80941Smrg#define   S_036230_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3236b8e80941Smrg#define   G_036230_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3237b8e80941Smrg#define   C_036230_CNTR_MODE                                          0xFF0FFFFF
3238b8e80941Smrg#define   S_036230_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3239b8e80941Smrg#define   G_036230_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3240b8e80941Smrg#define   C_036230_PERF_MODE1                                         0xF0FFFFFF
3241b8e80941Smrg#define   S_036230_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3242b8e80941Smrg#define   G_036230_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3243b8e80941Smrg#define   C_036230_PERF_MODE                                          0x0FFFFFFF
3244b8e80941Smrg#define R_036234_VGT_PERFCOUNTER1_SELECT                                0x036234
3245b8e80941Smrg#define R_036238_VGT_PERFCOUNTER2_SELECT                                0x036238
3246b8e80941Smrg#define R_03623C_VGT_PERFCOUNTER3_SELECT                                0x03623C
3247b8e80941Smrg#define R_036240_VGT_PERFCOUNTER0_SELECT1                               0x036240
3248b8e80941Smrg#define   S_036240_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3249b8e80941Smrg#define   G_036240_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3250b8e80941Smrg#define   C_036240_PERF_SEL2                                          0xFFFFFC00
3251b8e80941Smrg#define   S_036240_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3252b8e80941Smrg#define   G_036240_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3253b8e80941Smrg#define   C_036240_PERF_SEL3                                          0xFFF003FF
3254b8e80941Smrg#define   S_036240_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3255b8e80941Smrg#define   G_036240_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3256b8e80941Smrg#define   C_036240_PERF_MODE3                                         0xF0FFFFFF
3257b8e80941Smrg#define   S_036240_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3258b8e80941Smrg#define   G_036240_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3259b8e80941Smrg#define   C_036240_PERF_MODE2                                         0x0FFFFFFF
3260b8e80941Smrg#define R_036244_VGT_PERFCOUNTER1_SELECT1                               0x036244
3261b8e80941Smrg#define R_036250_VGT_PERFCOUNTER_SEID_MASK                              0x036250
3262b8e80941Smrg#define   S_036250_PERF_SEID_IGNORE_MASK(x)                           (((unsigned)(x) & 0xFF) << 0)
3263b8e80941Smrg#define   G_036250_PERF_SEID_IGNORE_MASK(x)                           (((x) >> 0) & 0xFF)
3264b8e80941Smrg#define   C_036250_PERF_SEID_IGNORE_MASK                              0xFFFFFF00
3265b8e80941Smrg#define R_036400_PA_SU_PERFCOUNTER0_SELECT                              0x036400
3266b8e80941Smrg#define   S_036400_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3267b8e80941Smrg#define   G_036400_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3268b8e80941Smrg#define   C_036400_PERF_SEL                                           0xFFFFFC00
3269b8e80941Smrg#define   S_036400_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3270b8e80941Smrg#define   G_036400_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3271b8e80941Smrg#define   C_036400_PERF_SEL1                                          0xFFF003FF
3272b8e80941Smrg#define   S_036400_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3273b8e80941Smrg#define   G_036400_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3274b8e80941Smrg#define   C_036400_CNTR_MODE                                          0xFF0FFFFF
3275b8e80941Smrg#define R_036404_PA_SU_PERFCOUNTER0_SELECT1                             0x036404
3276b8e80941Smrg#define   S_036404_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3277b8e80941Smrg#define   G_036404_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3278b8e80941Smrg#define   C_036404_PERF_SEL2                                          0xFFFFFC00
3279b8e80941Smrg#define   S_036404_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3280b8e80941Smrg#define   G_036404_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3281b8e80941Smrg#define   C_036404_PERF_SEL3                                          0xFFF003FF
3282b8e80941Smrg#define R_036408_PA_SU_PERFCOUNTER1_SELECT                              0x036408
3283b8e80941Smrg#define R_03640C_PA_SU_PERFCOUNTER1_SELECT1                             0x03640C
3284b8e80941Smrg#define R_036410_PA_SU_PERFCOUNTER2_SELECT                              0x036410
3285b8e80941Smrg#define R_036414_PA_SU_PERFCOUNTER3_SELECT                              0x036414
3286b8e80941Smrg#define R_036500_PA_SC_PERFCOUNTER0_SELECT                              0x036500
3287b8e80941Smrg#define   S_036500_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3288b8e80941Smrg#define   G_036500_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3289b8e80941Smrg#define   C_036500_PERF_SEL                                           0xFFFFFC00
3290b8e80941Smrg#define   S_036500_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3291b8e80941Smrg#define   G_036500_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3292b8e80941Smrg#define   C_036500_PERF_SEL1                                          0xFFF003FF
3293b8e80941Smrg#define   S_036500_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3294b8e80941Smrg#define   G_036500_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3295b8e80941Smrg#define   C_036500_CNTR_MODE                                          0xFF0FFFFF
3296b8e80941Smrg#define R_036504_PA_SC_PERFCOUNTER0_SELECT1                             0x036504
3297b8e80941Smrg#define   S_036504_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3298b8e80941Smrg#define   G_036504_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3299b8e80941Smrg#define   C_036504_PERF_SEL2                                          0xFFFFFC00
3300b8e80941Smrg#define   S_036504_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3301b8e80941Smrg#define   G_036504_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3302b8e80941Smrg#define   C_036504_PERF_SEL3                                          0xFFF003FF
3303b8e80941Smrg#define R_036508_PA_SC_PERFCOUNTER1_SELECT                              0x036508
3304b8e80941Smrg#define R_03650C_PA_SC_PERFCOUNTER2_SELECT                              0x03650C
3305b8e80941Smrg#define R_036510_PA_SC_PERFCOUNTER3_SELECT                              0x036510
3306b8e80941Smrg#define R_036514_PA_SC_PERFCOUNTER4_SELECT                              0x036514
3307b8e80941Smrg#define R_036518_PA_SC_PERFCOUNTER5_SELECT                              0x036518
3308b8e80941Smrg#define R_03651C_PA_SC_PERFCOUNTER6_SELECT                              0x03651C
3309b8e80941Smrg#define R_036520_PA_SC_PERFCOUNTER7_SELECT                              0x036520
3310b8e80941Smrg#define R_036600_SPI_PERFCOUNTER0_SELECT                                0x036600
3311b8e80941Smrg#define   S_036600_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3312b8e80941Smrg#define   G_036600_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3313b8e80941Smrg#define   C_036600_PERF_SEL                                           0xFFFFFC00
3314b8e80941Smrg#define   S_036600_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3315b8e80941Smrg#define   G_036600_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3316b8e80941Smrg#define   C_036600_PERF_SEL1                                          0xFFF003FF
3317b8e80941Smrg#define   S_036600_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3318b8e80941Smrg#define   G_036600_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3319b8e80941Smrg#define   C_036600_CNTR_MODE                                          0xFF0FFFFF
3320b8e80941Smrg#define   S_036600_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3321b8e80941Smrg#define   G_036600_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3322b8e80941Smrg#define   C_036600_PERF_MODE1                                         0xF0FFFFFF
3323b8e80941Smrg#define   S_036600_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3324b8e80941Smrg#define   G_036600_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3325b8e80941Smrg#define   C_036600_PERF_MODE                                          0x0FFFFFFF
3326b8e80941Smrg#define R_036604_SPI_PERFCOUNTER1_SELECT                                0x036604
3327b8e80941Smrg#define R_036608_SPI_PERFCOUNTER2_SELECT                                0x036608
3328b8e80941Smrg#define R_03660C_SPI_PERFCOUNTER3_SELECT                                0x03660C
3329b8e80941Smrg#define R_036610_SPI_PERFCOUNTER0_SELECT1                               0x036610
3330b8e80941Smrg#define   S_036610_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3331b8e80941Smrg#define   G_036610_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3332b8e80941Smrg#define   C_036610_PERF_SEL2                                          0xFFFFFC00
3333b8e80941Smrg#define   S_036610_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3334b8e80941Smrg#define   G_036610_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3335b8e80941Smrg#define   C_036610_PERF_SEL3                                          0xFFF003FF
3336b8e80941Smrg#define   S_036610_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3337b8e80941Smrg#define   G_036610_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3338b8e80941Smrg#define   C_036610_PERF_MODE3                                         0xF0FFFFFF
3339b8e80941Smrg#define   S_036610_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3340b8e80941Smrg#define   G_036610_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3341b8e80941Smrg#define   C_036610_PERF_MODE2                                         0x0FFFFFFF
3342b8e80941Smrg#define R_036614_SPI_PERFCOUNTER1_SELECT1                               0x036614
3343b8e80941Smrg#define R_036618_SPI_PERFCOUNTER2_SELECT1                               0x036618
3344b8e80941Smrg#define R_03661C_SPI_PERFCOUNTER3_SELECT1                               0x03661C
3345b8e80941Smrg#define R_036620_SPI_PERFCOUNTER4_SELECT                                0x036620
3346b8e80941Smrg#define R_036624_SPI_PERFCOUNTER5_SELECT                                0x036624
3347b8e80941Smrg#define R_036628_SPI_PERFCOUNTER_BINS                                   0x036628
3348b8e80941Smrg#define   S_036628_BIN0_MIN(x)                                        (((unsigned)(x) & 0x0F) << 0)
3349b8e80941Smrg#define   G_036628_BIN0_MIN(x)                                        (((x) >> 0) & 0x0F)
3350b8e80941Smrg#define   C_036628_BIN0_MIN                                           0xFFFFFFF0
3351b8e80941Smrg#define   S_036628_BIN0_MAX(x)                                        (((unsigned)(x) & 0x0F) << 4)
3352b8e80941Smrg#define   G_036628_BIN0_MAX(x)                                        (((x) >> 4) & 0x0F)
3353b8e80941Smrg#define   C_036628_BIN0_MAX                                           0xFFFFFF0F
3354b8e80941Smrg#define   S_036628_BIN1_MIN(x)                                        (((unsigned)(x) & 0x0F) << 8)
3355b8e80941Smrg#define   G_036628_BIN1_MIN(x)                                        (((x) >> 8) & 0x0F)
3356b8e80941Smrg#define   C_036628_BIN1_MIN                                           0xFFFFF0FF
3357b8e80941Smrg#define   S_036628_BIN1_MAX(x)                                        (((unsigned)(x) & 0x0F) << 12)
3358b8e80941Smrg#define   G_036628_BIN1_MAX(x)                                        (((x) >> 12) & 0x0F)
3359b8e80941Smrg#define   C_036628_BIN1_MAX                                           0xFFFF0FFF
3360b8e80941Smrg#define   S_036628_BIN2_MIN(x)                                        (((unsigned)(x) & 0x0F) << 16)
3361b8e80941Smrg#define   G_036628_BIN2_MIN(x)                                        (((x) >> 16) & 0x0F)
3362b8e80941Smrg#define   C_036628_BIN2_MIN                                           0xFFF0FFFF
3363b8e80941Smrg#define   S_036628_BIN2_MAX(x)                                        (((unsigned)(x) & 0x0F) << 20)
3364b8e80941Smrg#define   G_036628_BIN2_MAX(x)                                        (((x) >> 20) & 0x0F)
3365b8e80941Smrg#define   C_036628_BIN2_MAX                                           0xFF0FFFFF
3366b8e80941Smrg#define   S_036628_BIN3_MIN(x)                                        (((unsigned)(x) & 0x0F) << 24)
3367b8e80941Smrg#define   G_036628_BIN3_MIN(x)                                        (((x) >> 24) & 0x0F)
3368b8e80941Smrg#define   C_036628_BIN3_MIN                                           0xF0FFFFFF
3369b8e80941Smrg#define   S_036628_BIN3_MAX(x)                                        (((unsigned)(x) & 0x0F) << 28)
3370b8e80941Smrg#define   G_036628_BIN3_MAX(x)                                        (((x) >> 28) & 0x0F)
3371b8e80941Smrg#define   C_036628_BIN3_MAX                                           0x0FFFFFFF
3372b8e80941Smrg#define R_036700_SQ_PERFCOUNTER0_SELECT                                 0x036700
3373b8e80941Smrg#define   S_036700_PERF_SEL(x)                                        (((unsigned)(x) & 0x1FF) << 0)
3374b8e80941Smrg#define   G_036700_PERF_SEL(x)                                        (((x) >> 0) & 0x1FF)
3375b8e80941Smrg#define   C_036700_PERF_SEL                                           0xFFFFFE00
3376b8e80941Smrg#define   S_036700_SQC_BANK_MASK(x)                                   (((unsigned)(x) & 0x0F) << 12)
3377b8e80941Smrg#define   G_036700_SQC_BANK_MASK(x)                                   (((x) >> 12) & 0x0F)
3378b8e80941Smrg#define   C_036700_SQC_BANK_MASK                                      0xFFFF0FFF
3379b8e80941Smrg#define   S_036700_SQC_CLIENT_MASK(x)                                 (((unsigned)(x) & 0x0F) << 16)
3380b8e80941Smrg#define   G_036700_SQC_CLIENT_MASK(x)                                 (((x) >> 16) & 0x0F)
3381b8e80941Smrg#define   C_036700_SQC_CLIENT_MASK                                    0xFFF0FFFF
3382b8e80941Smrg#define   S_036700_SPM_MODE(x)                                        (((unsigned)(x) & 0x0F) << 20)
3383b8e80941Smrg#define   G_036700_SPM_MODE(x)                                        (((x) >> 20) & 0x0F)
3384b8e80941Smrg#define   C_036700_SPM_MODE                                           0xFF0FFFFF
3385b8e80941Smrg#define   S_036700_SIMD_MASK(x)                                       (((unsigned)(x) & 0x0F) << 24)
3386b8e80941Smrg#define   G_036700_SIMD_MASK(x)                                       (((x) >> 24) & 0x0F)
3387b8e80941Smrg#define   C_036700_SIMD_MASK                                          0xF0FFFFFF
3388b8e80941Smrg#define   S_036700_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3389b8e80941Smrg#define   G_036700_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3390b8e80941Smrg#define   C_036700_PERF_MODE                                          0x0FFFFFFF
3391b8e80941Smrg#define R_036704_SQ_PERFCOUNTER1_SELECT                                 0x036704
3392b8e80941Smrg#define R_036708_SQ_PERFCOUNTER2_SELECT                                 0x036708
3393b8e80941Smrg#define R_03670C_SQ_PERFCOUNTER3_SELECT                                 0x03670C
3394b8e80941Smrg#define R_036710_SQ_PERFCOUNTER4_SELECT                                 0x036710
3395b8e80941Smrg#define R_036714_SQ_PERFCOUNTER5_SELECT                                 0x036714
3396b8e80941Smrg#define R_036718_SQ_PERFCOUNTER6_SELECT                                 0x036718
3397b8e80941Smrg#define R_03671C_SQ_PERFCOUNTER7_SELECT                                 0x03671C
3398b8e80941Smrg#define R_036720_SQ_PERFCOUNTER8_SELECT                                 0x036720
3399b8e80941Smrg#define R_036724_SQ_PERFCOUNTER9_SELECT                                 0x036724
3400b8e80941Smrg#define R_036728_SQ_PERFCOUNTER10_SELECT                                0x036728
3401b8e80941Smrg#define R_03672C_SQ_PERFCOUNTER11_SELECT                                0x03672C
3402b8e80941Smrg#define R_036730_SQ_PERFCOUNTER12_SELECT                                0x036730
3403b8e80941Smrg#define R_036734_SQ_PERFCOUNTER13_SELECT                                0x036734
3404b8e80941Smrg#define R_036738_SQ_PERFCOUNTER14_SELECT                                0x036738
3405b8e80941Smrg#define R_03673C_SQ_PERFCOUNTER15_SELECT                                0x03673C
3406b8e80941Smrg#define R_036780_SQ_PERFCOUNTER_CTRL                                    0x036780
3407b8e80941Smrg#define   S_036780_PS_EN(x)                                           (((unsigned)(x) & 0x1) << 0)
3408b8e80941Smrg#define   G_036780_PS_EN(x)                                           (((x) >> 0) & 0x1)
3409b8e80941Smrg#define   C_036780_PS_EN                                              0xFFFFFFFE
3410b8e80941Smrg#define   S_036780_VS_EN(x)                                           (((unsigned)(x) & 0x1) << 1)
3411b8e80941Smrg#define   G_036780_VS_EN(x)                                           (((x) >> 1) & 0x1)
3412b8e80941Smrg#define   C_036780_VS_EN                                              0xFFFFFFFD
3413b8e80941Smrg#define   S_036780_GS_EN(x)                                           (((unsigned)(x) & 0x1) << 2)
3414b8e80941Smrg#define   G_036780_GS_EN(x)                                           (((x) >> 2) & 0x1)
3415b8e80941Smrg#define   C_036780_GS_EN                                              0xFFFFFFFB
3416b8e80941Smrg#define   S_036780_ES_EN(x)                                           (((unsigned)(x) & 0x1) << 3)
3417b8e80941Smrg#define   G_036780_ES_EN(x)                                           (((x) >> 3) & 0x1)
3418b8e80941Smrg#define   C_036780_ES_EN                                              0xFFFFFFF7
3419b8e80941Smrg#define   S_036780_HS_EN(x)                                           (((unsigned)(x) & 0x1) << 4)
3420b8e80941Smrg#define   G_036780_HS_EN(x)                                           (((x) >> 4) & 0x1)
3421b8e80941Smrg#define   C_036780_HS_EN                                              0xFFFFFFEF
3422b8e80941Smrg#define   S_036780_LS_EN(x)                                           (((unsigned)(x) & 0x1) << 5)
3423b8e80941Smrg#define   G_036780_LS_EN(x)                                           (((x) >> 5) & 0x1)
3424b8e80941Smrg#define   C_036780_LS_EN                                              0xFFFFFFDF
3425b8e80941Smrg#define   S_036780_CS_EN(x)                                           (((unsigned)(x) & 0x1) << 6)
3426b8e80941Smrg#define   G_036780_CS_EN(x)                                           (((x) >> 6) & 0x1)
3427b8e80941Smrg#define   C_036780_CS_EN                                              0xFFFFFFBF
3428b8e80941Smrg#define   S_036780_CNTR_RATE(x)                                       (((unsigned)(x) & 0x1F) << 8)
3429b8e80941Smrg#define   G_036780_CNTR_RATE(x)                                       (((x) >> 8) & 0x1F)
3430b8e80941Smrg#define   C_036780_CNTR_RATE                                          0xFFFFE0FF
3431b8e80941Smrg#define   S_036780_DISABLE_FLUSH(x)                                   (((unsigned)(x) & 0x1) << 13)
3432b8e80941Smrg#define   G_036780_DISABLE_FLUSH(x)                                   (((x) >> 13) & 0x1)
3433b8e80941Smrg#define   C_036780_DISABLE_FLUSH                                      0xFFFFDFFF
3434b8e80941Smrg#define R_036784_SQ_PERFCOUNTER_MASK                                    0x036784
3435b8e80941Smrg#define   S_036784_SH0_MASK(x)                                        (((unsigned)(x) & 0xFFFF) << 0)
3436b8e80941Smrg#define   G_036784_SH0_MASK(x)                                        (((x) >> 0) & 0xFFFF)
3437b8e80941Smrg#define   C_036784_SH0_MASK                                           0xFFFF0000
3438b8e80941Smrg#define   S_036784_SH1_MASK(x)                                        (((unsigned)(x) & 0xFFFF) << 16)
3439b8e80941Smrg#define   G_036784_SH1_MASK(x)                                        (((x) >> 16) & 0xFFFF)
3440b8e80941Smrg#define   C_036784_SH1_MASK                                           0x0000FFFF
3441b8e80941Smrg#define R_036788_SQ_PERFCOUNTER_CTRL2                                   0x036788
3442b8e80941Smrg#define   S_036788_FORCE_EN(x)                                        (((unsigned)(x) & 0x1) << 0)
3443b8e80941Smrg#define   G_036788_FORCE_EN(x)                                        (((x) >> 0) & 0x1)
3444b8e80941Smrg#define   C_036788_FORCE_EN                                           0xFFFFFFFE
3445b8e80941Smrg#define R_036900_SX_PERFCOUNTER0_SELECT                                 0x036900
3446b8e80941Smrg#define   S_036900_PERFCOUNTER_SELECT(x)                              (((unsigned)(x) & 0x3FF) << 0)
3447b8e80941Smrg#define   G_036900_PERFCOUNTER_SELECT(x)                              (((x) >> 0) & 0x3FF)
3448b8e80941Smrg#define   C_036900_PERFCOUNTER_SELECT                                 0xFFFFFC00
3449b8e80941Smrg#define   S_036900_PERFCOUNTER_SELECT1(x)                             (((unsigned)(x) & 0x3FF) << 10)
3450b8e80941Smrg#define   G_036900_PERFCOUNTER_SELECT1(x)                             (((x) >> 10) & 0x3FF)
3451b8e80941Smrg#define   C_036900_PERFCOUNTER_SELECT1                                0xFFF003FF
3452b8e80941Smrg#define   S_036900_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3453b8e80941Smrg#define   G_036900_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3454b8e80941Smrg#define   C_036900_CNTR_MODE                                          0xFF0FFFFF
3455b8e80941Smrg#define R_036904_SX_PERFCOUNTER1_SELECT                                 0x036904
3456b8e80941Smrg#define R_036908_SX_PERFCOUNTER2_SELECT                                 0x036908
3457b8e80941Smrg#define R_03690C_SX_PERFCOUNTER3_SELECT                                 0x03690C
3458b8e80941Smrg#define R_036910_SX_PERFCOUNTER0_SELECT1                                0x036910
3459b8e80941Smrg#define   S_036910_PERFCOUNTER_SELECT2(x)                             (((unsigned)(x) & 0x3FF) << 0)
3460b8e80941Smrg#define   G_036910_PERFCOUNTER_SELECT2(x)                             (((x) >> 0) & 0x3FF)
3461b8e80941Smrg#define   C_036910_PERFCOUNTER_SELECT2                                0xFFFFFC00
3462b8e80941Smrg#define   S_036910_PERFCOUNTER_SELECT3(x)                             (((unsigned)(x) & 0x3FF) << 10)
3463b8e80941Smrg#define   G_036910_PERFCOUNTER_SELECT3(x)                             (((x) >> 10) & 0x3FF)
3464b8e80941Smrg#define   C_036910_PERFCOUNTER_SELECT3                                0xFFF003FF
3465b8e80941Smrg#define R_036914_SX_PERFCOUNTER1_SELECT1                                0x036914
3466b8e80941Smrg#define R_036A00_GDS_PERFCOUNTER0_SELECT                                0x036A00
3467b8e80941Smrg#define   S_036A00_PERFCOUNTER_SELECT(x)                              (((unsigned)(x) & 0x3FF) << 0)
3468b8e80941Smrg#define   G_036A00_PERFCOUNTER_SELECT(x)                              (((x) >> 0) & 0x3FF)
3469b8e80941Smrg#define   C_036A00_PERFCOUNTER_SELECT                                 0xFFFFFC00
3470b8e80941Smrg#define   S_036A00_PERFCOUNTER_SELECT1(x)                             (((unsigned)(x) & 0x3FF) << 10)
3471b8e80941Smrg#define   G_036A00_PERFCOUNTER_SELECT1(x)                             (((x) >> 10) & 0x3FF)
3472b8e80941Smrg#define   C_036A00_PERFCOUNTER_SELECT1                                0xFFF003FF
3473b8e80941Smrg#define   S_036A00_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3474b8e80941Smrg#define   G_036A00_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3475b8e80941Smrg#define   C_036A00_CNTR_MODE                                          0xFF0FFFFF
3476b8e80941Smrg#define R_036A04_GDS_PERFCOUNTER1_SELECT                                0x036A04
3477b8e80941Smrg#define R_036A08_GDS_PERFCOUNTER2_SELECT                                0x036A08
3478b8e80941Smrg#define R_036A0C_GDS_PERFCOUNTER3_SELECT                                0x036A0C
3479b8e80941Smrg#define R_036A10_GDS_PERFCOUNTER0_SELECT1                               0x036A10
3480b8e80941Smrg#define   S_036A10_PERFCOUNTER_SELECT2(x)                             (((unsigned)(x) & 0x3FF) << 0)
3481b8e80941Smrg#define   G_036A10_PERFCOUNTER_SELECT2(x)                             (((x) >> 0) & 0x3FF)
3482b8e80941Smrg#define   C_036A10_PERFCOUNTER_SELECT2                                0xFFFFFC00
3483b8e80941Smrg#define   S_036A10_PERFCOUNTER_SELECT3(x)                             (((unsigned)(x) & 0x3FF) << 10)
3484b8e80941Smrg#define   G_036A10_PERFCOUNTER_SELECT3(x)                             (((x) >> 10) & 0x3FF)
3485b8e80941Smrg#define   C_036A10_PERFCOUNTER_SELECT3                                0xFFF003FF
3486b8e80941Smrg#define R_036B00_TA_PERFCOUNTER0_SELECT                                 0x036B00
3487b8e80941Smrg#define   S_036B00_PERF_SEL(x)                                        (((unsigned)(x) & 0xFF) << 0)
3488b8e80941Smrg#define   G_036B00_PERF_SEL(x)                                        (((x) >> 0) & 0xFF)
3489b8e80941Smrg#define   C_036B00_PERF_SEL                                           0xFFFFFF00
3490b8e80941Smrg#define   S_036B00_PERF_SEL1(x)                                       (((unsigned)(x) & 0xFF) << 10)
3491b8e80941Smrg#define   G_036B00_PERF_SEL1(x)                                       (((x) >> 10) & 0xFF)
3492b8e80941Smrg#define   C_036B00_PERF_SEL1                                          0xFFFC03FF
3493b8e80941Smrg#define   S_036B00_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3494b8e80941Smrg#define   G_036B00_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3495b8e80941Smrg#define   C_036B00_CNTR_MODE                                          0xFF0FFFFF
3496b8e80941Smrg#define   S_036B00_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3497b8e80941Smrg#define   G_036B00_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3498b8e80941Smrg#define   C_036B00_PERF_MODE1                                         0xF0FFFFFF
3499b8e80941Smrg#define   S_036B00_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3500b8e80941Smrg#define   G_036B00_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3501b8e80941Smrg#define   C_036B00_PERF_MODE                                          0x0FFFFFFF
3502b8e80941Smrg#define R_036B04_TA_PERFCOUNTER0_SELECT1                                0x036B04
3503b8e80941Smrg#define   S_036B04_PERF_SEL2(x)                                       (((unsigned)(x) & 0xFF) << 0)
3504b8e80941Smrg#define   G_036B04_PERF_SEL2(x)                                       (((x) >> 0) & 0xFF)
3505b8e80941Smrg#define   C_036B04_PERF_SEL2                                          0xFFFFFF00
3506b8e80941Smrg#define   S_036B04_PERF_SEL3(x)                                       (((unsigned)(x) & 0xFF) << 10)
3507b8e80941Smrg#define   G_036B04_PERF_SEL3(x)                                       (((x) >> 10) & 0xFF)
3508b8e80941Smrg#define   C_036B04_PERF_SEL3                                          0xFFFC03FF
3509b8e80941Smrg#define   S_036B04_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3510b8e80941Smrg#define   G_036B04_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3511b8e80941Smrg#define   C_036B04_PERF_MODE3                                         0xF0FFFFFF
3512b8e80941Smrg#define   S_036B04_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3513b8e80941Smrg#define   G_036B04_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3514b8e80941Smrg#define   C_036B04_PERF_MODE2                                         0x0FFFFFFF
3515b8e80941Smrg#define R_036B08_TA_PERFCOUNTER1_SELECT                                 0x036B08
3516b8e80941Smrg#define R_036C00_TD_PERFCOUNTER0_SELECT                                 0x036C00
3517b8e80941Smrg#define   S_036C00_PERF_SEL(x)                                        (((unsigned)(x) & 0xFF) << 0)
3518b8e80941Smrg#define   G_036C00_PERF_SEL(x)                                        (((x) >> 0) & 0xFF)
3519b8e80941Smrg#define   C_036C00_PERF_SEL                                           0xFFFFFF00
3520b8e80941Smrg#define   S_036C00_PERF_SEL1(x)                                       (((unsigned)(x) & 0xFF) << 10)
3521b8e80941Smrg#define   G_036C00_PERF_SEL1(x)                                       (((x) >> 10) & 0xFF)
3522b8e80941Smrg#define   C_036C00_PERF_SEL1                                          0xFFFC03FF
3523b8e80941Smrg#define   S_036C00_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3524b8e80941Smrg#define   G_036C00_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3525b8e80941Smrg#define   C_036C00_CNTR_MODE                                          0xFF0FFFFF
3526b8e80941Smrg#define   S_036C00_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3527b8e80941Smrg#define   G_036C00_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3528b8e80941Smrg#define   C_036C00_PERF_MODE1                                         0xF0FFFFFF
3529b8e80941Smrg#define   S_036C00_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3530b8e80941Smrg#define   G_036C00_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3531b8e80941Smrg#define   C_036C00_PERF_MODE                                          0x0FFFFFFF
3532b8e80941Smrg#define R_036C04_TD_PERFCOUNTER0_SELECT1                                0x036C04
3533b8e80941Smrg#define   S_036C04_PERF_SEL2(x)                                       (((unsigned)(x) & 0xFF) << 0)
3534b8e80941Smrg#define   G_036C04_PERF_SEL2(x)                                       (((x) >> 0) & 0xFF)
3535b8e80941Smrg#define   C_036C04_PERF_SEL2                                          0xFFFFFF00
3536b8e80941Smrg#define   S_036C04_PERF_SEL3(x)                                       (((unsigned)(x) & 0xFF) << 10)
3537b8e80941Smrg#define   G_036C04_PERF_SEL3(x)                                       (((x) >> 10) & 0xFF)
3538b8e80941Smrg#define   C_036C04_PERF_SEL3                                          0xFFFC03FF
3539b8e80941Smrg#define   S_036C04_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3540b8e80941Smrg#define   G_036C04_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3541b8e80941Smrg#define   C_036C04_PERF_MODE3                                         0xF0FFFFFF
3542b8e80941Smrg#define   S_036C04_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3543b8e80941Smrg#define   G_036C04_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3544b8e80941Smrg#define   C_036C04_PERF_MODE2                                         0x0FFFFFFF
3545b8e80941Smrg#define R_036C08_TD_PERFCOUNTER1_SELECT                                 0x036C08
3546b8e80941Smrg#define R_036D00_TCP_PERFCOUNTER0_SELECT                                0x036D00
3547b8e80941Smrg#define   S_036D00_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3548b8e80941Smrg#define   G_036D00_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3549b8e80941Smrg#define   C_036D00_PERF_SEL                                           0xFFFFFC00
3550b8e80941Smrg#define   S_036D00_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3551b8e80941Smrg#define   G_036D00_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3552b8e80941Smrg#define   C_036D00_PERF_SEL1                                          0xFFF003FF
3553b8e80941Smrg#define   S_036D00_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3554b8e80941Smrg#define   G_036D00_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3555b8e80941Smrg#define   C_036D00_CNTR_MODE                                          0xFF0FFFFF
3556b8e80941Smrg#define   S_036D00_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3557b8e80941Smrg#define   G_036D00_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3558b8e80941Smrg#define   C_036D00_PERF_MODE1                                         0xF0FFFFFF
3559b8e80941Smrg#define   S_036D00_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3560b8e80941Smrg#define   G_036D00_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3561b8e80941Smrg#define   C_036D00_PERF_MODE                                          0x0FFFFFFF
3562b8e80941Smrg#define R_036D04_TCP_PERFCOUNTER0_SELECT1                               0x036D04
3563b8e80941Smrg#define   S_036D04_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3564b8e80941Smrg#define   G_036D04_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3565b8e80941Smrg#define   C_036D04_PERF_SEL2                                          0xFFFFFC00
3566b8e80941Smrg#define   S_036D04_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3567b8e80941Smrg#define   G_036D04_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3568b8e80941Smrg#define   C_036D04_PERF_SEL3                                          0xFFF003FF
3569b8e80941Smrg#define   S_036D04_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3570b8e80941Smrg#define   G_036D04_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3571b8e80941Smrg#define   C_036D04_PERF_MODE3                                         0xF0FFFFFF
3572b8e80941Smrg#define   S_036D04_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3573b8e80941Smrg#define   G_036D04_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3574b8e80941Smrg#define   C_036D04_PERF_MODE2                                         0x0FFFFFFF
3575b8e80941Smrg#define R_036D08_TCP_PERFCOUNTER1_SELECT                                0x036D08
3576b8e80941Smrg#define R_036D0C_TCP_PERFCOUNTER1_SELECT1                               0x036D0C
3577b8e80941Smrg#define R_036D10_TCP_PERFCOUNTER2_SELECT                                0x036D10
3578b8e80941Smrg#define R_036D14_TCP_PERFCOUNTER3_SELECT                                0x036D14
3579b8e80941Smrg#define R_036E00_TCC_PERFCOUNTER0_SELECT                                0x036E00
3580b8e80941Smrg#define   S_036E00_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3581b8e80941Smrg#define   G_036E00_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3582b8e80941Smrg#define   C_036E00_PERF_SEL                                           0xFFFFFC00
3583b8e80941Smrg#define   S_036E00_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3584b8e80941Smrg#define   G_036E00_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3585b8e80941Smrg#define   C_036E00_PERF_SEL1                                          0xFFF003FF
3586b8e80941Smrg#define   S_036E00_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3587b8e80941Smrg#define   G_036E00_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3588b8e80941Smrg#define   C_036E00_CNTR_MODE                                          0xFF0FFFFF
3589b8e80941Smrg#define   S_036E00_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3590b8e80941Smrg#define   G_036E00_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3591b8e80941Smrg#define   C_036E00_PERF_MODE1                                         0xF0FFFFFF
3592b8e80941Smrg#define   S_036E00_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3593b8e80941Smrg#define   G_036E00_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3594b8e80941Smrg#define   C_036E00_PERF_MODE                                          0x0FFFFFFF
3595b8e80941Smrg#define R_036E04_TCC_PERFCOUNTER0_SELECT1                               0x036E04
3596b8e80941Smrg#define   S_036E04_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3597b8e80941Smrg#define   G_036E04_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3598b8e80941Smrg#define   C_036E04_PERF_SEL2                                          0xFFFFFC00
3599b8e80941Smrg#define   S_036E04_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3600b8e80941Smrg#define   G_036E04_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3601b8e80941Smrg#define   C_036E04_PERF_SEL3                                          0xFFF003FF
3602b8e80941Smrg#define   S_036E04_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 24)
3603b8e80941Smrg#define   G_036E04_PERF_MODE2(x)                                      (((x) >> 24) & 0x0F)
3604b8e80941Smrg#define   C_036E04_PERF_MODE2                                         0xF0FFFFFF
3605b8e80941Smrg#define   S_036E04_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 28)
3606b8e80941Smrg#define   G_036E04_PERF_MODE3(x)                                      (((x) >> 28) & 0x0F)
3607b8e80941Smrg#define   C_036E04_PERF_MODE3                                         0x0FFFFFFF
3608b8e80941Smrg#define R_036E08_TCC_PERFCOUNTER1_SELECT                                0x036E08
3609b8e80941Smrg#define R_036E0C_TCC_PERFCOUNTER1_SELECT1                               0x036E0C
3610b8e80941Smrg#define R_036E10_TCC_PERFCOUNTER2_SELECT                                0x036E10
3611b8e80941Smrg#define R_036E14_TCC_PERFCOUNTER3_SELECT                                0x036E14
3612b8e80941Smrg#define R_036E40_TCA_PERFCOUNTER0_SELECT                                0x036E40
3613b8e80941Smrg#define   S_036E40_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3614b8e80941Smrg#define   G_036E40_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3615b8e80941Smrg#define   C_036E40_PERF_SEL                                           0xFFFFFC00
3616b8e80941Smrg#define   S_036E40_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3617b8e80941Smrg#define   G_036E40_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3618b8e80941Smrg#define   C_036E40_PERF_SEL1                                          0xFFF003FF
3619b8e80941Smrg#define   S_036E40_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3620b8e80941Smrg#define   G_036E40_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3621b8e80941Smrg#define   C_036E40_CNTR_MODE                                          0xFF0FFFFF
3622b8e80941Smrg#define   S_036E40_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3623b8e80941Smrg#define   G_036E40_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3624b8e80941Smrg#define   C_036E40_PERF_MODE1                                         0xF0FFFFFF
3625b8e80941Smrg#define   S_036E40_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3626b8e80941Smrg#define   G_036E40_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3627b8e80941Smrg#define   C_036E40_PERF_MODE                                          0x0FFFFFFF
3628b8e80941Smrg#define R_036E44_TCA_PERFCOUNTER0_SELECT1                               0x036E44
3629b8e80941Smrg#define   S_036E44_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3630b8e80941Smrg#define   G_036E44_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3631b8e80941Smrg#define   C_036E44_PERF_SEL2                                          0xFFFFFC00
3632b8e80941Smrg#define   S_036E44_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3633b8e80941Smrg#define   G_036E44_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3634b8e80941Smrg#define   C_036E44_PERF_SEL3                                          0xFFF003FF
3635b8e80941Smrg#define   S_036E44_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 24)
3636b8e80941Smrg#define   G_036E44_PERF_MODE2(x)                                      (((x) >> 24) & 0x0F)
3637b8e80941Smrg#define   C_036E44_PERF_MODE2                                         0xF0FFFFFF
3638b8e80941Smrg#define   S_036E44_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 28)
3639b8e80941Smrg#define   G_036E44_PERF_MODE3(x)                                      (((x) >> 28) & 0x0F)
3640b8e80941Smrg#define   C_036E44_PERF_MODE3                                         0x0FFFFFFF
3641b8e80941Smrg#define R_036E48_TCA_PERFCOUNTER1_SELECT                                0x036E48
3642b8e80941Smrg#define R_036E4C_TCA_PERFCOUNTER1_SELECT1                               0x036E4C
3643b8e80941Smrg#define R_036E50_TCA_PERFCOUNTER2_SELECT                                0x036E50
3644b8e80941Smrg#define R_036E54_TCA_PERFCOUNTER3_SELECT                                0x036E54
3645b8e80941Smrg#define R_037000_CB_PERFCOUNTER_FILTER                                  0x037000
3646b8e80941Smrg#define   S_037000_OP_FILTER_ENABLE(x)                                (((unsigned)(x) & 0x1) << 0)
3647b8e80941Smrg#define   G_037000_OP_FILTER_ENABLE(x)                                (((x) >> 0) & 0x1)
3648b8e80941Smrg#define   C_037000_OP_FILTER_ENABLE                                   0xFFFFFFFE
3649b8e80941Smrg#define   S_037000_OP_FILTER_SEL(x)                                   (((unsigned)(x) & 0x07) << 1)
3650b8e80941Smrg#define   G_037000_OP_FILTER_SEL(x)                                   (((x) >> 1) & 0x07)
3651b8e80941Smrg#define   C_037000_OP_FILTER_SEL                                      0xFFFFFFF1
3652b8e80941Smrg#define   S_037000_FORMAT_FILTER_ENABLE(x)                            (((unsigned)(x) & 0x1) << 4)
3653b8e80941Smrg#define   G_037000_FORMAT_FILTER_ENABLE(x)                            (((x) >> 4) & 0x1)
3654b8e80941Smrg#define   C_037000_FORMAT_FILTER_ENABLE                               0xFFFFFFEF
3655b8e80941Smrg#define   S_037000_FORMAT_FILTER_SEL(x)                               (((unsigned)(x) & 0x1F) << 5)
3656b8e80941Smrg#define   G_037000_FORMAT_FILTER_SEL(x)                               (((x) >> 5) & 0x1F)
3657b8e80941Smrg#define   C_037000_FORMAT_FILTER_SEL                                  0xFFFFFC1F
3658b8e80941Smrg#define   S_037000_CLEAR_FILTER_ENABLE(x)                             (((unsigned)(x) & 0x1) << 10)
3659b8e80941Smrg#define   G_037000_CLEAR_FILTER_ENABLE(x)                             (((x) >> 10) & 0x1)
3660b8e80941Smrg#define   C_037000_CLEAR_FILTER_ENABLE                                0xFFFFFBFF
3661b8e80941Smrg#define   S_037000_CLEAR_FILTER_SEL(x)                                (((unsigned)(x) & 0x1) << 11)
3662b8e80941Smrg#define   G_037000_CLEAR_FILTER_SEL(x)                                (((x) >> 11) & 0x1)
3663b8e80941Smrg#define   C_037000_CLEAR_FILTER_SEL                                   0xFFFFF7FF
3664b8e80941Smrg#define   S_037000_MRT_FILTER_ENABLE(x)                               (((unsigned)(x) & 0x1) << 12)
3665b8e80941Smrg#define   G_037000_MRT_FILTER_ENABLE(x)                               (((x) >> 12) & 0x1)
3666b8e80941Smrg#define   C_037000_MRT_FILTER_ENABLE                                  0xFFFFEFFF
3667b8e80941Smrg#define   S_037000_MRT_FILTER_SEL(x)                                  (((unsigned)(x) & 0x07) << 13)
3668b8e80941Smrg#define   G_037000_MRT_FILTER_SEL(x)                                  (((x) >> 13) & 0x07)
3669b8e80941Smrg#define   C_037000_MRT_FILTER_SEL                                     0xFFFF1FFF
3670b8e80941Smrg#define   S_037000_NUM_SAMPLES_FILTER_ENABLE(x)                       (((unsigned)(x) & 0x1) << 17)
3671b8e80941Smrg#define   G_037000_NUM_SAMPLES_FILTER_ENABLE(x)                       (((x) >> 17) & 0x1)
3672b8e80941Smrg#define   C_037000_NUM_SAMPLES_FILTER_ENABLE                          0xFFFDFFFF
3673b8e80941Smrg#define   S_037000_NUM_SAMPLES_FILTER_SEL(x)                          (((unsigned)(x) & 0x07) << 18)
3674b8e80941Smrg#define   G_037000_NUM_SAMPLES_FILTER_SEL(x)                          (((x) >> 18) & 0x07)
3675b8e80941Smrg#define   C_037000_NUM_SAMPLES_FILTER_SEL                             0xFFE3FFFF
3676b8e80941Smrg#define   S_037000_NUM_FRAGMENTS_FILTER_ENABLE(x)                     (((unsigned)(x) & 0x1) << 21)
3677b8e80941Smrg#define   G_037000_NUM_FRAGMENTS_FILTER_ENABLE(x)                     (((x) >> 21) & 0x1)
3678b8e80941Smrg#define   C_037000_NUM_FRAGMENTS_FILTER_ENABLE                        0xFFDFFFFF
3679b8e80941Smrg#define   S_037000_NUM_FRAGMENTS_FILTER_SEL(x)                        (((unsigned)(x) & 0x03) << 22)
3680b8e80941Smrg#define   G_037000_NUM_FRAGMENTS_FILTER_SEL(x)                        (((x) >> 22) & 0x03)
3681b8e80941Smrg#define   C_037000_NUM_FRAGMENTS_FILTER_SEL                           0xFF3FFFFF
3682b8e80941Smrg#define R_037004_CB_PERFCOUNTER0_SELECT                                 0x037004
3683b8e80941Smrg#define   S_037004_PERF_SEL(x)                                        (((unsigned)(x) & 0x1FF) << 0)
3684b8e80941Smrg#define   G_037004_PERF_SEL(x)                                        (((x) >> 0) & 0x1FF)
3685b8e80941Smrg#define   C_037004_PERF_SEL                                           0xFFFFFE00
3686b8e80941Smrg#define   S_037004_PERF_SEL1(x)                                       (((unsigned)(x) & 0x1FF) << 10)
3687b8e80941Smrg#define   G_037004_PERF_SEL1(x)                                       (((x) >> 10) & 0x1FF)
3688b8e80941Smrg#define   C_037004_PERF_SEL1                                          0xFFF803FF
3689b8e80941Smrg#define   S_037004_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3690b8e80941Smrg#define   G_037004_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3691b8e80941Smrg#define   C_037004_CNTR_MODE                                          0xFF0FFFFF
3692b8e80941Smrg#define   S_037004_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3693b8e80941Smrg#define   G_037004_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3694b8e80941Smrg#define   C_037004_PERF_MODE1                                         0xF0FFFFFF
3695b8e80941Smrg#define   S_037004_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3696b8e80941Smrg#define   G_037004_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3697b8e80941Smrg#define   C_037004_PERF_MODE                                          0x0FFFFFFF
3698b8e80941Smrg#define R_037008_CB_PERFCOUNTER0_SELECT1                                0x037008
3699b8e80941Smrg#define   S_037008_PERF_SEL2(x)                                       (((unsigned)(x) & 0x1FF) << 0)
3700b8e80941Smrg#define   G_037008_PERF_SEL2(x)                                       (((x) >> 0) & 0x1FF)
3701b8e80941Smrg#define   C_037008_PERF_SEL2                                          0xFFFFFE00
3702b8e80941Smrg#define   S_037008_PERF_SEL3(x)                                       (((unsigned)(x) & 0x1FF) << 10)
3703b8e80941Smrg#define   G_037008_PERF_SEL3(x)                                       (((x) >> 10) & 0x1FF)
3704b8e80941Smrg#define   C_037008_PERF_SEL3                                          0xFFF803FF
3705b8e80941Smrg#define   S_037008_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3706b8e80941Smrg#define   G_037008_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3707b8e80941Smrg#define   C_037008_PERF_MODE3                                         0xF0FFFFFF
3708b8e80941Smrg#define   S_037008_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3709b8e80941Smrg#define   G_037008_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3710b8e80941Smrg#define   C_037008_PERF_MODE2                                         0x0FFFFFFF
3711b8e80941Smrg#define R_03700C_CB_PERFCOUNTER1_SELECT                                 0x03700C
3712b8e80941Smrg#define R_037010_CB_PERFCOUNTER2_SELECT                                 0x037010
3713b8e80941Smrg#define R_037014_CB_PERFCOUNTER3_SELECT                                 0x037014
3714b8e80941Smrg#define R_037100_DB_PERFCOUNTER0_SELECT                                 0x037100
3715b8e80941Smrg#define   S_037100_PERF_SEL(x)                                        (((unsigned)(x) & 0x3FF) << 0)
3716b8e80941Smrg#define   G_037100_PERF_SEL(x)                                        (((x) >> 0) & 0x3FF)
3717b8e80941Smrg#define   C_037100_PERF_SEL                                           0xFFFFFC00
3718b8e80941Smrg#define   S_037100_PERF_SEL1(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3719b8e80941Smrg#define   G_037100_PERF_SEL1(x)                                       (((x) >> 10) & 0x3FF)
3720b8e80941Smrg#define   C_037100_PERF_SEL1                                          0xFFF003FF
3721b8e80941Smrg#define   S_037100_CNTR_MODE(x)                                       (((unsigned)(x) & 0x0F) << 20)
3722b8e80941Smrg#define   G_037100_CNTR_MODE(x)                                       (((x) >> 20) & 0x0F)
3723b8e80941Smrg#define   C_037100_CNTR_MODE                                          0xFF0FFFFF
3724b8e80941Smrg#define   S_037100_PERF_MODE1(x)                                      (((unsigned)(x) & 0x0F) << 24)
3725b8e80941Smrg#define   G_037100_PERF_MODE1(x)                                      (((x) >> 24) & 0x0F)
3726b8e80941Smrg#define   C_037100_PERF_MODE1                                         0xF0FFFFFF
3727b8e80941Smrg#define   S_037100_PERF_MODE(x)                                       (((unsigned)(x) & 0x0F) << 28)
3728b8e80941Smrg#define   G_037100_PERF_MODE(x)                                       (((x) >> 28) & 0x0F)
3729b8e80941Smrg#define   C_037100_PERF_MODE                                          0x0FFFFFFF
3730b8e80941Smrg#define R_037104_DB_PERFCOUNTER0_SELECT1                                0x037104
3731b8e80941Smrg#define   S_037104_PERF_SEL2(x)                                       (((unsigned)(x) & 0x3FF) << 0)
3732b8e80941Smrg#define   G_037104_PERF_SEL2(x)                                       (((x) >> 0) & 0x3FF)
3733b8e80941Smrg#define   C_037104_PERF_SEL2                                          0xFFFFFC00
3734b8e80941Smrg#define   S_037104_PERF_SEL3(x)                                       (((unsigned)(x) & 0x3FF) << 10)
3735b8e80941Smrg#define   G_037104_PERF_SEL3(x)                                       (((x) >> 10) & 0x3FF)
3736b8e80941Smrg#define   C_037104_PERF_SEL3                                          0xFFF003FF
3737b8e80941Smrg#define   S_037104_PERF_MODE3(x)                                      (((unsigned)(x) & 0x0F) << 24)
3738b8e80941Smrg#define   G_037104_PERF_MODE3(x)                                      (((x) >> 24) & 0x0F)
3739b8e80941Smrg#define   C_037104_PERF_MODE3                                         0xF0FFFFFF
3740b8e80941Smrg#define   S_037104_PERF_MODE2(x)                                      (((unsigned)(x) & 0x0F) << 28)
3741b8e80941Smrg#define   G_037104_PERF_MODE2(x)                                      (((x) >> 28) & 0x0F)
3742b8e80941Smrg#define   C_037104_PERF_MODE2                                         0x0FFFFFFF
3743b8e80941Smrg#define R_037108_DB_PERFCOUNTER1_SELECT                                 0x037108
3744b8e80941Smrg#define R_03710C_DB_PERFCOUNTER1_SELECT1                                0x03710C
3745b8e80941Smrg#define R_037110_DB_PERFCOUNTER2_SELECT                                 0x037110
3746b8e80941Smrg#define R_037118_DB_PERFCOUNTER3_SELECT                                 0x037118
3747b8e80941Smrg#define R_028000_DB_RENDER_CONTROL                                      0x028000
3748b8e80941Smrg#define   S_028000_DEPTH_CLEAR_ENABLE(x)                              (((unsigned)(x) & 0x1) << 0)
3749b8e80941Smrg#define   G_028000_DEPTH_CLEAR_ENABLE(x)                              (((x) >> 0) & 0x1)
3750b8e80941Smrg#define   C_028000_DEPTH_CLEAR_ENABLE                                 0xFFFFFFFE
3751b8e80941Smrg#define   S_028000_STENCIL_CLEAR_ENABLE(x)                            (((unsigned)(x) & 0x1) << 1)
3752b8e80941Smrg#define   G_028000_STENCIL_CLEAR_ENABLE(x)                            (((x) >> 1) & 0x1)
3753b8e80941Smrg#define   C_028000_STENCIL_CLEAR_ENABLE                               0xFFFFFFFD
3754b8e80941Smrg#define   S_028000_DEPTH_COPY(x)                                      (((unsigned)(x) & 0x1) << 2)
3755b8e80941Smrg#define   G_028000_DEPTH_COPY(x)                                      (((x) >> 2) & 0x1)
3756b8e80941Smrg#define   C_028000_DEPTH_COPY                                         0xFFFFFFFB
3757b8e80941Smrg#define   S_028000_STENCIL_COPY(x)                                    (((unsigned)(x) & 0x1) << 3)
3758b8e80941Smrg#define   G_028000_STENCIL_COPY(x)                                    (((x) >> 3) & 0x1)
3759b8e80941Smrg#define   C_028000_STENCIL_COPY                                       0xFFFFFFF7
3760b8e80941Smrg#define   S_028000_RESUMMARIZE_ENABLE(x)                              (((unsigned)(x) & 0x1) << 4)
3761b8e80941Smrg#define   G_028000_RESUMMARIZE_ENABLE(x)                              (((x) >> 4) & 0x1)
3762b8e80941Smrg#define   C_028000_RESUMMARIZE_ENABLE                                 0xFFFFFFEF
3763b8e80941Smrg#define   S_028000_STENCIL_COMPRESS_DISABLE(x)                        (((unsigned)(x) & 0x1) << 5)
3764b8e80941Smrg#define   G_028000_STENCIL_COMPRESS_DISABLE(x)                        (((x) >> 5) & 0x1)
3765b8e80941Smrg#define   C_028000_STENCIL_COMPRESS_DISABLE                           0xFFFFFFDF
3766b8e80941Smrg#define   S_028000_DEPTH_COMPRESS_DISABLE(x)                          (((unsigned)(x) & 0x1) << 6)
3767b8e80941Smrg#define   G_028000_DEPTH_COMPRESS_DISABLE(x)                          (((x) >> 6) & 0x1)
3768b8e80941Smrg#define   C_028000_DEPTH_COMPRESS_DISABLE                             0xFFFFFFBF
3769b8e80941Smrg#define   S_028000_COPY_CENTROID(x)                                   (((unsigned)(x) & 0x1) << 7)
3770b8e80941Smrg#define   G_028000_COPY_CENTROID(x)                                   (((x) >> 7) & 0x1)
3771b8e80941Smrg#define   C_028000_COPY_CENTROID                                      0xFFFFFF7F
3772b8e80941Smrg#define   S_028000_COPY_SAMPLE(x)                                     (((unsigned)(x) & 0x0F) << 8)
3773b8e80941Smrg#define   G_028000_COPY_SAMPLE(x)                                     (((x) >> 8) & 0x0F)
3774b8e80941Smrg#define   C_028000_COPY_SAMPLE                                        0xFFFFF0FF
3775b8e80941Smrg#define   S_028000_DECOMPRESS_ENABLE(x)                               (((unsigned)(x) & 0x1) << 12)
3776b8e80941Smrg#define   G_028000_DECOMPRESS_ENABLE(x)                               (((x) >> 12) & 0x1)
3777b8e80941Smrg#define   C_028000_DECOMPRESS_ENABLE                                  0xFFFFEFFF
3778b8e80941Smrg#define R_028004_DB_COUNT_CONTROL                                       0x028004
3779b8e80941Smrg#define   S_028004_ZPASS_INCREMENT_DISABLE(x)                         (((unsigned)(x) & 0x1) << 0)
3780b8e80941Smrg#define   G_028004_ZPASS_INCREMENT_DISABLE(x)                         (((x) >> 0) & 0x1)
3781b8e80941Smrg#define   C_028004_ZPASS_INCREMENT_DISABLE                            0xFFFFFFFE
3782b8e80941Smrg#define   S_028004_PERFECT_ZPASS_COUNTS(x)                            (((unsigned)(x) & 0x1) << 1)
3783b8e80941Smrg#define   G_028004_PERFECT_ZPASS_COUNTS(x)                            (((x) >> 1) & 0x1)
3784b8e80941Smrg#define   C_028004_PERFECT_ZPASS_COUNTS                               0xFFFFFFFD
3785b8e80941Smrg#define   S_028004_SAMPLE_RATE(x)                                     (((unsigned)(x) & 0x07) << 4)
3786b8e80941Smrg#define   G_028004_SAMPLE_RATE(x)                                     (((x) >> 4) & 0x07)
3787b8e80941Smrg#define   C_028004_SAMPLE_RATE                                        0xFFFFFF8F
3788b8e80941Smrg#define   S_028004_ZPASS_ENABLE(x)                                    (((unsigned)(x) & 0x0F) << 8)
3789b8e80941Smrg#define   G_028004_ZPASS_ENABLE(x)                                    (((x) >> 8) & 0x0F)
3790b8e80941Smrg#define   C_028004_ZPASS_ENABLE                                       0xFFFFF0FF
3791b8e80941Smrg#define   S_028004_ZFAIL_ENABLE(x)                                    (((unsigned)(x) & 0x0F) << 12)
3792b8e80941Smrg#define   G_028004_ZFAIL_ENABLE(x)                                    (((x) >> 12) & 0x0F)
3793b8e80941Smrg#define   C_028004_ZFAIL_ENABLE                                       0xFFFF0FFF
3794b8e80941Smrg#define   S_028004_SFAIL_ENABLE(x)                                    (((unsigned)(x) & 0x0F) << 16)
3795b8e80941Smrg#define   G_028004_SFAIL_ENABLE(x)                                    (((x) >> 16) & 0x0F)
3796b8e80941Smrg#define   C_028004_SFAIL_ENABLE                                       0xFFF0FFFF
3797b8e80941Smrg#define   S_028004_DBFAIL_ENABLE(x)                                   (((unsigned)(x) & 0x0F) << 20)
3798b8e80941Smrg#define   G_028004_DBFAIL_ENABLE(x)                                   (((x) >> 20) & 0x0F)
3799b8e80941Smrg#define   C_028004_DBFAIL_ENABLE                                      0xFF0FFFFF
3800b8e80941Smrg#define   S_028004_SLICE_EVEN_ENABLE(x)                               (((unsigned)(x) & 0x0F) << 24)
3801b8e80941Smrg#define   G_028004_SLICE_EVEN_ENABLE(x)                               (((x) >> 24) & 0x0F)
3802b8e80941Smrg#define   C_028004_SLICE_EVEN_ENABLE                                  0xF0FFFFFF
3803b8e80941Smrg#define   S_028004_SLICE_ODD_ENABLE(x)                                (((unsigned)(x) & 0x0F) << 28)
3804b8e80941Smrg#define   G_028004_SLICE_ODD_ENABLE(x)                                (((x) >> 28) & 0x0F)
3805b8e80941Smrg#define   C_028004_SLICE_ODD_ENABLE                                   0x0FFFFFFF
3806b8e80941Smrg#define R_028008_DB_DEPTH_VIEW                                          0x028008
3807b8e80941Smrg#define   S_028008_SLICE_START(x)                                     (((unsigned)(x) & 0x7FF) << 0)
3808b8e80941Smrg#define   G_028008_SLICE_START(x)                                     (((x) >> 0) & 0x7FF)
3809b8e80941Smrg#define   C_028008_SLICE_START                                        0xFFFFF800
3810b8e80941Smrg#define   S_028008_SLICE_MAX(x)                                       (((unsigned)(x) & 0x7FF) << 13)
3811b8e80941Smrg#define   G_028008_SLICE_MAX(x)                                       (((x) >> 13) & 0x7FF)
3812b8e80941Smrg#define   C_028008_SLICE_MAX                                          0xFF001FFF
3813b8e80941Smrg#define   S_028008_Z_READ_ONLY(x)                                     (((unsigned)(x) & 0x1) << 24)
3814b8e80941Smrg#define   G_028008_Z_READ_ONLY(x)                                     (((x) >> 24) & 0x1)
3815b8e80941Smrg#define   C_028008_Z_READ_ONLY                                        0xFEFFFFFF
3816b8e80941Smrg#define   S_028008_STENCIL_READ_ONLY(x)                               (((unsigned)(x) & 0x1) << 25)
3817b8e80941Smrg#define   G_028008_STENCIL_READ_ONLY(x)                               (((x) >> 25) & 0x1)
3818b8e80941Smrg#define   C_028008_STENCIL_READ_ONLY                                  0xFDFFFFFF
3819b8e80941Smrg#define   S_028008_MIPID(x)                                           (((unsigned)(x) & 0x0F) << 26)
3820b8e80941Smrg#define   G_028008_MIPID(x)                                           (((x) >> 26) & 0x0F)
3821b8e80941Smrg#define   C_028008_MIPID                                              0xC3FFFFFF
3822b8e80941Smrg#define R_02800C_DB_RENDER_OVERRIDE                                     0x02800C
3823b8e80941Smrg#define   S_02800C_FORCE_HIZ_ENABLE(x)                                (((unsigned)(x) & 0x03) << 0)
3824b8e80941Smrg#define   G_02800C_FORCE_HIZ_ENABLE(x)                                (((x) >> 0) & 0x03)
3825b8e80941Smrg#define   C_02800C_FORCE_HIZ_ENABLE                                   0xFFFFFFFC
3826b8e80941Smrg#define   S_02800C_FORCE_HIS_ENABLE0(x)                               (((unsigned)(x) & 0x03) << 2)
3827b8e80941Smrg#define   G_02800C_FORCE_HIS_ENABLE0(x)                               (((x) >> 2) & 0x03)
3828b8e80941Smrg#define   C_02800C_FORCE_HIS_ENABLE0                                  0xFFFFFFF3
3829b8e80941Smrg#define   S_02800C_FORCE_HIS_ENABLE1(x)                               (((unsigned)(x) & 0x03) << 4)
3830b8e80941Smrg#define   G_02800C_FORCE_HIS_ENABLE1(x)                               (((x) >> 4) & 0x03)
3831b8e80941Smrg#define   C_02800C_FORCE_HIS_ENABLE1                                  0xFFFFFFCF
3832b8e80941Smrg#define   S_02800C_FORCE_SHADER_Z_ORDER(x)                            (((unsigned)(x) & 0x1) << 6)
3833b8e80941Smrg#define   G_02800C_FORCE_SHADER_Z_ORDER(x)                            (((x) >> 6) & 0x1)
3834b8e80941Smrg#define   C_02800C_FORCE_SHADER_Z_ORDER                               0xFFFFFFBF
3835b8e80941Smrg#define   S_02800C_FAST_Z_DISABLE(x)                                  (((unsigned)(x) & 0x1) << 7)
3836b8e80941Smrg#define   G_02800C_FAST_Z_DISABLE(x)                                  (((x) >> 7) & 0x1)
3837b8e80941Smrg#define   C_02800C_FAST_Z_DISABLE                                     0xFFFFFF7F
3838b8e80941Smrg#define   S_02800C_FAST_STENCIL_DISABLE(x)                            (((unsigned)(x) & 0x1) << 8)
3839b8e80941Smrg#define   G_02800C_FAST_STENCIL_DISABLE(x)                            (((x) >> 8) & 0x1)
3840b8e80941Smrg#define   C_02800C_FAST_STENCIL_DISABLE                               0xFFFFFEFF
3841b8e80941Smrg#define   S_02800C_NOOP_CULL_DISABLE(x)                               (((unsigned)(x) & 0x1) << 9)
3842b8e80941Smrg#define   G_02800C_NOOP_CULL_DISABLE(x)                               (((x) >> 9) & 0x1)
3843b8e80941Smrg#define   C_02800C_NOOP_CULL_DISABLE                                  0xFFFFFDFF
3844b8e80941Smrg#define   S_02800C_FORCE_COLOR_KILL(x)                                (((unsigned)(x) & 0x1) << 10)
3845b8e80941Smrg#define   G_02800C_FORCE_COLOR_KILL(x)                                (((x) >> 10) & 0x1)
3846b8e80941Smrg#define   C_02800C_FORCE_COLOR_KILL                                   0xFFFFFBFF
3847b8e80941Smrg#define   S_02800C_FORCE_Z_READ(x)                                    (((unsigned)(x) & 0x1) << 11)
3848b8e80941Smrg#define   G_02800C_FORCE_Z_READ(x)                                    (((x) >> 11) & 0x1)
3849b8e80941Smrg#define   C_02800C_FORCE_Z_READ                                       0xFFFFF7FF
3850b8e80941Smrg#define   S_02800C_FORCE_STENCIL_READ(x)                              (((unsigned)(x) & 0x1) << 12)
3851b8e80941Smrg#define   G_02800C_FORCE_STENCIL_READ(x)                              (((x) >> 12) & 0x1)
3852b8e80941Smrg#define   C_02800C_FORCE_STENCIL_READ                                 0xFFFFEFFF
3853b8e80941Smrg#define   S_02800C_FORCE_FULL_Z_RANGE(x)                              (((unsigned)(x) & 0x03) << 13)
3854b8e80941Smrg#define   G_02800C_FORCE_FULL_Z_RANGE(x)                              (((x) >> 13) & 0x03)
3855b8e80941Smrg#define   C_02800C_FORCE_FULL_Z_RANGE                                 0xFFFF9FFF
3856b8e80941Smrg#define   S_02800C_FORCE_QC_SMASK_CONFLICT(x)                         (((unsigned)(x) & 0x1) << 15)
3857b8e80941Smrg#define   G_02800C_FORCE_QC_SMASK_CONFLICT(x)                         (((x) >> 15) & 0x1)
3858b8e80941Smrg#define   C_02800C_FORCE_QC_SMASK_CONFLICT                            0xFFFF7FFF
3859b8e80941Smrg#define   S_02800C_DISABLE_VIEWPORT_CLAMP(x)                          (((unsigned)(x) & 0x1) << 16)
3860b8e80941Smrg#define   G_02800C_DISABLE_VIEWPORT_CLAMP(x)                          (((x) >> 16) & 0x1)
3861b8e80941Smrg#define   C_02800C_DISABLE_VIEWPORT_CLAMP                             0xFFFEFFFF
3862b8e80941Smrg#define   S_02800C_IGNORE_SC_ZRANGE(x)                                (((unsigned)(x) & 0x1) << 17)
3863b8e80941Smrg#define   G_02800C_IGNORE_SC_ZRANGE(x)                                (((x) >> 17) & 0x1)
3864b8e80941Smrg#define   C_02800C_IGNORE_SC_ZRANGE                                   0xFFFDFFFF
3865b8e80941Smrg#define   S_02800C_DISABLE_FULLY_COVERED(x)                           (((unsigned)(x) & 0x1) << 18)
3866b8e80941Smrg#define   G_02800C_DISABLE_FULLY_COVERED(x)                           (((x) >> 18) & 0x1)
3867b8e80941Smrg#define   C_02800C_DISABLE_FULLY_COVERED                              0xFFFBFFFF
3868b8e80941Smrg#define   S_02800C_FORCE_Z_LIMIT_SUMM(x)                              (((unsigned)(x) & 0x03) << 19)
3869b8e80941Smrg#define   G_02800C_FORCE_Z_LIMIT_SUMM(x)                              (((x) >> 19) & 0x03)
3870b8e80941Smrg#define   C_02800C_FORCE_Z_LIMIT_SUMM                                 0xFFE7FFFF
3871b8e80941Smrg#define   S_02800C_MAX_TILES_IN_DTT(x)                                (((unsigned)(x) & 0x1F) << 21)
3872b8e80941Smrg#define   G_02800C_MAX_TILES_IN_DTT(x)                                (((x) >> 21) & 0x1F)
3873b8e80941Smrg#define   C_02800C_MAX_TILES_IN_DTT                                   0xFC1FFFFF
3874b8e80941Smrg#define   S_02800C_DISABLE_TILE_RATE_TILES(x)                         (((unsigned)(x) & 0x1) << 26)
3875b8e80941Smrg#define   G_02800C_DISABLE_TILE_RATE_TILES(x)                         (((x) >> 26) & 0x1)
3876b8e80941Smrg#define   C_02800C_DISABLE_TILE_RATE_TILES                            0xFBFFFFFF
3877b8e80941Smrg#define   S_02800C_FORCE_Z_DIRTY(x)                                   (((unsigned)(x) & 0x1) << 27)
3878b8e80941Smrg#define   G_02800C_FORCE_Z_DIRTY(x)                                   (((x) >> 27) & 0x1)
3879b8e80941Smrg#define   C_02800C_FORCE_Z_DIRTY                                      0xF7FFFFFF
3880b8e80941Smrg#define   S_02800C_FORCE_STENCIL_DIRTY(x)                             (((unsigned)(x) & 0x1) << 28)
3881b8e80941Smrg#define   G_02800C_FORCE_STENCIL_DIRTY(x)                             (((x) >> 28) & 0x1)
3882b8e80941Smrg#define   C_02800C_FORCE_STENCIL_DIRTY                                0xEFFFFFFF
3883b8e80941Smrg#define   S_02800C_FORCE_Z_VALID(x)                                   (((unsigned)(x) & 0x1) << 29)
3884b8e80941Smrg#define   G_02800C_FORCE_Z_VALID(x)                                   (((x) >> 29) & 0x1)
3885b8e80941Smrg#define   C_02800C_FORCE_Z_VALID                                      0xDFFFFFFF
3886b8e80941Smrg#define   S_02800C_FORCE_STENCIL_VALID(x)                             (((unsigned)(x) & 0x1) << 30)
3887b8e80941Smrg#define   G_02800C_FORCE_STENCIL_VALID(x)                             (((x) >> 30) & 0x1)
3888b8e80941Smrg#define   C_02800C_FORCE_STENCIL_VALID                                0xBFFFFFFF
3889b8e80941Smrg#define   S_02800C_PRESERVE_COMPRESSION(x)                            (((unsigned)(x) & 0x1) << 31)
3890b8e80941Smrg#define   G_02800C_PRESERVE_COMPRESSION(x)                            (((x) >> 31) & 0x1)
3891b8e80941Smrg#define   C_02800C_PRESERVE_COMPRESSION                               0x7FFFFFFF
3892b8e80941Smrg#define R_028010_DB_RENDER_OVERRIDE2                                    0x028010
3893b8e80941Smrg#define   S_028010_PARTIAL_SQUAD_LAUNCH_CONTROL(x)                    (((unsigned)(x) & 0x03) << 0)
3894b8e80941Smrg#define   G_028010_PARTIAL_SQUAD_LAUNCH_CONTROL(x)                    (((x) >> 0) & 0x03)
3895b8e80941Smrg#define   C_028010_PARTIAL_SQUAD_LAUNCH_CONTROL                       0xFFFFFFFC
3896b8e80941Smrg#define   S_028010_PARTIAL_SQUAD_LAUNCH_COUNTDOWN(x)                  (((unsigned)(x) & 0x07) << 2)
3897b8e80941Smrg#define   G_028010_PARTIAL_SQUAD_LAUNCH_COUNTDOWN(x)                  (((x) >> 2) & 0x07)
3898b8e80941Smrg#define   C_028010_PARTIAL_SQUAD_LAUNCH_COUNTDOWN                     0xFFFFFFE3
3899b8e80941Smrg#define   S_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION(x)             (((unsigned)(x) & 0x1) << 5)
3900b8e80941Smrg#define   G_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION(x)             (((x) >> 5) & 0x1)
3901b8e80941Smrg#define   C_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION                0xFFFFFFDF
3902b8e80941Smrg#define   S_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION(x)              (((unsigned)(x) & 0x1) << 6)
3903b8e80941Smrg#define   G_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION(x)              (((x) >> 6) & 0x1)
3904b8e80941Smrg#define   C_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION                 0xFFFFFFBF
3905b8e80941Smrg#define   S_028010_DISABLE_COLOR_ON_VALIDATION(x)                     (((unsigned)(x) & 0x1) << 7)
3906b8e80941Smrg#define   G_028010_DISABLE_COLOR_ON_VALIDATION(x)                     (((x) >> 7) & 0x1)
3907b8e80941Smrg#define   C_028010_DISABLE_COLOR_ON_VALIDATION                        0xFFFFFF7F
3908b8e80941Smrg#define   S_028010_DECOMPRESS_Z_ON_FLUSH(x)                           (((unsigned)(x) & 0x1) << 8)
3909b8e80941Smrg#define   G_028010_DECOMPRESS_Z_ON_FLUSH(x)                           (((x) >> 8) & 0x1)
3910b8e80941Smrg#define   C_028010_DECOMPRESS_Z_ON_FLUSH                              0xFFFFFEFF
3911b8e80941Smrg#define   S_028010_DISABLE_REG_SNOOP(x)                               (((unsigned)(x) & 0x1) << 9)
3912b8e80941Smrg#define   G_028010_DISABLE_REG_SNOOP(x)                               (((x) >> 9) & 0x1)
3913b8e80941Smrg#define   C_028010_DISABLE_REG_SNOOP                                  0xFFFFFDFF
3914b8e80941Smrg#define   S_028010_DEPTH_BOUNDS_HIER_DEPTH_DISABLE(x)                 (((unsigned)(x) & 0x1) << 10)
3915b8e80941Smrg#define   G_028010_DEPTH_BOUNDS_HIER_DEPTH_DISABLE(x)                 (((x) >> 10) & 0x1)
3916b8e80941Smrg#define   C_028010_DEPTH_BOUNDS_HIER_DEPTH_DISABLE                    0xFFFFFBFF
3917b8e80941Smrg#define   S_028010_SEPARATE_HIZS_FUNC_ENABLE(x)                       (((unsigned)(x) & 0x1) << 11)
3918b8e80941Smrg#define   G_028010_SEPARATE_HIZS_FUNC_ENABLE(x)                       (((x) >> 11) & 0x1)
3919b8e80941Smrg#define   C_028010_SEPARATE_HIZS_FUNC_ENABLE                          0xFFFFF7FF
3920b8e80941Smrg#define   S_028010_HIZ_ZFUNC(x)                                       (((unsigned)(x) & 0x07) << 12)
3921b8e80941Smrg#define   G_028010_HIZ_ZFUNC(x)                                       (((x) >> 12) & 0x07)
3922b8e80941Smrg#define   C_028010_HIZ_ZFUNC                                          0xFFFF8FFF
3923b8e80941Smrg#define   S_028010_HIS_SFUNC_FF(x)                                    (((unsigned)(x) & 0x07) << 15)
3924b8e80941Smrg#define   G_028010_HIS_SFUNC_FF(x)                                    (((x) >> 15) & 0x07)
3925b8e80941Smrg#define   C_028010_HIS_SFUNC_FF                                       0xFFFC7FFF
3926b8e80941Smrg#define   S_028010_HIS_SFUNC_BF(x)                                    (((unsigned)(x) & 0x07) << 18)
3927b8e80941Smrg#define   G_028010_HIS_SFUNC_BF(x)                                    (((x) >> 18) & 0x07)
3928b8e80941Smrg#define   C_028010_HIS_SFUNC_BF                                       0xFFE3FFFF
3929b8e80941Smrg#define   S_028010_PRESERVE_ZRANGE(x)                                 (((unsigned)(x) & 0x1) << 21)
3930b8e80941Smrg#define   G_028010_PRESERVE_ZRANGE(x)                                 (((x) >> 21) & 0x1)
3931b8e80941Smrg#define   C_028010_PRESERVE_ZRANGE                                    0xFFDFFFFF
3932b8e80941Smrg#define   S_028010_PRESERVE_SRESULTS(x)                               (((unsigned)(x) & 0x1) << 22)
3933b8e80941Smrg#define   G_028010_PRESERVE_SRESULTS(x)                               (((x) >> 22) & 0x1)
3934b8e80941Smrg#define   C_028010_PRESERVE_SRESULTS                                  0xFFBFFFFF
3935b8e80941Smrg#define   S_028010_DISABLE_FAST_PASS(x)                               (((unsigned)(x) & 0x1) << 23)
3936b8e80941Smrg#define   G_028010_DISABLE_FAST_PASS(x)                               (((x) >> 23) & 0x1)
3937b8e80941Smrg#define   C_028010_DISABLE_FAST_PASS                                  0xFF7FFFFF
3938b8e80941Smrg#define   S_028010_ALLOW_PARTIAL_RES_HIER_KILL(x)                     (((unsigned)(x) & 0x1) << 25)
3939b8e80941Smrg#define   G_028010_ALLOW_PARTIAL_RES_HIER_KILL(x)                     (((x) >> 25) & 0x1)
3940b8e80941Smrg#define   C_028010_ALLOW_PARTIAL_RES_HIER_KILL                        0xFDFFFFFF
3941b8e80941Smrg#define R_028014_DB_HTILE_DATA_BASE                                     0x028014
3942b8e80941Smrg#define R_028018_DB_HTILE_DATA_BASE_HI                                  0x028018
3943b8e80941Smrg#define   S_028018_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
3944b8e80941Smrg#define   G_028018_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
3945b8e80941Smrg#define   C_028018_BASE_HI                                            0xFFFFFF00
3946b8e80941Smrg#define R_02801C_DB_DEPTH_SIZE                                          0x02801C
3947b8e80941Smrg#define   S_02801C_X_MAX(x)                                           (((unsigned)(x) & 0x3FFF) << 0)
3948b8e80941Smrg#define   G_02801C_X_MAX(x)                                           (((x) >> 0) & 0x3FFF)
3949b8e80941Smrg#define   C_02801C_X_MAX                                              0xFFFFC000
3950b8e80941Smrg#define   S_02801C_Y_MAX(x)                                           (((unsigned)(x) & 0x3FFF) << 16)
3951b8e80941Smrg#define   G_02801C_Y_MAX(x)                                           (((x) >> 16) & 0x3FFF)
3952b8e80941Smrg#define   C_02801C_Y_MAX                                              0xC000FFFF
3953b8e80941Smrg#define R_028020_DB_DEPTH_BOUNDS_MIN                                    0x028020
3954b8e80941Smrg#define R_028024_DB_DEPTH_BOUNDS_MAX                                    0x028024
3955b8e80941Smrg#define R_028028_DB_STENCIL_CLEAR                                       0x028028
3956b8e80941Smrg#define   S_028028_CLEAR(x)                                           (((unsigned)(x) & 0xFF) << 0)
3957b8e80941Smrg#define   G_028028_CLEAR(x)                                           (((x) >> 0) & 0xFF)
3958b8e80941Smrg#define   C_028028_CLEAR                                              0xFFFFFF00
3959b8e80941Smrg#define R_02802C_DB_DEPTH_CLEAR                                         0x02802C
3960b8e80941Smrg#define R_028030_PA_SC_SCREEN_SCISSOR_TL                                0x028030
3961b8e80941Smrg#define   S_028030_TL_X(x)                                            (((unsigned)(x) & 0xFFFF) << 0)
3962b8e80941Smrg#define   G_028030_TL_X(x)                                            (((x) >> 0) & 0xFFFF)
3963b8e80941Smrg#define   C_028030_TL_X                                               0xFFFF0000
3964b8e80941Smrg#define   S_028030_TL_Y(x)                                            (((unsigned)(x) & 0xFFFF) << 16)
3965b8e80941Smrg#define   G_028030_TL_Y(x)                                            (((x) >> 16) & 0xFFFF)
3966b8e80941Smrg#define   C_028030_TL_Y                                               0x0000FFFF
3967b8e80941Smrg#define R_028034_PA_SC_SCREEN_SCISSOR_BR                                0x028034
3968b8e80941Smrg#define   S_028034_BR_X(x)                                            (((unsigned)(x) & 0xFFFF) << 0)
3969b8e80941Smrg#define   G_028034_BR_X(x)                                            (((x) >> 0) & 0xFFFF)
3970b8e80941Smrg#define   C_028034_BR_X                                               0xFFFF0000
3971b8e80941Smrg#define   S_028034_BR_Y(x)                                            (((unsigned)(x) & 0xFFFF) << 16)
3972b8e80941Smrg#define   G_028034_BR_Y(x)                                            (((x) >> 16) & 0xFFFF)
3973b8e80941Smrg#define   C_028034_BR_Y                                               0x0000FFFF
3974b8e80941Smrg#define R_028038_DB_Z_INFO                                              0x028038
3975b8e80941Smrg#define   S_028038_FORMAT(x)                                          (((unsigned)(x) & 0x03) << 0)
3976b8e80941Smrg#define   G_028038_FORMAT(x)                                          (((x) >> 0) & 0x03)
3977b8e80941Smrg#define   C_028038_FORMAT                                             0xFFFFFFFC
3978b8e80941Smrg#define   S_028038_NUM_SAMPLES(x)                                     (((unsigned)(x) & 0x03) << 2)
3979b8e80941Smrg#define   G_028038_NUM_SAMPLES(x)                                     (((x) >> 2) & 0x03)
3980b8e80941Smrg#define   C_028038_NUM_SAMPLES                                        0xFFFFFFF3
3981b8e80941Smrg#define   S_028038_SW_MODE(x)                                         (((unsigned)(x) & 0x1F) << 4)
3982b8e80941Smrg#define   G_028038_SW_MODE(x)                                         (((x) >> 4) & 0x1F)
3983b8e80941Smrg#define   C_028038_SW_MODE                                            0xFFFFFE0F
3984b8e80941Smrg#define   S_028038_PARTIALLY_RESIDENT(x)                              (((unsigned)(x) & 0x1) << 12)
3985b8e80941Smrg#define   G_028038_PARTIALLY_RESIDENT(x)                              (((x) >> 12) & 0x1)
3986b8e80941Smrg#define   C_028038_PARTIALLY_RESIDENT                                 0xFFFFEFFF
3987b8e80941Smrg#define   S_028038_FAULT_BEHAVIOR(x)                                  (((unsigned)(x) & 0x03) << 13)
3988b8e80941Smrg#define   G_028038_FAULT_BEHAVIOR(x)                                  (((x) >> 13) & 0x03)
3989b8e80941Smrg#define   C_028038_FAULT_BEHAVIOR                                     0xFFFF9FFF
3990b8e80941Smrg#define   S_028038_ITERATE_FLUSH(x)                                   (((unsigned)(x) & 0x1) << 15)
3991b8e80941Smrg#define   G_028038_ITERATE_FLUSH(x)                                   (((x) >> 15) & 0x1)
3992b8e80941Smrg#define   C_028038_ITERATE_FLUSH                                      0xFFFF7FFF
3993b8e80941Smrg#define   S_028038_MAXMIP(x)                                          (((unsigned)(x) & 0x0F) << 16)
3994b8e80941Smrg#define   G_028038_MAXMIP(x)                                          (((x) >> 16) & 0x0F)
3995b8e80941Smrg#define   C_028038_MAXMIP                                             0xFFF0FFFF
3996b8e80941Smrg#define   S_028038_DECOMPRESS_ON_N_ZPLANES(x)                         (((unsigned)(x) & 0x0F) << 23)
3997b8e80941Smrg#define   G_028038_DECOMPRESS_ON_N_ZPLANES(x)                         (((x) >> 23) & 0x0F)
3998b8e80941Smrg#define   C_028038_DECOMPRESS_ON_N_ZPLANES                            0xF87FFFFF
3999b8e80941Smrg#define   S_028038_ALLOW_EXPCLEAR(x)                                  (((unsigned)(x) & 0x1) << 27)
4000b8e80941Smrg#define   G_028038_ALLOW_EXPCLEAR(x)                                  (((x) >> 27) & 0x1)
4001b8e80941Smrg#define   C_028038_ALLOW_EXPCLEAR                                     0xF7FFFFFF
4002b8e80941Smrg#define   S_028038_READ_SIZE(x)                                       (((unsigned)(x) & 0x1) << 28)
4003b8e80941Smrg#define   G_028038_READ_SIZE(x)                                       (((x) >> 28) & 0x1)
4004b8e80941Smrg#define   C_028038_READ_SIZE                                          0xEFFFFFFF
4005b8e80941Smrg#define   S_028038_TILE_SURFACE_ENABLE(x)                             (((unsigned)(x) & 0x1) << 29)
4006b8e80941Smrg#define   G_028038_TILE_SURFACE_ENABLE(x)                             (((x) >> 29) & 0x1)
4007b8e80941Smrg#define   C_028038_TILE_SURFACE_ENABLE                                0xDFFFFFFF
4008b8e80941Smrg#define   S_028038_CLEAR_DISALLOWED(x)                                (((unsigned)(x) & 0x1) << 30)
4009b8e80941Smrg#define   G_028038_CLEAR_DISALLOWED(x)                                (((x) >> 30) & 0x1)
4010b8e80941Smrg#define   C_028038_CLEAR_DISALLOWED                                   0xBFFFFFFF
4011b8e80941Smrg#define   S_028038_ZRANGE_PRECISION(x)                                (((unsigned)(x) & 0x1) << 31)
4012b8e80941Smrg#define   G_028038_ZRANGE_PRECISION(x)                                (((x) >> 31) & 0x1)
4013b8e80941Smrg#define   C_028038_ZRANGE_PRECISION                                   0x7FFFFFFF
4014b8e80941Smrg#define R_02803C_DB_STENCIL_INFO                                        0x02803C
4015b8e80941Smrg#define   S_02803C_FORMAT(x)                                          (((unsigned)(x) & 0x1) << 0)
4016b8e80941Smrg#define   G_02803C_FORMAT(x)                                          (((x) >> 0) & 0x1)
4017b8e80941Smrg#define   C_02803C_FORMAT                                             0xFFFFFFFE
4018b8e80941Smrg#define   S_02803C_SW_MODE(x)                                         (((unsigned)(x) & 0x1F) << 4)
4019b8e80941Smrg#define   G_02803C_SW_MODE(x)                                         (((x) >> 4) & 0x1F)
4020b8e80941Smrg#define   C_02803C_SW_MODE                                            0xFFFFFE0F
4021b8e80941Smrg#define   S_02803C_PARTIALLY_RESIDENT(x)                              (((unsigned)(x) & 0x1) << 12)
4022b8e80941Smrg#define   G_02803C_PARTIALLY_RESIDENT(x)                              (((x) >> 12) & 0x1)
4023b8e80941Smrg#define   C_02803C_PARTIALLY_RESIDENT                                 0xFFFFEFFF
4024b8e80941Smrg#define   S_02803C_FAULT_BEHAVIOR(x)                                  (((unsigned)(x) & 0x03) << 13)
4025b8e80941Smrg#define   G_02803C_FAULT_BEHAVIOR(x)                                  (((x) >> 13) & 0x03)
4026b8e80941Smrg#define   C_02803C_FAULT_BEHAVIOR                                     0xFFFF9FFF
4027b8e80941Smrg#define   S_02803C_ITERATE_FLUSH(x)                                   (((unsigned)(x) & 0x1) << 15)
4028b8e80941Smrg#define   G_02803C_ITERATE_FLUSH(x)                                   (((x) >> 15) & 0x1)
4029b8e80941Smrg#define   C_02803C_ITERATE_FLUSH                                      0xFFFF7FFF
4030b8e80941Smrg#define   S_02803C_ALLOW_EXPCLEAR(x)                                  (((unsigned)(x) & 0x1) << 27)
4031b8e80941Smrg#define   G_02803C_ALLOW_EXPCLEAR(x)                                  (((x) >> 27) & 0x1)
4032b8e80941Smrg#define   C_02803C_ALLOW_EXPCLEAR                                     0xF7FFFFFF
4033b8e80941Smrg#define   S_02803C_TILE_STENCIL_DISABLE(x)                            (((unsigned)(x) & 0x1) << 29)
4034b8e80941Smrg#define   G_02803C_TILE_STENCIL_DISABLE(x)                            (((x) >> 29) & 0x1)
4035b8e80941Smrg#define   C_02803C_TILE_STENCIL_DISABLE                               0xDFFFFFFF
4036b8e80941Smrg#define   S_02803C_CLEAR_DISALLOWED(x)                                (((unsigned)(x) & 0x1) << 30)
4037b8e80941Smrg#define   G_02803C_CLEAR_DISALLOWED(x)                                (((x) >> 30) & 0x1)
4038b8e80941Smrg#define   C_02803C_CLEAR_DISALLOWED                                   0xBFFFFFFF
4039b8e80941Smrg#define R_028040_DB_Z_READ_BASE                                         0x028040
4040b8e80941Smrg#define R_028044_DB_Z_READ_BASE_HI                                      0x028044
4041b8e80941Smrg#define   S_028044_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
4042b8e80941Smrg#define   G_028044_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
4043b8e80941Smrg#define   C_028044_BASE_HI                                            0xFFFFFF00
4044b8e80941Smrg#define R_028048_DB_STENCIL_READ_BASE                                   0x028048
4045b8e80941Smrg#define R_02804C_DB_STENCIL_READ_BASE_HI                                0x02804C
4046b8e80941Smrg#define   S_02804C_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
4047b8e80941Smrg#define   G_02804C_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
4048b8e80941Smrg#define   C_02804C_BASE_HI                                            0xFFFFFF00
4049b8e80941Smrg#define R_028050_DB_Z_WRITE_BASE                                        0x028050
4050b8e80941Smrg#define R_028054_DB_Z_WRITE_BASE_HI                                     0x028054
4051b8e80941Smrg#define   S_028054_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
4052b8e80941Smrg#define   G_028054_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
4053b8e80941Smrg#define   C_028054_BASE_HI                                            0xFFFFFF00
4054b8e80941Smrg#define R_028058_DB_STENCIL_WRITE_BASE                                  0x028058
4055b8e80941Smrg#define R_02805C_DB_STENCIL_WRITE_BASE_HI                               0x02805C
4056b8e80941Smrg#define   S_02805C_BASE_HI(x)                                         (((unsigned)(x) & 0xFF) << 0)
4057b8e80941Smrg#define   G_02805C_BASE_HI(x)                                         (((x) >> 0) & 0xFF)
4058b8e80941Smrg#define   C_02805C_BASE_HI                                            0xFFFFFF00
4059b8e80941Smrg#define R_028060_DB_DFSM_CONTROL                                        0x028060
4060b8e80941Smrg#define   S_028060_PUNCHOUT_MODE(x)                                   (((unsigned)(x) & 0x03) << 0)
4061b8e80941Smrg#define   G_028060_PUNCHOUT_MODE(x)                                   (((x) >> 0) & 0x03)
4062b8e80941Smrg#define   C_028060_PUNCHOUT_MODE                                      0xFFFFFFFC
4063b8e80941Smrg#define     V_028060_AUTO						0
4064b8e80941Smrg#define     V_028060_FORCE_ON						1
4065b8e80941Smrg#define     V_028060_FORCE_OFF						2
4066b8e80941Smrg#define     V_028060_RESERVED						3
4067b8e80941Smrg#define   S_028060_POPS_DRAIN_PS_ON_OVERLAP(x)                        (((unsigned)(x) & 0x1) << 2)
4068b8e80941Smrg#define   G_028060_POPS_DRAIN_PS_ON_OVERLAP(x)                        (((x) >> 2) & 0x1)
4069b8e80941Smrg#define   C_028060_POPS_DRAIN_PS_ON_OVERLAP                           0xFFFFFFFB
4070b8e80941Smrg#define   S_028060_DISALLOW_OVERFLOW(x)                               (((unsigned)(x) & 0x1) << 3)
4071b8e80941Smrg#define   G_028060_DISALLOW_OVERFLOW(x)                               (((x) >> 3) & 0x1)
4072b8e80941Smrg#define   C_028060_DISALLOW_OVERFLOW                                  0xFFFFFFF7
4073b8e80941Smrg#define R_028068_DB_Z_INFO2                                             0x028068
4074b8e80941Smrg#define   S_028068_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
4075b8e80941Smrg#define   G_028068_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
4076b8e80941Smrg#define   C_028068_EPITCH                                             0xFFFF0000
4077b8e80941Smrg#define R_02806C_DB_STENCIL_INFO2                                       0x02806C
4078b8e80941Smrg#define   S_02806C_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
4079b8e80941Smrg#define   G_02806C_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
4080b8e80941Smrg#define   C_02806C_EPITCH                                             0xFFFF0000
4081b8e80941Smrg#define R_028080_TA_BC_BASE_ADDR                                        0x028080
4082b8e80941Smrg#define R_028084_TA_BC_BASE_ADDR_HI                                     0x028084
4083b8e80941Smrg#define   S_028084_ADDRESS(x)                                         (((unsigned)(x) & 0xFF) << 0)
4084b8e80941Smrg#define   G_028084_ADDRESS(x)                                         (((x) >> 0) & 0xFF)
4085b8e80941Smrg#define   C_028084_ADDRESS                                            0xFFFFFF00
4086b8e80941Smrg#define R_0281E8_COHER_DEST_BASE_HI_0                                   0x0281E8
4087b8e80941Smrg#define   S_0281E8_DEST_BASE_HI_256B(x)                               (((unsigned)(x) & 0xFF) << 0)
4088b8e80941Smrg#define   G_0281E8_DEST_BASE_HI_256B(x)                               (((x) >> 0) & 0xFF)
4089b8e80941Smrg#define   C_0281E8_DEST_BASE_HI_256B                                  0xFFFFFF00
4090b8e80941Smrg#define R_0281EC_COHER_DEST_BASE_HI_1                                   0x0281EC
4091b8e80941Smrg#define   S_0281EC_DEST_BASE_HI_256B(x)                               (((unsigned)(x) & 0xFF) << 0)
4092b8e80941Smrg#define   G_0281EC_DEST_BASE_HI_256B(x)                               (((x) >> 0) & 0xFF)
4093b8e80941Smrg#define   C_0281EC_DEST_BASE_HI_256B                                  0xFFFFFF00
4094b8e80941Smrg#define R_0281F0_COHER_DEST_BASE_HI_2                                   0x0281F0
4095b8e80941Smrg#define   S_0281F0_DEST_BASE_HI_256B(x)                               (((unsigned)(x) & 0xFF) << 0)
4096b8e80941Smrg#define   G_0281F0_DEST_BASE_HI_256B(x)                               (((x) >> 0) & 0xFF)
4097b8e80941Smrg#define   C_0281F0_DEST_BASE_HI_256B                                  0xFFFFFF00
4098b8e80941Smrg#define R_0281F4_COHER_DEST_BASE_HI_3                                   0x0281F4
4099b8e80941Smrg#define   S_0281F4_DEST_BASE_HI_256B(x)                               (((unsigned)(x) & 0xFF) << 0)
4100b8e80941Smrg#define   G_0281F4_DEST_BASE_HI_256B(x)                               (((x) >> 0) & 0xFF)
4101b8e80941Smrg#define   C_0281F4_DEST_BASE_HI_256B                                  0xFFFFFF00
4102b8e80941Smrg#define R_0281F8_COHER_DEST_BASE_2                                      0x0281F8
4103b8e80941Smrg#define R_0281FC_COHER_DEST_BASE_3                                      0x0281FC
4104b8e80941Smrg#define R_028200_PA_SC_WINDOW_OFFSET                                    0x028200
4105b8e80941Smrg#define   S_028200_WINDOW_X_OFFSET(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
4106b8e80941Smrg#define   G_028200_WINDOW_X_OFFSET(x)                                 (((x) >> 0) & 0xFFFF)
4107b8e80941Smrg#define   C_028200_WINDOW_X_OFFSET                                    0xFFFF0000
4108b8e80941Smrg#define   S_028200_WINDOW_Y_OFFSET(x)                                 (((unsigned)(x) & 0xFFFF) << 16)
4109b8e80941Smrg#define   G_028200_WINDOW_Y_OFFSET(x)                                 (((x) >> 16) & 0xFFFF)
4110b8e80941Smrg#define   C_028200_WINDOW_Y_OFFSET                                    0x0000FFFF
4111b8e80941Smrg#define R_028204_PA_SC_WINDOW_SCISSOR_TL                                0x028204
4112b8e80941Smrg#define   S_028204_TL_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4113b8e80941Smrg#define   G_028204_TL_X(x)                                            (((x) >> 0) & 0x7FFF)
4114b8e80941Smrg#define   C_028204_TL_X                                               0xFFFF8000
4115b8e80941Smrg#define   S_028204_TL_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4116b8e80941Smrg#define   G_028204_TL_Y(x)                                            (((x) >> 16) & 0x7FFF)
4117b8e80941Smrg#define   C_028204_TL_Y                                               0x8000FFFF
4118b8e80941Smrg#define   S_028204_WINDOW_OFFSET_DISABLE(x)                           (((unsigned)(x) & 0x1) << 31)
4119b8e80941Smrg#define   G_028204_WINDOW_OFFSET_DISABLE(x)                           (((x) >> 31) & 0x1)
4120b8e80941Smrg#define   C_028204_WINDOW_OFFSET_DISABLE                              0x7FFFFFFF
4121b8e80941Smrg#define R_028208_PA_SC_WINDOW_SCISSOR_BR                                0x028208
4122b8e80941Smrg#define   S_028208_BR_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4123b8e80941Smrg#define   G_028208_BR_X(x)                                            (((x) >> 0) & 0x7FFF)
4124b8e80941Smrg#define   C_028208_BR_X                                               0xFFFF8000
4125b8e80941Smrg#define   S_028208_BR_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4126b8e80941Smrg#define   G_028208_BR_Y(x)                                            (((x) >> 16) & 0x7FFF)
4127b8e80941Smrg#define   C_028208_BR_Y                                               0x8000FFFF
4128b8e80941Smrg#define R_02820C_PA_SC_CLIPRECT_RULE                                    0x02820C
4129b8e80941Smrg#define   S_02820C_CLIP_RULE(x)                                       (((unsigned)(x) & 0xFFFF) << 0)
4130b8e80941Smrg#define   G_02820C_CLIP_RULE(x)                                       (((x) >> 0) & 0xFFFF)
4131b8e80941Smrg#define   C_02820C_CLIP_RULE                                          0xFFFF0000
4132b8e80941Smrg#define R_028210_PA_SC_CLIPRECT_0_TL                                    0x028210
4133b8e80941Smrg#define   S_028210_TL_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4134b8e80941Smrg#define   G_028210_TL_X(x)                                            (((x) >> 0) & 0x7FFF)
4135b8e80941Smrg#define   C_028210_TL_X                                               0xFFFF8000
4136b8e80941Smrg#define   S_028210_TL_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4137b8e80941Smrg#define   G_028210_TL_Y(x)                                            (((x) >> 16) & 0x7FFF)
4138b8e80941Smrg#define   C_028210_TL_Y                                               0x8000FFFF
4139b8e80941Smrg#define R_028214_PA_SC_CLIPRECT_0_BR                                    0x028214
4140b8e80941Smrg#define   S_028214_BR_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4141b8e80941Smrg#define   G_028214_BR_X(x)                                            (((x) >> 0) & 0x7FFF)
4142b8e80941Smrg#define   C_028214_BR_X                                               0xFFFF8000
4143b8e80941Smrg#define   S_028214_BR_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4144b8e80941Smrg#define   G_028214_BR_Y(x)                                            (((x) >> 16) & 0x7FFF)
4145b8e80941Smrg#define   C_028214_BR_Y                                               0x8000FFFF
4146b8e80941Smrg#define R_028218_PA_SC_CLIPRECT_1_TL                                    0x028218
4147b8e80941Smrg#define R_02821C_PA_SC_CLIPRECT_1_BR                                    0x02821C
4148b8e80941Smrg#define R_028220_PA_SC_CLIPRECT_2_TL                                    0x028220
4149b8e80941Smrg#define R_028224_PA_SC_CLIPRECT_2_BR                                    0x028224
4150b8e80941Smrg#define R_028228_PA_SC_CLIPRECT_3_TL                                    0x028228
4151b8e80941Smrg#define R_02822C_PA_SC_CLIPRECT_3_BR                                    0x02822C
4152b8e80941Smrg#define R_028230_PA_SC_EDGERULE                                         0x028230
4153b8e80941Smrg#define   S_028230_ER_TRI(x)                                          (((unsigned)(x) & 0x0F) << 0)
4154b8e80941Smrg#define   G_028230_ER_TRI(x)                                          (((x) >> 0) & 0x0F)
4155b8e80941Smrg#define   C_028230_ER_TRI                                             0xFFFFFFF0
4156b8e80941Smrg#define   S_028230_ER_POINT(x)                                        (((unsigned)(x) & 0x0F) << 4)
4157b8e80941Smrg#define   G_028230_ER_POINT(x)                                        (((x) >> 4) & 0x0F)
4158b8e80941Smrg#define   C_028230_ER_POINT                                           0xFFFFFF0F
4159b8e80941Smrg#define   S_028230_ER_RECT(x)                                         (((unsigned)(x) & 0x0F) << 8)
4160b8e80941Smrg#define   G_028230_ER_RECT(x)                                         (((x) >> 8) & 0x0F)
4161b8e80941Smrg#define   C_028230_ER_RECT                                            0xFFFFF0FF
4162b8e80941Smrg#define   S_028230_ER_LINE_LR(x)                                      (((unsigned)(x) & 0x3F) << 12)
4163b8e80941Smrg#define   G_028230_ER_LINE_LR(x)                                      (((x) >> 12) & 0x3F)
4164b8e80941Smrg#define   C_028230_ER_LINE_LR                                         0xFFFC0FFF
4165b8e80941Smrg#define   S_028230_ER_LINE_RL(x)                                      (((unsigned)(x) & 0x3F) << 18)
4166b8e80941Smrg#define   G_028230_ER_LINE_RL(x)                                      (((x) >> 18) & 0x3F)
4167b8e80941Smrg#define   C_028230_ER_LINE_RL                                         0xFF03FFFF
4168b8e80941Smrg#define   S_028230_ER_LINE_TB(x)                                      (((unsigned)(x) & 0x0F) << 24)
4169b8e80941Smrg#define   G_028230_ER_LINE_TB(x)                                      (((x) >> 24) & 0x0F)
4170b8e80941Smrg#define   C_028230_ER_LINE_TB                                         0xF0FFFFFF
4171b8e80941Smrg#define   S_028230_ER_LINE_BT(x)                                      (((unsigned)(x) & 0x0F) << 28)
4172b8e80941Smrg#define   G_028230_ER_LINE_BT(x)                                      (((x) >> 28) & 0x0F)
4173b8e80941Smrg#define   C_028230_ER_LINE_BT                                         0x0FFFFFFF
4174b8e80941Smrg#define R_028234_PA_SU_HARDWARE_SCREEN_OFFSET                           0x028234
4175b8e80941Smrg#define   S_028234_HW_SCREEN_OFFSET_X(x)                              (((unsigned)(x) & 0x1FF) << 0)
4176b8e80941Smrg#define   G_028234_HW_SCREEN_OFFSET_X(x)                              (((x) >> 0) & 0x1FF)
4177b8e80941Smrg#define   C_028234_HW_SCREEN_OFFSET_X                                 0xFFFFFE00
4178b8e80941Smrg#define   S_028234_HW_SCREEN_OFFSET_Y(x)                              (((unsigned)(x) & 0x1FF) << 16)
4179b8e80941Smrg#define   G_028234_HW_SCREEN_OFFSET_Y(x)                              (((x) >> 16) & 0x1FF)
4180b8e80941Smrg#define   C_028234_HW_SCREEN_OFFSET_Y                                 0xFE00FFFF
4181b8e80941Smrg#define R_028238_CB_TARGET_MASK                                         0x028238
4182b8e80941Smrg#define   S_028238_TARGET0_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 0)
4183b8e80941Smrg#define   G_028238_TARGET0_ENABLE(x)                                  (((x) >> 0) & 0x0F)
4184b8e80941Smrg#define   C_028238_TARGET0_ENABLE                                     0xFFFFFFF0
4185b8e80941Smrg#define   S_028238_TARGET1_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 4)
4186b8e80941Smrg#define   G_028238_TARGET1_ENABLE(x)                                  (((x) >> 4) & 0x0F)
4187b8e80941Smrg#define   C_028238_TARGET1_ENABLE                                     0xFFFFFF0F
4188b8e80941Smrg#define   S_028238_TARGET2_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 8)
4189b8e80941Smrg#define   G_028238_TARGET2_ENABLE(x)                                  (((x) >> 8) & 0x0F)
4190b8e80941Smrg#define   C_028238_TARGET2_ENABLE                                     0xFFFFF0FF
4191b8e80941Smrg#define   S_028238_TARGET3_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 12)
4192b8e80941Smrg#define   G_028238_TARGET3_ENABLE(x)                                  (((x) >> 12) & 0x0F)
4193b8e80941Smrg#define   C_028238_TARGET3_ENABLE                                     0xFFFF0FFF
4194b8e80941Smrg#define   S_028238_TARGET4_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 16)
4195b8e80941Smrg#define   G_028238_TARGET4_ENABLE(x)                                  (((x) >> 16) & 0x0F)
4196b8e80941Smrg#define   C_028238_TARGET4_ENABLE                                     0xFFF0FFFF
4197b8e80941Smrg#define   S_028238_TARGET5_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 20)
4198b8e80941Smrg#define   G_028238_TARGET5_ENABLE(x)                                  (((x) >> 20) & 0x0F)
4199b8e80941Smrg#define   C_028238_TARGET5_ENABLE                                     0xFF0FFFFF
4200b8e80941Smrg#define   S_028238_TARGET6_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 24)
4201b8e80941Smrg#define   G_028238_TARGET6_ENABLE(x)                                  (((x) >> 24) & 0x0F)
4202b8e80941Smrg#define   C_028238_TARGET6_ENABLE                                     0xF0FFFFFF
4203b8e80941Smrg#define   S_028238_TARGET7_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 28)
4204b8e80941Smrg#define   G_028238_TARGET7_ENABLE(x)                                  (((x) >> 28) & 0x0F)
4205b8e80941Smrg#define   C_028238_TARGET7_ENABLE                                     0x0FFFFFFF
4206b8e80941Smrg#define R_02823C_CB_SHADER_MASK                                         0x02823C
4207b8e80941Smrg#define   S_02823C_OUTPUT0_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 0)
4208b8e80941Smrg#define   G_02823C_OUTPUT0_ENABLE(x)                                  (((x) >> 0) & 0x0F)
4209b8e80941Smrg#define   C_02823C_OUTPUT0_ENABLE                                     0xFFFFFFF0
4210b8e80941Smrg#define   S_02823C_OUTPUT1_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 4)
4211b8e80941Smrg#define   G_02823C_OUTPUT1_ENABLE(x)                                  (((x) >> 4) & 0x0F)
4212b8e80941Smrg#define   C_02823C_OUTPUT1_ENABLE                                     0xFFFFFF0F
4213b8e80941Smrg#define   S_02823C_OUTPUT2_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 8)
4214b8e80941Smrg#define   G_02823C_OUTPUT2_ENABLE(x)                                  (((x) >> 8) & 0x0F)
4215b8e80941Smrg#define   C_02823C_OUTPUT2_ENABLE                                     0xFFFFF0FF
4216b8e80941Smrg#define   S_02823C_OUTPUT3_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 12)
4217b8e80941Smrg#define   G_02823C_OUTPUT3_ENABLE(x)                                  (((x) >> 12) & 0x0F)
4218b8e80941Smrg#define   C_02823C_OUTPUT3_ENABLE                                     0xFFFF0FFF
4219b8e80941Smrg#define   S_02823C_OUTPUT4_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 16)
4220b8e80941Smrg#define   G_02823C_OUTPUT4_ENABLE(x)                                  (((x) >> 16) & 0x0F)
4221b8e80941Smrg#define   C_02823C_OUTPUT4_ENABLE                                     0xFFF0FFFF
4222b8e80941Smrg#define   S_02823C_OUTPUT5_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 20)
4223b8e80941Smrg#define   G_02823C_OUTPUT5_ENABLE(x)                                  (((x) >> 20) & 0x0F)
4224b8e80941Smrg#define   C_02823C_OUTPUT5_ENABLE                                     0xFF0FFFFF
4225b8e80941Smrg#define   S_02823C_OUTPUT6_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 24)
4226b8e80941Smrg#define   G_02823C_OUTPUT6_ENABLE(x)                                  (((x) >> 24) & 0x0F)
4227b8e80941Smrg#define   C_02823C_OUTPUT6_ENABLE                                     0xF0FFFFFF
4228b8e80941Smrg#define   S_02823C_OUTPUT7_ENABLE(x)                                  (((unsigned)(x) & 0x0F) << 28)
4229b8e80941Smrg#define   G_02823C_OUTPUT7_ENABLE(x)                                  (((x) >> 28) & 0x0F)
4230b8e80941Smrg#define   C_02823C_OUTPUT7_ENABLE                                     0x0FFFFFFF
4231b8e80941Smrg#define R_028240_PA_SC_GENERIC_SCISSOR_TL                               0x028240
4232b8e80941Smrg#define   S_028240_TL_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4233b8e80941Smrg#define   G_028240_TL_X(x)                                            (((x) >> 0) & 0x7FFF)
4234b8e80941Smrg#define   C_028240_TL_X                                               0xFFFF8000
4235b8e80941Smrg#define   S_028240_TL_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4236b8e80941Smrg#define   G_028240_TL_Y(x)                                            (((x) >> 16) & 0x7FFF)
4237b8e80941Smrg#define   C_028240_TL_Y                                               0x8000FFFF
4238b8e80941Smrg#define   S_028240_WINDOW_OFFSET_DISABLE(x)                           (((unsigned)(x) & 0x1) << 31)
4239b8e80941Smrg#define   G_028240_WINDOW_OFFSET_DISABLE(x)                           (((x) >> 31) & 0x1)
4240b8e80941Smrg#define   C_028240_WINDOW_OFFSET_DISABLE                              0x7FFFFFFF
4241b8e80941Smrg#define R_028244_PA_SC_GENERIC_SCISSOR_BR                               0x028244
4242b8e80941Smrg#define   S_028244_BR_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4243b8e80941Smrg#define   G_028244_BR_X(x)                                            (((x) >> 0) & 0x7FFF)
4244b8e80941Smrg#define   C_028244_BR_X                                               0xFFFF8000
4245b8e80941Smrg#define   S_028244_BR_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4246b8e80941Smrg#define   G_028244_BR_Y(x)                                            (((x) >> 16) & 0x7FFF)
4247b8e80941Smrg#define   C_028244_BR_Y                                               0x8000FFFF
4248b8e80941Smrg#define R_028248_COHER_DEST_BASE_0                                      0x028248
4249b8e80941Smrg#define R_02824C_COHER_DEST_BASE_1                                      0x02824C
4250b8e80941Smrg#define R_028250_PA_SC_VPORT_SCISSOR_0_TL                               0x028250
4251b8e80941Smrg#define   S_028250_TL_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4252b8e80941Smrg#define   G_028250_TL_X(x)                                            (((x) >> 0) & 0x7FFF)
4253b8e80941Smrg#define   C_028250_TL_X                                               0xFFFF8000
4254b8e80941Smrg#define   S_028250_TL_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4255b8e80941Smrg#define   G_028250_TL_Y(x)                                            (((x) >> 16) & 0x7FFF)
4256b8e80941Smrg#define   C_028250_TL_Y                                               0x8000FFFF
4257b8e80941Smrg#define   S_028250_WINDOW_OFFSET_DISABLE(x)                           (((unsigned)(x) & 0x1) << 31)
4258b8e80941Smrg#define   G_028250_WINDOW_OFFSET_DISABLE(x)                           (((x) >> 31) & 0x1)
4259b8e80941Smrg#define   C_028250_WINDOW_OFFSET_DISABLE                              0x7FFFFFFF
4260b8e80941Smrg#define R_028254_PA_SC_VPORT_SCISSOR_0_BR                               0x028254
4261b8e80941Smrg#define   S_028254_BR_X(x)                                            (((unsigned)(x) & 0x7FFF) << 0)
4262b8e80941Smrg#define   G_028254_BR_X(x)                                            (((x) >> 0) & 0x7FFF)
4263b8e80941Smrg#define   C_028254_BR_X                                               0xFFFF8000
4264b8e80941Smrg#define   S_028254_BR_Y(x)                                            (((unsigned)(x) & 0x7FFF) << 16)
4265b8e80941Smrg#define   G_028254_BR_Y(x)                                            (((x) >> 16) & 0x7FFF)
4266b8e80941Smrg#define   C_028254_BR_Y                                               0x8000FFFF
4267b8e80941Smrg#define R_028258_PA_SC_VPORT_SCISSOR_1_TL                               0x028258
4268b8e80941Smrg#define R_02825C_PA_SC_VPORT_SCISSOR_1_BR                               0x02825C
4269b8e80941Smrg#define R_028260_PA_SC_VPORT_SCISSOR_2_TL                               0x028260
4270b8e80941Smrg#define R_028264_PA_SC_VPORT_SCISSOR_2_BR                               0x028264
4271b8e80941Smrg#define R_028268_PA_SC_VPORT_SCISSOR_3_TL                               0x028268
4272b8e80941Smrg#define R_02826C_PA_SC_VPORT_SCISSOR_3_BR                               0x02826C
4273b8e80941Smrg#define R_028270_PA_SC_VPORT_SCISSOR_4_TL                               0x028270
4274b8e80941Smrg#define R_028274_PA_SC_VPORT_SCISSOR_4_BR                               0x028274
4275b8e80941Smrg#define R_028278_PA_SC_VPORT_SCISSOR_5_TL                               0x028278
4276b8e80941Smrg#define R_02827C_PA_SC_VPORT_SCISSOR_5_BR                               0x02827C
4277b8e80941Smrg#define R_028280_PA_SC_VPORT_SCISSOR_6_TL                               0x028280
4278b8e80941Smrg#define R_028284_PA_SC_VPORT_SCISSOR_6_BR                               0x028284
4279b8e80941Smrg#define R_028288_PA_SC_VPORT_SCISSOR_7_TL                               0x028288
4280b8e80941Smrg#define R_02828C_PA_SC_VPORT_SCISSOR_7_BR                               0x02828C
4281b8e80941Smrg#define R_028290_PA_SC_VPORT_SCISSOR_8_TL                               0x028290
4282b8e80941Smrg#define R_028294_PA_SC_VPORT_SCISSOR_8_BR                               0x028294
4283b8e80941Smrg#define R_028298_PA_SC_VPORT_SCISSOR_9_TL                               0x028298
4284b8e80941Smrg#define R_02829C_PA_SC_VPORT_SCISSOR_9_BR                               0x02829C
4285b8e80941Smrg#define R_0282A0_PA_SC_VPORT_SCISSOR_10_TL                              0x0282A0
4286b8e80941Smrg#define R_0282A4_PA_SC_VPORT_SCISSOR_10_BR                              0x0282A4
4287b8e80941Smrg#define R_0282A8_PA_SC_VPORT_SCISSOR_11_TL                              0x0282A8
4288b8e80941Smrg#define R_0282AC_PA_SC_VPORT_SCISSOR_11_BR                              0x0282AC
4289b8e80941Smrg#define R_0282B0_PA_SC_VPORT_SCISSOR_12_TL                              0x0282B0
4290b8e80941Smrg#define R_0282B4_PA_SC_VPORT_SCISSOR_12_BR                              0x0282B4
4291b8e80941Smrg#define R_0282B8_PA_SC_VPORT_SCISSOR_13_TL                              0x0282B8
4292b8e80941Smrg#define R_0282BC_PA_SC_VPORT_SCISSOR_13_BR                              0x0282BC
4293b8e80941Smrg#define R_0282C0_PA_SC_VPORT_SCISSOR_14_TL                              0x0282C0
4294b8e80941Smrg#define R_0282C4_PA_SC_VPORT_SCISSOR_14_BR                              0x0282C4
4295b8e80941Smrg#define R_0282C8_PA_SC_VPORT_SCISSOR_15_TL                              0x0282C8
4296b8e80941Smrg#define R_0282CC_PA_SC_VPORT_SCISSOR_15_BR                              0x0282CC
4297b8e80941Smrg#define R_0282D0_PA_SC_VPORT_ZMIN_0                                     0x0282D0
4298b8e80941Smrg#define R_0282D4_PA_SC_VPORT_ZMAX_0                                     0x0282D4
4299b8e80941Smrg#define R_0282D8_PA_SC_VPORT_ZMIN_1                                     0x0282D8
4300b8e80941Smrg#define R_0282DC_PA_SC_VPORT_ZMAX_1                                     0x0282DC
4301b8e80941Smrg#define R_0282E0_PA_SC_VPORT_ZMIN_2                                     0x0282E0
4302b8e80941Smrg#define R_0282E4_PA_SC_VPORT_ZMAX_2                                     0x0282E4
4303b8e80941Smrg#define R_0282E8_PA_SC_VPORT_ZMIN_3                                     0x0282E8
4304b8e80941Smrg#define R_0282EC_PA_SC_VPORT_ZMAX_3                                     0x0282EC
4305b8e80941Smrg#define R_0282F0_PA_SC_VPORT_ZMIN_4                                     0x0282F0
4306b8e80941Smrg#define R_0282F4_PA_SC_VPORT_ZMAX_4                                     0x0282F4
4307b8e80941Smrg#define R_0282F8_PA_SC_VPORT_ZMIN_5                                     0x0282F8
4308b8e80941Smrg#define R_0282FC_PA_SC_VPORT_ZMAX_5                                     0x0282FC
4309b8e80941Smrg#define R_028300_PA_SC_VPORT_ZMIN_6                                     0x028300
4310b8e80941Smrg#define R_028304_PA_SC_VPORT_ZMAX_6                                     0x028304
4311b8e80941Smrg#define R_028308_PA_SC_VPORT_ZMIN_7                                     0x028308
4312b8e80941Smrg#define R_02830C_PA_SC_VPORT_ZMAX_7                                     0x02830C
4313b8e80941Smrg#define R_028310_PA_SC_VPORT_ZMIN_8                                     0x028310
4314b8e80941Smrg#define R_028314_PA_SC_VPORT_ZMAX_8                                     0x028314
4315b8e80941Smrg#define R_028318_PA_SC_VPORT_ZMIN_9                                     0x028318
4316b8e80941Smrg#define R_02831C_PA_SC_VPORT_ZMAX_9                                     0x02831C
4317b8e80941Smrg#define R_028320_PA_SC_VPORT_ZMIN_10                                    0x028320
4318b8e80941Smrg#define R_028324_PA_SC_VPORT_ZMAX_10                                    0x028324
4319b8e80941Smrg#define R_028328_PA_SC_VPORT_ZMIN_11                                    0x028328
4320b8e80941Smrg#define R_02832C_PA_SC_VPORT_ZMAX_11                                    0x02832C
4321b8e80941Smrg#define R_028330_PA_SC_VPORT_ZMIN_12                                    0x028330
4322b8e80941Smrg#define R_028334_PA_SC_VPORT_ZMAX_12                                    0x028334
4323b8e80941Smrg#define R_028338_PA_SC_VPORT_ZMIN_13                                    0x028338
4324b8e80941Smrg#define R_02833C_PA_SC_VPORT_ZMAX_13                                    0x02833C
4325b8e80941Smrg#define R_028340_PA_SC_VPORT_ZMIN_14                                    0x028340
4326b8e80941Smrg#define R_028344_PA_SC_VPORT_ZMAX_14                                    0x028344
4327b8e80941Smrg#define R_028348_PA_SC_VPORT_ZMIN_15                                    0x028348
4328b8e80941Smrg#define R_02834C_PA_SC_VPORT_ZMAX_15                                    0x02834C
4329b8e80941Smrg#define R_028350_PA_SC_RASTER_CONFIG                                    0x028350
4330b8e80941Smrg#define   S_028350_RB_MAP_PKR0(x)                                     (((unsigned)(x) & 0x03) << 0)
4331b8e80941Smrg#define   G_028350_RB_MAP_PKR0(x)                                     (((x) >> 0) & 0x03)
4332b8e80941Smrg#define   C_028350_RB_MAP_PKR0                                        0xFFFFFFFC
4333b8e80941Smrg#define   S_028350_RB_MAP_PKR1(x)                                     (((unsigned)(x) & 0x03) << 2)
4334b8e80941Smrg#define   G_028350_RB_MAP_PKR1(x)                                     (((x) >> 2) & 0x03)
4335b8e80941Smrg#define   C_028350_RB_MAP_PKR1                                        0xFFFFFFF3
4336b8e80941Smrg#define   S_028350_RB_XSEL2(x)                                        (((unsigned)(x) & 0x03) << 4)
4337b8e80941Smrg#define   G_028350_RB_XSEL2(x)                                        (((x) >> 4) & 0x03)
4338b8e80941Smrg#define   C_028350_RB_XSEL2                                           0xFFFFFFCF
4339b8e80941Smrg#define   S_028350_RB_XSEL(x)                                         (((unsigned)(x) & 0x1) << 6)
4340b8e80941Smrg#define   G_028350_RB_XSEL(x)                                         (((x) >> 6) & 0x1)
4341b8e80941Smrg#define   C_028350_RB_XSEL                                            0xFFFFFFBF
4342b8e80941Smrg#define   S_028350_RB_YSEL(x)                                         (((unsigned)(x) & 0x1) << 7)
4343b8e80941Smrg#define   G_028350_RB_YSEL(x)                                         (((x) >> 7) & 0x1)
4344b8e80941Smrg#define   C_028350_RB_YSEL                                            0xFFFFFF7F
4345b8e80941Smrg#define   S_028350_PKR_MAP(x)                                         (((unsigned)(x) & 0x03) << 8)
4346b8e80941Smrg#define   G_028350_PKR_MAP(x)                                         (((x) >> 8) & 0x03)
4347b8e80941Smrg#define   C_028350_PKR_MAP                                            0xFFFFFCFF
4348b8e80941Smrg#define   S_028350_PKR_XSEL(x)                                        (((unsigned)(x) & 0x03) << 10)
4349b8e80941Smrg#define   G_028350_PKR_XSEL(x)                                        (((x) >> 10) & 0x03)
4350b8e80941Smrg#define   C_028350_PKR_XSEL                                           0xFFFFF3FF
4351b8e80941Smrg#define   S_028350_PKR_YSEL(x)                                        (((unsigned)(x) & 0x03) << 12)
4352b8e80941Smrg#define   G_028350_PKR_YSEL(x)                                        (((x) >> 12) & 0x03)
4353b8e80941Smrg#define   C_028350_PKR_YSEL                                           0xFFFFCFFF
4354b8e80941Smrg#define   S_028350_PKR_XSEL2(x)                                       (((unsigned)(x) & 0x03) << 14)
4355b8e80941Smrg#define   G_028350_PKR_XSEL2(x)                                       (((x) >> 14) & 0x03)
4356b8e80941Smrg#define   C_028350_PKR_XSEL2                                          0xFFFF3FFF
4357b8e80941Smrg#define   S_028350_SC_MAP(x)                                          (((unsigned)(x) & 0x03) << 16)
4358b8e80941Smrg#define   G_028350_SC_MAP(x)                                          (((x) >> 16) & 0x03)
4359b8e80941Smrg#define   C_028350_SC_MAP                                             0xFFFCFFFF
4360b8e80941Smrg#define   S_028350_SC_XSEL(x)                                         (((unsigned)(x) & 0x03) << 18)
4361b8e80941Smrg#define   G_028350_SC_XSEL(x)                                         (((x) >> 18) & 0x03)
4362b8e80941Smrg#define   C_028350_SC_XSEL                                            0xFFF3FFFF
4363b8e80941Smrg#define   S_028350_SC_YSEL(x)                                         (((unsigned)(x) & 0x03) << 20)
4364b8e80941Smrg#define   G_028350_SC_YSEL(x)                                         (((x) >> 20) & 0x03)
4365b8e80941Smrg#define   C_028350_SC_YSEL                                            0xFFCFFFFF
4366b8e80941Smrg#define   S_028350_SE_MAP(x)                                          (((unsigned)(x) & 0x03) << 24)
4367b8e80941Smrg#define   G_028350_SE_MAP(x)                                          (((x) >> 24) & 0x03)
4368b8e80941Smrg#define   C_028350_SE_MAP                                             0xFCFFFFFF
4369b8e80941Smrg#define   S_028350_SE_XSEL_GFX9(x)                                    (((unsigned)(x) & 0x07) << 26)
4370b8e80941Smrg#define   G_028350_SE_XSEL_GFX9(x)                                    (((x) >> 26) & 0x07)
4371b8e80941Smrg#define   C_028350_SE_XSEL_GFX9                                       0xE3FFFFFF
4372b8e80941Smrg#define   S_028350_SE_YSEL_GFX9(x)                                    (((unsigned)(x) & 0x07) << 29)
4373b8e80941Smrg#define   G_028350_SE_YSEL_GFX9(x)                                    (((x) >> 29) & 0x07)
4374b8e80941Smrg#define   C_028350_SE_YSEL_GFX9                                       0x1FFFFFFF
4375b8e80941Smrg#define R_028354_PA_SC_RASTER_CONFIG_1                                  0x028354
4376b8e80941Smrg#define   S_028354_SE_PAIR_MAP(x)                                     (((unsigned)(x) & 0x03) << 0)
4377b8e80941Smrg#define   G_028354_SE_PAIR_MAP(x)                                     (((x) >> 0) & 0x03)
4378b8e80941Smrg#define   C_028354_SE_PAIR_MAP                                        0xFFFFFFFC
4379b8e80941Smrg#define   S_028354_SE_PAIR_XSEL_GFX9(x)                               (((unsigned)(x) & 0x07) << 2)
4380b8e80941Smrg#define   G_028354_SE_PAIR_XSEL_GFX9(x)                               (((x) >> 2) & 0x07)
4381b8e80941Smrg#define   C_028354_SE_PAIR_XSEL_GFX9                                  0xFFFFFFE3
4382b8e80941Smrg#define   S_028354_SE_PAIR_YSEL_GFX9(x)                               (((unsigned)(x) & 0x07) << 5)
4383b8e80941Smrg#define   G_028354_SE_PAIR_YSEL_GFX9(x)                               (((x) >> 5) & 0x07)
4384b8e80941Smrg#define   C_028354_SE_PAIR_YSEL_GFX9                                  0xFFFFFF1F
4385b8e80941Smrg#define R_028358_PA_SC_SCREEN_EXTENT_CONTROL                            0x028358
4386b8e80941Smrg#define   S_028358_SLICE_EVEN_ENABLE(x)                               (((unsigned)(x) & 0x03) << 0)
4387b8e80941Smrg#define   G_028358_SLICE_EVEN_ENABLE(x)                               (((x) >> 0) & 0x03)
4388b8e80941Smrg#define   C_028358_SLICE_EVEN_ENABLE                                  0xFFFFFFFC
4389b8e80941Smrg#define   S_028358_SLICE_ODD_ENABLE(x)                                (((unsigned)(x) & 0x03) << 2)
4390b8e80941Smrg#define   G_028358_SLICE_ODD_ENABLE(x)                                (((x) >> 2) & 0x03)
4391b8e80941Smrg#define   C_028358_SLICE_ODD_ENABLE                                   0xFFFFFFF3
4392b8e80941Smrg#define R_02835C_PA_SC_TILE_STEERING_OVERRIDE                           0x02835C
4393b8e80941Smrg#define   S_02835C_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 0)
4394b8e80941Smrg#define   G_02835C_ENABLE(x)                                          (((x) >> 0) & 0x1)
4395b8e80941Smrg#define   C_02835C_ENABLE                                             0xFFFFFFFE
4396b8e80941Smrg#define   S_02835C_NUM_SE(x)                                          (((unsigned)(x) & 0x03) << 1)
4397b8e80941Smrg#define   G_02835C_NUM_SE(x)                                          (((x) >> 1) & 0x03)
4398b8e80941Smrg#define   C_02835C_NUM_SE                                             0xFFFFFFF9
4399b8e80941Smrg#define   S_02835C_NUM_RB_PER_SE(x)                                   (((unsigned)(x) & 0x03) << 5)
4400b8e80941Smrg#define   G_02835C_NUM_RB_PER_SE(x)                                   (((x) >> 5) & 0x03)
4401b8e80941Smrg#define   C_02835C_NUM_RB_PER_SE                                      0xFFFFFF9F
4402b8e80941Smrg#define R_028360_CP_PERFMON_CNTX_CNTL                                   0x028360
4403b8e80941Smrg#define   S_028360_PERFMON_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 31)
4404b8e80941Smrg#define   G_028360_PERFMON_ENABLE(x)                                  (((x) >> 31) & 0x1)
4405b8e80941Smrg#define   C_028360_PERFMON_ENABLE                                     0x7FFFFFFF
4406b8e80941Smrg#define R_0283A0_PA_SC_RIGHT_VERT_GRID                                  0x0283A0
4407b8e80941Smrg#define   S_0283A0_LEFT_QTR(x)                                        (((unsigned)(x) & 0xFF) << 0)
4408b8e80941Smrg#define   G_0283A0_LEFT_QTR(x)                                        (((x) >> 0) & 0xFF)
4409b8e80941Smrg#define   C_0283A0_LEFT_QTR                                           0xFFFFFF00
4410b8e80941Smrg#define   S_0283A0_LEFT_HALF(x)                                       (((unsigned)(x) & 0xFF) << 8)
4411b8e80941Smrg#define   G_0283A0_LEFT_HALF(x)                                       (((x) >> 8) & 0xFF)
4412b8e80941Smrg#define   C_0283A0_LEFT_HALF                                          0xFFFF00FF
4413b8e80941Smrg#define   S_0283A0_RIGHT_HALF(x)                                      (((unsigned)(x) & 0xFF) << 16)
4414b8e80941Smrg#define   G_0283A0_RIGHT_HALF(x)                                      (((x) >> 16) & 0xFF)
4415b8e80941Smrg#define   C_0283A0_RIGHT_HALF                                         0xFF00FFFF
4416b8e80941Smrg#define   S_0283A0_RIGHT_QTR(x)                                       (((unsigned)(x) & 0xFF) << 24)
4417b8e80941Smrg#define   G_0283A0_RIGHT_QTR(x)                                       (((x) >> 24) & 0xFF)
4418b8e80941Smrg#define   C_0283A0_RIGHT_QTR                                          0x00FFFFFF
4419b8e80941Smrg#define R_0283A4_PA_SC_LEFT_VERT_GRID                                   0x0283A4
4420b8e80941Smrg#define   S_0283A4_LEFT_QTR(x)                                        (((unsigned)(x) & 0xFF) << 0)
4421b8e80941Smrg#define   G_0283A4_LEFT_QTR(x)                                        (((x) >> 0) & 0xFF)
4422b8e80941Smrg#define   C_0283A4_LEFT_QTR                                           0xFFFFFF00
4423b8e80941Smrg#define   S_0283A4_LEFT_HALF(x)                                       (((unsigned)(x) & 0xFF) << 8)
4424b8e80941Smrg#define   G_0283A4_LEFT_HALF(x)                                       (((x) >> 8) & 0xFF)
4425b8e80941Smrg#define   C_0283A4_LEFT_HALF                                          0xFFFF00FF
4426b8e80941Smrg#define   S_0283A4_RIGHT_HALF(x)                                      (((unsigned)(x) & 0xFF) << 16)
4427b8e80941Smrg#define   G_0283A4_RIGHT_HALF(x)                                      (((x) >> 16) & 0xFF)
4428b8e80941Smrg#define   C_0283A4_RIGHT_HALF                                         0xFF00FFFF
4429b8e80941Smrg#define   S_0283A4_RIGHT_QTR(x)                                       (((unsigned)(x) & 0xFF) << 24)
4430b8e80941Smrg#define   G_0283A4_RIGHT_QTR(x)                                       (((x) >> 24) & 0xFF)
4431b8e80941Smrg#define   C_0283A4_RIGHT_QTR                                          0x00FFFFFF
4432b8e80941Smrg#define R_0283A8_PA_SC_HORIZ_GRID                                       0x0283A8
4433b8e80941Smrg#define   S_0283A8_TOP_QTR(x)                                         (((unsigned)(x) & 0xFF) << 0)
4434b8e80941Smrg#define   G_0283A8_TOP_QTR(x)                                         (((x) >> 0) & 0xFF)
4435b8e80941Smrg#define   C_0283A8_TOP_QTR                                            0xFFFFFF00
4436b8e80941Smrg#define   S_0283A8_TOP_HALF(x)                                        (((unsigned)(x) & 0xFF) << 8)
4437b8e80941Smrg#define   G_0283A8_TOP_HALF(x)                                        (((x) >> 8) & 0xFF)
4438b8e80941Smrg#define   C_0283A8_TOP_HALF                                           0xFFFF00FF
4439b8e80941Smrg#define   S_0283A8_BOT_HALF(x)                                        (((unsigned)(x) & 0xFF) << 16)
4440b8e80941Smrg#define   G_0283A8_BOT_HALF(x)                                        (((x) >> 16) & 0xFF)
4441b8e80941Smrg#define   C_0283A8_BOT_HALF                                           0xFF00FFFF
4442b8e80941Smrg#define   S_0283A8_BOT_QTR(x)                                         (((unsigned)(x) & 0xFF) << 24)
4443b8e80941Smrg#define   G_0283A8_BOT_QTR(x)                                         (((x) >> 24) & 0xFF)
4444b8e80941Smrg#define   C_0283A8_BOT_QTR                                            0x00FFFFFF
4445b8e80941Smrg#define R_02840C_VGT_MULTI_PRIM_IB_RESET_INDX                           0x02840C
4446b8e80941Smrg#define R_028414_CB_BLEND_RED                                           0x028414
4447b8e80941Smrg#define R_028418_CB_BLEND_GREEN                                         0x028418
4448b8e80941Smrg#define R_02841C_CB_BLEND_BLUE                                          0x02841C
4449b8e80941Smrg#define R_028420_CB_BLEND_ALPHA                                         0x028420
4450b8e80941Smrg#define R_028424_CB_DCC_CONTROL                                         0x028424
4451b8e80941Smrg#define   S_028424_OVERWRITE_COMBINER_DISABLE(x)                      (((unsigned)(x) & 0x1) << 0)
4452b8e80941Smrg#define   G_028424_OVERWRITE_COMBINER_DISABLE(x)                      (((x) >> 0) & 0x1)
4453b8e80941Smrg#define   C_028424_OVERWRITE_COMBINER_DISABLE                         0xFFFFFFFE
4454b8e80941Smrg#define   S_028424_OVERWRITE_COMBINER_MRT_SHARING_DISABLE(x)          (((unsigned)(x) & 0x1) << 1)
4455b8e80941Smrg#define   G_028424_OVERWRITE_COMBINER_MRT_SHARING_DISABLE(x)          (((x) >> 1) & 0x1)
4456b8e80941Smrg#define   C_028424_OVERWRITE_COMBINER_MRT_SHARING_DISABLE             0xFFFFFFFD
4457b8e80941Smrg#define   S_028424_OVERWRITE_COMBINER_WATERMARK(x)                    (((unsigned)(x) & 0x1F) << 2)
4458b8e80941Smrg#define   G_028424_OVERWRITE_COMBINER_WATERMARK(x)                    (((x) >> 2) & 0x1F)
4459b8e80941Smrg#define   C_028424_OVERWRITE_COMBINER_WATERMARK                       0xFFFFFF83
4460b8e80941Smrg#define   S_028424_DISABLE_CONSTANT_ENCODE_REG(x)                     (((unsigned)(x) & 0x1) << 10) /* Raven2+ */
4461b8e80941Smrg#define   G_028424_DISABLE_CONSTANT_ENCODE_REG(x)                     (((x) >> 10) & 0x1)
4462b8e80941Smrg#define   C_028424_DISABLE_CONSTANT_ENCODE_REG                        0xFFFFFBFF
4463b8e80941Smrg#define R_02842C_DB_STENCIL_CONTROL                                     0x02842C
4464b8e80941Smrg#define   S_02842C_STENCILFAIL(x)                                     (((unsigned)(x) & 0x0F) << 0)
4465b8e80941Smrg#define   G_02842C_STENCILFAIL(x)                                     (((x) >> 0) & 0x0F)
4466b8e80941Smrg#define   C_02842C_STENCILFAIL                                        0xFFFFFFF0
4467b8e80941Smrg#define   S_02842C_STENCILZPASS(x)                                    (((unsigned)(x) & 0x0F) << 4)
4468b8e80941Smrg#define   G_02842C_STENCILZPASS(x)                                    (((x) >> 4) & 0x0F)
4469b8e80941Smrg#define   C_02842C_STENCILZPASS                                       0xFFFFFF0F
4470b8e80941Smrg#define   S_02842C_STENCILZFAIL(x)                                    (((unsigned)(x) & 0x0F) << 8)
4471b8e80941Smrg#define   G_02842C_STENCILZFAIL(x)                                    (((x) >> 8) & 0x0F)
4472b8e80941Smrg#define   C_02842C_STENCILZFAIL                                       0xFFFFF0FF
4473b8e80941Smrg#define   S_02842C_STENCILFAIL_BF(x)                                  (((unsigned)(x) & 0x0F) << 12)
4474b8e80941Smrg#define   G_02842C_STENCILFAIL_BF(x)                                  (((x) >> 12) & 0x0F)
4475b8e80941Smrg#define   C_02842C_STENCILFAIL_BF                                     0xFFFF0FFF
4476b8e80941Smrg#define   S_02842C_STENCILZPASS_BF(x)                                 (((unsigned)(x) & 0x0F) << 16)
4477b8e80941Smrg#define   G_02842C_STENCILZPASS_BF(x)                                 (((x) >> 16) & 0x0F)
4478b8e80941Smrg#define   C_02842C_STENCILZPASS_BF                                    0xFFF0FFFF
4479b8e80941Smrg#define   S_02842C_STENCILZFAIL_BF(x)                                 (((unsigned)(x) & 0x0F) << 20)
4480b8e80941Smrg#define   G_02842C_STENCILZFAIL_BF(x)                                 (((x) >> 20) & 0x0F)
4481b8e80941Smrg#define   C_02842C_STENCILZFAIL_BF                                    0xFF0FFFFF
4482b8e80941Smrg#define R_028430_DB_STENCILREFMASK                                      0x028430
4483b8e80941Smrg#define   S_028430_STENCILTESTVAL(x)                                  (((unsigned)(x) & 0xFF) << 0)
4484b8e80941Smrg#define   G_028430_STENCILTESTVAL(x)                                  (((x) >> 0) & 0xFF)
4485b8e80941Smrg#define   C_028430_STENCILTESTVAL                                     0xFFFFFF00
4486b8e80941Smrg#define   S_028430_STENCILMASK(x)                                     (((unsigned)(x) & 0xFF) << 8)
4487b8e80941Smrg#define   G_028430_STENCILMASK(x)                                     (((x) >> 8) & 0xFF)
4488b8e80941Smrg#define   C_028430_STENCILMASK                                        0xFFFF00FF
4489b8e80941Smrg#define   S_028430_STENCILWRITEMASK(x)                                (((unsigned)(x) & 0xFF) << 16)
4490b8e80941Smrg#define   G_028430_STENCILWRITEMASK(x)                                (((x) >> 16) & 0xFF)
4491b8e80941Smrg#define   C_028430_STENCILWRITEMASK                                   0xFF00FFFF
4492b8e80941Smrg#define   S_028430_STENCILOPVAL(x)                                    (((unsigned)(x) & 0xFF) << 24)
4493b8e80941Smrg#define   G_028430_STENCILOPVAL(x)                                    (((x) >> 24) & 0xFF)
4494b8e80941Smrg#define   C_028430_STENCILOPVAL                                       0x00FFFFFF
4495b8e80941Smrg#define R_028434_DB_STENCILREFMASK_BF                                   0x028434
4496b8e80941Smrg#define   S_028434_STENCILTESTVAL_BF(x)                               (((unsigned)(x) & 0xFF) << 0)
4497b8e80941Smrg#define   G_028434_STENCILTESTVAL_BF(x)                               (((x) >> 0) & 0xFF)
4498b8e80941Smrg#define   C_028434_STENCILTESTVAL_BF                                  0xFFFFFF00
4499b8e80941Smrg#define   S_028434_STENCILMASK_BF(x)                                  (((unsigned)(x) & 0xFF) << 8)
4500b8e80941Smrg#define   G_028434_STENCILMASK_BF(x)                                  (((x) >> 8) & 0xFF)
4501b8e80941Smrg#define   C_028434_STENCILMASK_BF                                     0xFFFF00FF
4502b8e80941Smrg#define   S_028434_STENCILWRITEMASK_BF(x)                             (((unsigned)(x) & 0xFF) << 16)
4503b8e80941Smrg#define   G_028434_STENCILWRITEMASK_BF(x)                             (((x) >> 16) & 0xFF)
4504b8e80941Smrg#define   C_028434_STENCILWRITEMASK_BF                                0xFF00FFFF
4505b8e80941Smrg#define   S_028434_STENCILOPVAL_BF(x)                                 (((unsigned)(x) & 0xFF) << 24)
4506b8e80941Smrg#define   G_028434_STENCILOPVAL_BF(x)                                 (((x) >> 24) & 0xFF)
4507b8e80941Smrg#define   C_028434_STENCILOPVAL_BF                                    0x00FFFFFF
4508b8e80941Smrg#define R_02843C_PA_CL_VPORT_XSCALE                                     0x02843C
4509b8e80941Smrg#define R_028440_PA_CL_VPORT_XOFFSET                                    0x028440
4510b8e80941Smrg#define R_028444_PA_CL_VPORT_YSCALE                                     0x028444
4511b8e80941Smrg#define R_028448_PA_CL_VPORT_YOFFSET                                    0x028448
4512b8e80941Smrg#define R_02844C_PA_CL_VPORT_ZSCALE                                     0x02844C
4513b8e80941Smrg#define R_028450_PA_CL_VPORT_ZOFFSET                                    0x028450
4514b8e80941Smrg#define R_028454_PA_CL_VPORT_XSCALE_1                                   0x028454
4515b8e80941Smrg#define R_028458_PA_CL_VPORT_XOFFSET_1                                  0x028458
4516b8e80941Smrg#define R_02845C_PA_CL_VPORT_YSCALE_1                                   0x02845C
4517b8e80941Smrg#define R_028460_PA_CL_VPORT_YOFFSET_1                                  0x028460
4518b8e80941Smrg#define R_028464_PA_CL_VPORT_ZSCALE_1                                   0x028464
4519b8e80941Smrg#define R_028468_PA_CL_VPORT_ZOFFSET_1                                  0x028468
4520b8e80941Smrg#define R_02846C_PA_CL_VPORT_XSCALE_2                                   0x02846C
4521b8e80941Smrg#define R_028470_PA_CL_VPORT_XOFFSET_2                                  0x028470
4522b8e80941Smrg#define R_028474_PA_CL_VPORT_YSCALE_2                                   0x028474
4523b8e80941Smrg#define R_028478_PA_CL_VPORT_YOFFSET_2                                  0x028478
4524b8e80941Smrg#define R_02847C_PA_CL_VPORT_ZSCALE_2                                   0x02847C
4525b8e80941Smrg#define R_028480_PA_CL_VPORT_ZOFFSET_2                                  0x028480
4526b8e80941Smrg#define R_028484_PA_CL_VPORT_XSCALE_3                                   0x028484
4527b8e80941Smrg#define R_028488_PA_CL_VPORT_XOFFSET_3                                  0x028488
4528b8e80941Smrg#define R_02848C_PA_CL_VPORT_YSCALE_3                                   0x02848C
4529b8e80941Smrg#define R_028490_PA_CL_VPORT_YOFFSET_3                                  0x028490
4530b8e80941Smrg#define R_028494_PA_CL_VPORT_ZSCALE_3                                   0x028494
4531b8e80941Smrg#define R_028498_PA_CL_VPORT_ZOFFSET_3                                  0x028498
4532b8e80941Smrg#define R_02849C_PA_CL_VPORT_XSCALE_4                                   0x02849C
4533b8e80941Smrg#define R_0284A0_PA_CL_VPORT_XOFFSET_4                                  0x0284A0
4534b8e80941Smrg#define R_0284A4_PA_CL_VPORT_YSCALE_4                                   0x0284A4
4535b8e80941Smrg#define R_0284A8_PA_CL_VPORT_YOFFSET_4                                  0x0284A8
4536b8e80941Smrg#define R_0284AC_PA_CL_VPORT_ZSCALE_4                                   0x0284AC
4537b8e80941Smrg#define R_0284B0_PA_CL_VPORT_ZOFFSET_4                                  0x0284B0
4538b8e80941Smrg#define R_0284B4_PA_CL_VPORT_XSCALE_5                                   0x0284B4
4539b8e80941Smrg#define R_0284B8_PA_CL_VPORT_XOFFSET_5                                  0x0284B8
4540b8e80941Smrg#define R_0284BC_PA_CL_VPORT_YSCALE_5                                   0x0284BC
4541b8e80941Smrg#define R_0284C0_PA_CL_VPORT_YOFFSET_5                                  0x0284C0
4542b8e80941Smrg#define R_0284C4_PA_CL_VPORT_ZSCALE_5                                   0x0284C4
4543b8e80941Smrg#define R_0284C8_PA_CL_VPORT_ZOFFSET_5                                  0x0284C8
4544b8e80941Smrg#define R_0284CC_PA_CL_VPORT_XSCALE_6                                   0x0284CC
4545b8e80941Smrg#define R_0284D0_PA_CL_VPORT_XOFFSET_6                                  0x0284D0
4546b8e80941Smrg#define R_0284D4_PA_CL_VPORT_YSCALE_6                                   0x0284D4
4547b8e80941Smrg#define R_0284D8_PA_CL_VPORT_YOFFSET_6                                  0x0284D8
4548b8e80941Smrg#define R_0284DC_PA_CL_VPORT_ZSCALE_6                                   0x0284DC
4549b8e80941Smrg#define R_0284E0_PA_CL_VPORT_ZOFFSET_6                                  0x0284E0
4550b8e80941Smrg#define R_0284E4_PA_CL_VPORT_XSCALE_7                                   0x0284E4
4551b8e80941Smrg#define R_0284E8_PA_CL_VPORT_XOFFSET_7                                  0x0284E8
4552b8e80941Smrg#define R_0284EC_PA_CL_VPORT_YSCALE_7                                   0x0284EC
4553b8e80941Smrg#define R_0284F0_PA_CL_VPORT_YOFFSET_7                                  0x0284F0
4554b8e80941Smrg#define R_0284F4_PA_CL_VPORT_ZSCALE_7                                   0x0284F4
4555b8e80941Smrg#define R_0284F8_PA_CL_VPORT_ZOFFSET_7                                  0x0284F8
4556b8e80941Smrg#define R_0284FC_PA_CL_VPORT_XSCALE_8                                   0x0284FC
4557b8e80941Smrg#define R_028500_PA_CL_VPORT_XOFFSET_8                                  0x028500
4558b8e80941Smrg#define R_028504_PA_CL_VPORT_YSCALE_8                                   0x028504
4559b8e80941Smrg#define R_028508_PA_CL_VPORT_YOFFSET_8                                  0x028508
4560b8e80941Smrg#define R_02850C_PA_CL_VPORT_ZSCALE_8                                   0x02850C
4561b8e80941Smrg#define R_028510_PA_CL_VPORT_ZOFFSET_8                                  0x028510
4562b8e80941Smrg#define R_028514_PA_CL_VPORT_XSCALE_9                                   0x028514
4563b8e80941Smrg#define R_028518_PA_CL_VPORT_XOFFSET_9                                  0x028518
4564b8e80941Smrg#define R_02851C_PA_CL_VPORT_YSCALE_9                                   0x02851C
4565b8e80941Smrg#define R_028520_PA_CL_VPORT_YOFFSET_9                                  0x028520
4566b8e80941Smrg#define R_028524_PA_CL_VPORT_ZSCALE_9                                   0x028524
4567b8e80941Smrg#define R_028528_PA_CL_VPORT_ZOFFSET_9                                  0x028528
4568b8e80941Smrg#define R_02852C_PA_CL_VPORT_XSCALE_10                                  0x02852C
4569b8e80941Smrg#define R_028530_PA_CL_VPORT_XOFFSET_10                                 0x028530
4570b8e80941Smrg#define R_028534_PA_CL_VPORT_YSCALE_10                                  0x028534
4571b8e80941Smrg#define R_028538_PA_CL_VPORT_YOFFSET_10                                 0x028538
4572b8e80941Smrg#define R_02853C_PA_CL_VPORT_ZSCALE_10                                  0x02853C
4573b8e80941Smrg#define R_028540_PA_CL_VPORT_ZOFFSET_10                                 0x028540
4574b8e80941Smrg#define R_028544_PA_CL_VPORT_XSCALE_11                                  0x028544
4575b8e80941Smrg#define R_028548_PA_CL_VPORT_XOFFSET_11                                 0x028548
4576b8e80941Smrg#define R_02854C_PA_CL_VPORT_YSCALE_11                                  0x02854C
4577b8e80941Smrg#define R_028550_PA_CL_VPORT_YOFFSET_11                                 0x028550
4578b8e80941Smrg#define R_028554_PA_CL_VPORT_ZSCALE_11                                  0x028554
4579b8e80941Smrg#define R_028558_PA_CL_VPORT_ZOFFSET_11                                 0x028558
4580b8e80941Smrg#define R_02855C_PA_CL_VPORT_XSCALE_12                                  0x02855C
4581b8e80941Smrg#define R_028560_PA_CL_VPORT_XOFFSET_12                                 0x028560
4582b8e80941Smrg#define R_028564_PA_CL_VPORT_YSCALE_12                                  0x028564
4583b8e80941Smrg#define R_028568_PA_CL_VPORT_YOFFSET_12                                 0x028568
4584b8e80941Smrg#define R_02856C_PA_CL_VPORT_ZSCALE_12                                  0x02856C
4585b8e80941Smrg#define R_028570_PA_CL_VPORT_ZOFFSET_12                                 0x028570
4586b8e80941Smrg#define R_028574_PA_CL_VPORT_XSCALE_13                                  0x028574
4587b8e80941Smrg#define R_028578_PA_CL_VPORT_XOFFSET_13                                 0x028578
4588b8e80941Smrg#define R_02857C_PA_CL_VPORT_YSCALE_13                                  0x02857C
4589b8e80941Smrg#define R_028580_PA_CL_VPORT_YOFFSET_13                                 0x028580
4590b8e80941Smrg#define R_028584_PA_CL_VPORT_ZSCALE_13                                  0x028584
4591b8e80941Smrg#define R_028588_PA_CL_VPORT_ZOFFSET_13                                 0x028588
4592b8e80941Smrg#define R_02858C_PA_CL_VPORT_XSCALE_14                                  0x02858C
4593b8e80941Smrg#define R_028590_PA_CL_VPORT_XOFFSET_14                                 0x028590
4594b8e80941Smrg#define R_028594_PA_CL_VPORT_YSCALE_14                                  0x028594
4595b8e80941Smrg#define R_028598_PA_CL_VPORT_YOFFSET_14                                 0x028598
4596b8e80941Smrg#define R_02859C_PA_CL_VPORT_ZSCALE_14                                  0x02859C
4597b8e80941Smrg#define R_0285A0_PA_CL_VPORT_ZOFFSET_14                                 0x0285A0
4598b8e80941Smrg#define R_0285A4_PA_CL_VPORT_XSCALE_15                                  0x0285A4
4599b8e80941Smrg#define R_0285A8_PA_CL_VPORT_XOFFSET_15                                 0x0285A8
4600b8e80941Smrg#define R_0285AC_PA_CL_VPORT_YSCALE_15                                  0x0285AC
4601b8e80941Smrg#define R_0285B0_PA_CL_VPORT_YOFFSET_15                                 0x0285B0
4602b8e80941Smrg#define R_0285B4_PA_CL_VPORT_ZSCALE_15                                  0x0285B4
4603b8e80941Smrg#define R_0285B8_PA_CL_VPORT_ZOFFSET_15                                 0x0285B8
4604b8e80941Smrg#define R_0285BC_PA_CL_UCP_0_X                                          0x0285BC
4605b8e80941Smrg#define R_0285C0_PA_CL_UCP_0_Y                                          0x0285C0
4606b8e80941Smrg#define R_0285C4_PA_CL_UCP_0_Z                                          0x0285C4
4607b8e80941Smrg#define R_0285C8_PA_CL_UCP_0_W                                          0x0285C8
4608b8e80941Smrg#define R_0285CC_PA_CL_UCP_1_X                                          0x0285CC
4609b8e80941Smrg#define R_0285D0_PA_CL_UCP_1_Y                                          0x0285D0
4610b8e80941Smrg#define R_0285D4_PA_CL_UCP_1_Z                                          0x0285D4
4611b8e80941Smrg#define R_0285D8_PA_CL_UCP_1_W                                          0x0285D8
4612b8e80941Smrg#define R_0285DC_PA_CL_UCP_2_X                                          0x0285DC
4613b8e80941Smrg#define R_0285E0_PA_CL_UCP_2_Y                                          0x0285E0
4614b8e80941Smrg#define R_0285E4_PA_CL_UCP_2_Z                                          0x0285E4
4615b8e80941Smrg#define R_0285E8_PA_CL_UCP_2_W                                          0x0285E8
4616b8e80941Smrg#define R_0285EC_PA_CL_UCP_3_X                                          0x0285EC
4617b8e80941Smrg#define R_0285F0_PA_CL_UCP_3_Y                                          0x0285F0
4618b8e80941Smrg#define R_0285F4_PA_CL_UCP_3_Z                                          0x0285F4
4619b8e80941Smrg#define R_0285F8_PA_CL_UCP_3_W                                          0x0285F8
4620b8e80941Smrg#define R_0285FC_PA_CL_UCP_4_X                                          0x0285FC
4621b8e80941Smrg#define R_028600_PA_CL_UCP_4_Y                                          0x028600
4622b8e80941Smrg#define R_028604_PA_CL_UCP_4_Z                                          0x028604
4623b8e80941Smrg#define R_028608_PA_CL_UCP_4_W                                          0x028608
4624b8e80941Smrg#define R_02860C_PA_CL_UCP_5_X                                          0x02860C
4625b8e80941Smrg#define R_028610_PA_CL_UCP_5_Y                                          0x028610
4626b8e80941Smrg#define R_028614_PA_CL_UCP_5_Z                                          0x028614
4627b8e80941Smrg#define R_028618_PA_CL_UCP_5_W                                          0x028618
4628b8e80941Smrg#define R_028644_SPI_PS_INPUT_CNTL_0                                    0x028644
4629b8e80941Smrg#define   S_028644_OFFSET(x)                                          (((unsigned)(x) & 0x3F) << 0)
4630b8e80941Smrg#define   G_028644_OFFSET(x)                                          (((x) >> 0) & 0x3F)
4631b8e80941Smrg#define   C_028644_OFFSET                                             0xFFFFFFC0
4632b8e80941Smrg#define   S_028644_DEFAULT_VAL(x)                                     (((unsigned)(x) & 0x03) << 8)
4633b8e80941Smrg#define   G_028644_DEFAULT_VAL(x)                                     (((x) >> 8) & 0x03)
4634b8e80941Smrg#define   C_028644_DEFAULT_VAL                                        0xFFFFFCFF
4635b8e80941Smrg#define   S_028644_FLAT_SHADE(x)                                      (((unsigned)(x) & 0x1) << 10)
4636b8e80941Smrg#define   G_028644_FLAT_SHADE(x)                                      (((x) >> 10) & 0x1)
4637b8e80941Smrg#define   C_028644_FLAT_SHADE                                         0xFFFFFBFF
4638b8e80941Smrg#define   S_028644_CYL_WRAP(x)                                        (((unsigned)(x) & 0x0F) << 13)
4639b8e80941Smrg#define   G_028644_CYL_WRAP(x)                                        (((x) >> 13) & 0x0F)
4640b8e80941Smrg#define   C_028644_CYL_WRAP                                           0xFFFE1FFF
4641b8e80941Smrg#define   S_028644_PT_SPRITE_TEX(x)                                   (((unsigned)(x) & 0x1) << 17)
4642b8e80941Smrg#define   G_028644_PT_SPRITE_TEX(x)                                   (((x) >> 17) & 0x1)
4643b8e80941Smrg#define   C_028644_PT_SPRITE_TEX                                      0xFFFDFFFF
4644b8e80941Smrg#define   S_028644_DUP(x)                                             (((unsigned)(x) & 0x1) << 18)
4645b8e80941Smrg#define   G_028644_DUP(x)                                             (((x) >> 18) & 0x1)
4646b8e80941Smrg#define   C_028644_DUP                                                0xFFFBFFFF
4647b8e80941Smrg#define   S_028644_FP16_INTERP_MODE(x)                                (((unsigned)(x) & 0x1) << 19)
4648b8e80941Smrg#define   G_028644_FP16_INTERP_MODE(x)                                (((x) >> 19) & 0x1)
4649b8e80941Smrg#define   C_028644_FP16_INTERP_MODE                                   0xFFF7FFFF
4650b8e80941Smrg#define   S_028644_USE_DEFAULT_ATTR1(x)                               (((unsigned)(x) & 0x1) << 20)
4651b8e80941Smrg#define   G_028644_USE_DEFAULT_ATTR1(x)                               (((x) >> 20) & 0x1)
4652b8e80941Smrg#define   C_028644_USE_DEFAULT_ATTR1                                  0xFFEFFFFF
4653b8e80941Smrg#define   S_028644_DEFAULT_VAL_ATTR1(x)                               (((unsigned)(x) & 0x03) << 21)
4654b8e80941Smrg#define   G_028644_DEFAULT_VAL_ATTR1(x)                               (((x) >> 21) & 0x03)
4655b8e80941Smrg#define   C_028644_DEFAULT_VAL_ATTR1                                  0xFF9FFFFF
4656b8e80941Smrg#define   S_028644_PT_SPRITE_TEX_ATTR1(x)                             (((unsigned)(x) & 0x1) << 23)
4657b8e80941Smrg#define   G_028644_PT_SPRITE_TEX_ATTR1(x)                             (((x) >> 23) & 0x1)
4658b8e80941Smrg#define   C_028644_PT_SPRITE_TEX_ATTR1                                0xFF7FFFFF
4659b8e80941Smrg#define   S_028644_ATTR0_VALID(x)                                     (((unsigned)(x) & 0x1) << 24)
4660b8e80941Smrg#define   G_028644_ATTR0_VALID(x)                                     (((x) >> 24) & 0x1)
4661b8e80941Smrg#define   C_028644_ATTR0_VALID                                        0xFEFFFFFF
4662b8e80941Smrg#define   S_028644_ATTR1_VALID(x)                                     (((unsigned)(x) & 0x1) << 25)
4663b8e80941Smrg#define   G_028644_ATTR1_VALID(x)                                     (((x) >> 25) & 0x1)
4664b8e80941Smrg#define   C_028644_ATTR1_VALID                                        0xFDFFFFFF
4665b8e80941Smrg#define R_028648_SPI_PS_INPUT_CNTL_1                                    0x028648
4666b8e80941Smrg#define R_02864C_SPI_PS_INPUT_CNTL_2                                    0x02864C
4667b8e80941Smrg#define R_028650_SPI_PS_INPUT_CNTL_3                                    0x028650
4668b8e80941Smrg#define R_028654_SPI_PS_INPUT_CNTL_4                                    0x028654
4669b8e80941Smrg#define R_028658_SPI_PS_INPUT_CNTL_5                                    0x028658
4670b8e80941Smrg#define R_02865C_SPI_PS_INPUT_CNTL_6                                    0x02865C
4671b8e80941Smrg#define R_028660_SPI_PS_INPUT_CNTL_7                                    0x028660
4672b8e80941Smrg#define R_028664_SPI_PS_INPUT_CNTL_8                                    0x028664
4673b8e80941Smrg#define R_028668_SPI_PS_INPUT_CNTL_9                                    0x028668
4674b8e80941Smrg#define R_02866C_SPI_PS_INPUT_CNTL_10                                   0x02866C
4675b8e80941Smrg#define R_028670_SPI_PS_INPUT_CNTL_11                                   0x028670
4676b8e80941Smrg#define R_028674_SPI_PS_INPUT_CNTL_12                                   0x028674
4677b8e80941Smrg#define R_028678_SPI_PS_INPUT_CNTL_13                                   0x028678
4678b8e80941Smrg#define R_02867C_SPI_PS_INPUT_CNTL_14                                   0x02867C
4679b8e80941Smrg#define R_028680_SPI_PS_INPUT_CNTL_15                                   0x028680
4680b8e80941Smrg#define R_028684_SPI_PS_INPUT_CNTL_16                                   0x028684
4681b8e80941Smrg#define R_028688_SPI_PS_INPUT_CNTL_17                                   0x028688
4682b8e80941Smrg#define R_02868C_SPI_PS_INPUT_CNTL_18                                   0x02868C
4683b8e80941Smrg#define R_028690_SPI_PS_INPUT_CNTL_19                                   0x028690
4684b8e80941Smrg#define R_028694_SPI_PS_INPUT_CNTL_20                                   0x028694
4685b8e80941Smrg#define R_028698_SPI_PS_INPUT_CNTL_21                                   0x028698
4686b8e80941Smrg#define R_02869C_SPI_PS_INPUT_CNTL_22                                   0x02869C
4687b8e80941Smrg#define R_0286A0_SPI_PS_INPUT_CNTL_23                                   0x0286A0
4688b8e80941Smrg#define R_0286A4_SPI_PS_INPUT_CNTL_24                                   0x0286A4
4689b8e80941Smrg#define R_0286A8_SPI_PS_INPUT_CNTL_25                                   0x0286A8
4690b8e80941Smrg#define R_0286AC_SPI_PS_INPUT_CNTL_26                                   0x0286AC
4691b8e80941Smrg#define R_0286B0_SPI_PS_INPUT_CNTL_27                                   0x0286B0
4692b8e80941Smrg#define R_0286B4_SPI_PS_INPUT_CNTL_28                                   0x0286B4
4693b8e80941Smrg#define R_0286B8_SPI_PS_INPUT_CNTL_29                                   0x0286B8
4694b8e80941Smrg#define R_0286BC_SPI_PS_INPUT_CNTL_30                                   0x0286BC
4695b8e80941Smrg#define R_0286C0_SPI_PS_INPUT_CNTL_31                                   0x0286C0
4696b8e80941Smrg#define R_0286C4_SPI_VS_OUT_CONFIG                                      0x0286C4
4697b8e80941Smrg#define   S_0286C4_VS_EXPORT_COUNT(x)                                 (((unsigned)(x) & 0x1F) << 1)
4698b8e80941Smrg#define   G_0286C4_VS_EXPORT_COUNT(x)                                 (((x) >> 1) & 0x1F)
4699b8e80941Smrg#define   C_0286C4_VS_EXPORT_COUNT                                    0xFFFFFFC1
4700b8e80941Smrg#define   S_0286C4_VS_HALF_PACK(x)                                    (((unsigned)(x) & 0x1) << 6)
4701b8e80941Smrg#define   G_0286C4_VS_HALF_PACK(x)                                    (((x) >> 6) & 0x1)
4702b8e80941Smrg#define   C_0286C4_VS_HALF_PACK                                       0xFFFFFFBF
4703b8e80941Smrg#define R_0286CC_SPI_PS_INPUT_ENA                                       0x0286CC
4704b8e80941Smrg#define   S_0286CC_PERSP_SAMPLE_ENA(x)                                (((unsigned)(x) & 0x1) << 0)
4705b8e80941Smrg#define   G_0286CC_PERSP_SAMPLE_ENA(x)                                (((x) >> 0) & 0x1)
4706b8e80941Smrg#define   C_0286CC_PERSP_SAMPLE_ENA                                   0xFFFFFFFE
4707b8e80941Smrg#define   S_0286CC_PERSP_CENTER_ENA(x)                                (((unsigned)(x) & 0x1) << 1)
4708b8e80941Smrg#define   G_0286CC_PERSP_CENTER_ENA(x)                                (((x) >> 1) & 0x1)
4709b8e80941Smrg#define   C_0286CC_PERSP_CENTER_ENA                                   0xFFFFFFFD
4710b8e80941Smrg#define   S_0286CC_PERSP_CENTROID_ENA(x)                              (((unsigned)(x) & 0x1) << 2)
4711b8e80941Smrg#define   G_0286CC_PERSP_CENTROID_ENA(x)                              (((x) >> 2) & 0x1)
4712b8e80941Smrg#define   C_0286CC_PERSP_CENTROID_ENA                                 0xFFFFFFFB
4713b8e80941Smrg#define   S_0286CC_PERSP_PULL_MODEL_ENA(x)                            (((unsigned)(x) & 0x1) << 3)
4714b8e80941Smrg#define   G_0286CC_PERSP_PULL_MODEL_ENA(x)                            (((x) >> 3) & 0x1)
4715b8e80941Smrg#define   C_0286CC_PERSP_PULL_MODEL_ENA                               0xFFFFFFF7
4716b8e80941Smrg#define   S_0286CC_LINEAR_SAMPLE_ENA(x)                               (((unsigned)(x) & 0x1) << 4)
4717b8e80941Smrg#define   G_0286CC_LINEAR_SAMPLE_ENA(x)                               (((x) >> 4) & 0x1)
4718b8e80941Smrg#define   C_0286CC_LINEAR_SAMPLE_ENA                                  0xFFFFFFEF
4719b8e80941Smrg#define   S_0286CC_LINEAR_CENTER_ENA(x)                               (((unsigned)(x) & 0x1) << 5)
4720b8e80941Smrg#define   G_0286CC_LINEAR_CENTER_ENA(x)                               (((x) >> 5) & 0x1)
4721b8e80941Smrg#define   C_0286CC_LINEAR_CENTER_ENA                                  0xFFFFFFDF
4722b8e80941Smrg#define   S_0286CC_LINEAR_CENTROID_ENA(x)                             (((unsigned)(x) & 0x1) << 6)
4723b8e80941Smrg#define   G_0286CC_LINEAR_CENTROID_ENA(x)                             (((x) >> 6) & 0x1)
4724b8e80941Smrg#define   C_0286CC_LINEAR_CENTROID_ENA                                0xFFFFFFBF
4725b8e80941Smrg#define   S_0286CC_LINE_STIPPLE_TEX_ENA(x)                            (((unsigned)(x) & 0x1) << 7)
4726b8e80941Smrg#define   G_0286CC_LINE_STIPPLE_TEX_ENA(x)                            (((x) >> 7) & 0x1)
4727b8e80941Smrg#define   C_0286CC_LINE_STIPPLE_TEX_ENA                               0xFFFFFF7F
4728b8e80941Smrg#define   S_0286CC_POS_X_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 8)
4729b8e80941Smrg#define   G_0286CC_POS_X_FLOAT_ENA(x)                                 (((x) >> 8) & 0x1)
4730b8e80941Smrg#define   C_0286CC_POS_X_FLOAT_ENA                                    0xFFFFFEFF
4731b8e80941Smrg#define   S_0286CC_POS_Y_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 9)
4732b8e80941Smrg#define   G_0286CC_POS_Y_FLOAT_ENA(x)                                 (((x) >> 9) & 0x1)
4733b8e80941Smrg#define   C_0286CC_POS_Y_FLOAT_ENA                                    0xFFFFFDFF
4734b8e80941Smrg#define   S_0286CC_POS_Z_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 10)
4735b8e80941Smrg#define   G_0286CC_POS_Z_FLOAT_ENA(x)                                 (((x) >> 10) & 0x1)
4736b8e80941Smrg#define   C_0286CC_POS_Z_FLOAT_ENA                                    0xFFFFFBFF
4737b8e80941Smrg#define   S_0286CC_POS_W_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 11)
4738b8e80941Smrg#define   G_0286CC_POS_W_FLOAT_ENA(x)                                 (((x) >> 11) & 0x1)
4739b8e80941Smrg#define   C_0286CC_POS_W_FLOAT_ENA                                    0xFFFFF7FF
4740b8e80941Smrg#define   S_0286CC_FRONT_FACE_ENA(x)                                  (((unsigned)(x) & 0x1) << 12)
4741b8e80941Smrg#define   G_0286CC_FRONT_FACE_ENA(x)                                  (((x) >> 12) & 0x1)
4742b8e80941Smrg#define   C_0286CC_FRONT_FACE_ENA                                     0xFFFFEFFF
4743b8e80941Smrg#define   S_0286CC_ANCILLARY_ENA(x)                                   (((unsigned)(x) & 0x1) << 13)
4744b8e80941Smrg#define   G_0286CC_ANCILLARY_ENA(x)                                   (((x) >> 13) & 0x1)
4745b8e80941Smrg#define   C_0286CC_ANCILLARY_ENA                                      0xFFFFDFFF
4746b8e80941Smrg#define   S_0286CC_SAMPLE_COVERAGE_ENA(x)                             (((unsigned)(x) & 0x1) << 14)
4747b8e80941Smrg#define   G_0286CC_SAMPLE_COVERAGE_ENA(x)                             (((x) >> 14) & 0x1)
4748b8e80941Smrg#define   C_0286CC_SAMPLE_COVERAGE_ENA                                0xFFFFBFFF
4749b8e80941Smrg#define   S_0286CC_POS_FIXED_PT_ENA(x)                                (((unsigned)(x) & 0x1) << 15)
4750b8e80941Smrg#define   G_0286CC_POS_FIXED_PT_ENA(x)                                (((x) >> 15) & 0x1)
4751b8e80941Smrg#define   C_0286CC_POS_FIXED_PT_ENA                                   0xFFFF7FFF
4752b8e80941Smrg#define R_0286D0_SPI_PS_INPUT_ADDR                                      0x0286D0
4753b8e80941Smrg#define   S_0286D0_PERSP_SAMPLE_ENA(x)                                (((unsigned)(x) & 0x1) << 0)
4754b8e80941Smrg#define   G_0286D0_PERSP_SAMPLE_ENA(x)                                (((x) >> 0) & 0x1)
4755b8e80941Smrg#define   C_0286D0_PERSP_SAMPLE_ENA                                   0xFFFFFFFE
4756b8e80941Smrg#define   S_0286D0_PERSP_CENTER_ENA(x)                                (((unsigned)(x) & 0x1) << 1)
4757b8e80941Smrg#define   G_0286D0_PERSP_CENTER_ENA(x)                                (((x) >> 1) & 0x1)
4758b8e80941Smrg#define   C_0286D0_PERSP_CENTER_ENA                                   0xFFFFFFFD
4759b8e80941Smrg#define   S_0286D0_PERSP_CENTROID_ENA(x)                              (((unsigned)(x) & 0x1) << 2)
4760b8e80941Smrg#define   G_0286D0_PERSP_CENTROID_ENA(x)                              (((x) >> 2) & 0x1)
4761b8e80941Smrg#define   C_0286D0_PERSP_CENTROID_ENA                                 0xFFFFFFFB
4762b8e80941Smrg#define   S_0286D0_PERSP_PULL_MODEL_ENA(x)                            (((unsigned)(x) & 0x1) << 3)
4763b8e80941Smrg#define   G_0286D0_PERSP_PULL_MODEL_ENA(x)                            (((x) >> 3) & 0x1)
4764b8e80941Smrg#define   C_0286D0_PERSP_PULL_MODEL_ENA                               0xFFFFFFF7
4765b8e80941Smrg#define   S_0286D0_LINEAR_SAMPLE_ENA(x)                               (((unsigned)(x) & 0x1) << 4)
4766b8e80941Smrg#define   G_0286D0_LINEAR_SAMPLE_ENA(x)                               (((x) >> 4) & 0x1)
4767b8e80941Smrg#define   C_0286D0_LINEAR_SAMPLE_ENA                                  0xFFFFFFEF
4768b8e80941Smrg#define   S_0286D0_LINEAR_CENTER_ENA(x)                               (((unsigned)(x) & 0x1) << 5)
4769b8e80941Smrg#define   G_0286D0_LINEAR_CENTER_ENA(x)                               (((x) >> 5) & 0x1)
4770b8e80941Smrg#define   C_0286D0_LINEAR_CENTER_ENA                                  0xFFFFFFDF
4771b8e80941Smrg#define   S_0286D0_LINEAR_CENTROID_ENA(x)                             (((unsigned)(x) & 0x1) << 6)
4772b8e80941Smrg#define   G_0286D0_LINEAR_CENTROID_ENA(x)                             (((x) >> 6) & 0x1)
4773b8e80941Smrg#define   C_0286D0_LINEAR_CENTROID_ENA                                0xFFFFFFBF
4774b8e80941Smrg#define   S_0286D0_LINE_STIPPLE_TEX_ENA(x)                            (((unsigned)(x) & 0x1) << 7)
4775b8e80941Smrg#define   G_0286D0_LINE_STIPPLE_TEX_ENA(x)                            (((x) >> 7) & 0x1)
4776b8e80941Smrg#define   C_0286D0_LINE_STIPPLE_TEX_ENA                               0xFFFFFF7F
4777b8e80941Smrg#define   S_0286D0_POS_X_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 8)
4778b8e80941Smrg#define   G_0286D0_POS_X_FLOAT_ENA(x)                                 (((x) >> 8) & 0x1)
4779b8e80941Smrg#define   C_0286D0_POS_X_FLOAT_ENA                                    0xFFFFFEFF
4780b8e80941Smrg#define   S_0286D0_POS_Y_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 9)
4781b8e80941Smrg#define   G_0286D0_POS_Y_FLOAT_ENA(x)                                 (((x) >> 9) & 0x1)
4782b8e80941Smrg#define   C_0286D0_POS_Y_FLOAT_ENA                                    0xFFFFFDFF
4783b8e80941Smrg#define   S_0286D0_POS_Z_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 10)
4784b8e80941Smrg#define   G_0286D0_POS_Z_FLOAT_ENA(x)                                 (((x) >> 10) & 0x1)
4785b8e80941Smrg#define   C_0286D0_POS_Z_FLOAT_ENA                                    0xFFFFFBFF
4786b8e80941Smrg#define   S_0286D0_POS_W_FLOAT_ENA(x)                                 (((unsigned)(x) & 0x1) << 11)
4787b8e80941Smrg#define   G_0286D0_POS_W_FLOAT_ENA(x)                                 (((x) >> 11) & 0x1)
4788b8e80941Smrg#define   C_0286D0_POS_W_FLOAT_ENA                                    0xFFFFF7FF
4789b8e80941Smrg#define   S_0286D0_FRONT_FACE_ENA(x)                                  (((unsigned)(x) & 0x1) << 12)
4790b8e80941Smrg#define   G_0286D0_FRONT_FACE_ENA(x)                                  (((x) >> 12) & 0x1)
4791b8e80941Smrg#define   C_0286D0_FRONT_FACE_ENA                                     0xFFFFEFFF
4792b8e80941Smrg#define   S_0286D0_ANCILLARY_ENA(x)                                   (((unsigned)(x) & 0x1) << 13)
4793b8e80941Smrg#define   G_0286D0_ANCILLARY_ENA(x)                                   (((x) >> 13) & 0x1)
4794b8e80941Smrg#define   C_0286D0_ANCILLARY_ENA                                      0xFFFFDFFF
4795b8e80941Smrg#define   S_0286D0_SAMPLE_COVERAGE_ENA(x)                             (((unsigned)(x) & 0x1) << 14)
4796b8e80941Smrg#define   G_0286D0_SAMPLE_COVERAGE_ENA(x)                             (((x) >> 14) & 0x1)
4797b8e80941Smrg#define   C_0286D0_SAMPLE_COVERAGE_ENA                                0xFFFFBFFF
4798b8e80941Smrg#define   S_0286D0_POS_FIXED_PT_ENA(x)                                (((unsigned)(x) & 0x1) << 15)
4799b8e80941Smrg#define   G_0286D0_POS_FIXED_PT_ENA(x)                                (((x) >> 15) & 0x1)
4800b8e80941Smrg#define   C_0286D0_POS_FIXED_PT_ENA                                   0xFFFF7FFF
4801b8e80941Smrg#define R_0286D4_SPI_INTERP_CONTROL_0                                   0x0286D4
4802b8e80941Smrg#define   S_0286D4_FLAT_SHADE_ENA(x)                                  (((unsigned)(x) & 0x1) << 0)
4803b8e80941Smrg#define   G_0286D4_FLAT_SHADE_ENA(x)                                  (((x) >> 0) & 0x1)
4804b8e80941Smrg#define   C_0286D4_FLAT_SHADE_ENA                                     0xFFFFFFFE
4805b8e80941Smrg#define   S_0286D4_PNT_SPRITE_ENA(x)                                  (((unsigned)(x) & 0x1) << 1)
4806b8e80941Smrg#define   G_0286D4_PNT_SPRITE_ENA(x)                                  (((x) >> 1) & 0x1)
4807b8e80941Smrg#define   C_0286D4_PNT_SPRITE_ENA                                     0xFFFFFFFD
4808b8e80941Smrg#define   S_0286D4_PNT_SPRITE_OVRD_X(x)                               (((unsigned)(x) & 0x07) << 2)
4809b8e80941Smrg#define   G_0286D4_PNT_SPRITE_OVRD_X(x)                               (((x) >> 2) & 0x07)
4810b8e80941Smrg#define   C_0286D4_PNT_SPRITE_OVRD_X                                  0xFFFFFFE3
4811b8e80941Smrg#define   S_0286D4_PNT_SPRITE_OVRD_Y(x)                               (((unsigned)(x) & 0x07) << 5)
4812b8e80941Smrg#define   G_0286D4_PNT_SPRITE_OVRD_Y(x)                               (((x) >> 5) & 0x07)
4813b8e80941Smrg#define   C_0286D4_PNT_SPRITE_OVRD_Y                                  0xFFFFFF1F
4814b8e80941Smrg#define   S_0286D4_PNT_SPRITE_OVRD_Z(x)                               (((unsigned)(x) & 0x07) << 8)
4815b8e80941Smrg#define   G_0286D4_PNT_SPRITE_OVRD_Z(x)                               (((x) >> 8) & 0x07)
4816b8e80941Smrg#define   C_0286D4_PNT_SPRITE_OVRD_Z                                  0xFFFFF8FF
4817b8e80941Smrg#define   S_0286D4_PNT_SPRITE_OVRD_W(x)                               (((unsigned)(x) & 0x07) << 11)
4818b8e80941Smrg#define   G_0286D4_PNT_SPRITE_OVRD_W(x)                               (((x) >> 11) & 0x07)
4819b8e80941Smrg#define   C_0286D4_PNT_SPRITE_OVRD_W                                  0xFFFFC7FF
4820b8e80941Smrg#define   S_0286D4_PNT_SPRITE_TOP_1(x)                                (((unsigned)(x) & 0x1) << 14)
4821b8e80941Smrg#define   G_0286D4_PNT_SPRITE_TOP_1(x)                                (((x) >> 14) & 0x1)
4822b8e80941Smrg#define   C_0286D4_PNT_SPRITE_TOP_1                                   0xFFFFBFFF
4823b8e80941Smrg#define R_0286D8_SPI_PS_IN_CONTROL                                      0x0286D8
4824b8e80941Smrg#define   S_0286D8_NUM_INTERP(x)                                      (((unsigned)(x) & 0x3F) << 0)
4825b8e80941Smrg#define   G_0286D8_NUM_INTERP(x)                                      (((x) >> 0) & 0x3F)
4826b8e80941Smrg#define   C_0286D8_NUM_INTERP                                         0xFFFFFFC0
4827b8e80941Smrg#define   S_0286D8_PARAM_GEN(x)                                       (((unsigned)(x) & 0x1) << 6)
4828b8e80941Smrg#define   G_0286D8_PARAM_GEN(x)                                       (((x) >> 6) & 0x1)
4829b8e80941Smrg#define   C_0286D8_PARAM_GEN                                          0xFFFFFFBF
4830b8e80941Smrg#define   S_0286D8_OFFCHIP_PARAM_EN(x)                                (((unsigned)(x) & 0x1) << 7)
4831b8e80941Smrg#define   G_0286D8_OFFCHIP_PARAM_EN(x)                                (((x) >> 7) & 0x1)
4832b8e80941Smrg#define   C_0286D8_OFFCHIP_PARAM_EN                                   0xFFFFFF7F
4833b8e80941Smrg#define   S_0286D8_LATE_PC_DEALLOC(x)                                 (((unsigned)(x) & 0x1) << 8)
4834b8e80941Smrg#define   G_0286D8_LATE_PC_DEALLOC(x)                                 (((x) >> 8) & 0x1)
4835b8e80941Smrg#define   C_0286D8_LATE_PC_DEALLOC                                    0xFFFFFEFF
4836b8e80941Smrg#define   S_0286D8_BC_OPTIMIZE_DISABLE(x)                             (((unsigned)(x) & 0x1) << 14)
4837b8e80941Smrg#define   G_0286D8_BC_OPTIMIZE_DISABLE(x)                             (((x) >> 14) & 0x1)
4838b8e80941Smrg#define   C_0286D8_BC_OPTIMIZE_DISABLE                                0xFFFFBFFF
4839b8e80941Smrg#define R_0286E0_SPI_BARYC_CNTL                                         0x0286E0
4840b8e80941Smrg#define   S_0286E0_PERSP_CENTER_CNTL(x)                               (((unsigned)(x) & 0x1) << 0)
4841b8e80941Smrg#define   G_0286E0_PERSP_CENTER_CNTL(x)                               (((x) >> 0) & 0x1)
4842b8e80941Smrg#define   C_0286E0_PERSP_CENTER_CNTL                                  0xFFFFFFFE
4843b8e80941Smrg#define   S_0286E0_PERSP_CENTROID_CNTL(x)                             (((unsigned)(x) & 0x1) << 4)
4844b8e80941Smrg#define   G_0286E0_PERSP_CENTROID_CNTL(x)                             (((x) >> 4) & 0x1)
4845b8e80941Smrg#define   C_0286E0_PERSP_CENTROID_CNTL                                0xFFFFFFEF
4846b8e80941Smrg#define   S_0286E0_LINEAR_CENTER_CNTL(x)                              (((unsigned)(x) & 0x1) << 8)
4847b8e80941Smrg#define   G_0286E0_LINEAR_CENTER_CNTL(x)                              (((x) >> 8) & 0x1)
4848b8e80941Smrg#define   C_0286E0_LINEAR_CENTER_CNTL                                 0xFFFFFEFF
4849b8e80941Smrg#define   S_0286E0_LINEAR_CENTROID_CNTL(x)                            (((unsigned)(x) & 0x1) << 12)
4850b8e80941Smrg#define   G_0286E0_LINEAR_CENTROID_CNTL(x)                            (((x) >> 12) & 0x1)
4851b8e80941Smrg#define   C_0286E0_LINEAR_CENTROID_CNTL                               0xFFFFEFFF
4852b8e80941Smrg#define   S_0286E0_POS_FLOAT_LOCATION(x)                              (((unsigned)(x) & 0x03) << 16)
4853b8e80941Smrg#define   G_0286E0_POS_FLOAT_LOCATION(x)                              (((x) >> 16) & 0x03)
4854b8e80941Smrg#define   C_0286E0_POS_FLOAT_LOCATION                                 0xFFFCFFFF
4855b8e80941Smrg#define   S_0286E0_POS_FLOAT_ULC(x)                                   (((unsigned)(x) & 0x1) << 20)
4856b8e80941Smrg#define   G_0286E0_POS_FLOAT_ULC(x)                                   (((x) >> 20) & 0x1)
4857b8e80941Smrg#define   C_0286E0_POS_FLOAT_ULC                                      0xFFEFFFFF
4858b8e80941Smrg#define   S_0286E0_FRONT_FACE_ALL_BITS(x)                             (((unsigned)(x) & 0x1) << 24)
4859b8e80941Smrg#define   G_0286E0_FRONT_FACE_ALL_BITS(x)                             (((x) >> 24) & 0x1)
4860b8e80941Smrg#define   C_0286E0_FRONT_FACE_ALL_BITS                                0xFEFFFFFF
4861b8e80941Smrg#define R_0286E8_SPI_TMPRING_SIZE                                       0x0286E8
4862b8e80941Smrg#define   S_0286E8_WAVES(x)                                           (((unsigned)(x) & 0xFFF) << 0)
4863b8e80941Smrg#define   G_0286E8_WAVES(x)                                           (((x) >> 0) & 0xFFF)
4864b8e80941Smrg#define   C_0286E8_WAVES                                              0xFFFFF000
4865b8e80941Smrg#define   S_0286E8_WAVESIZE(x)                                        (((unsigned)(x) & 0x1FFF) << 12)
4866b8e80941Smrg#define   G_0286E8_WAVESIZE(x)                                        (((x) >> 12) & 0x1FFF)
4867b8e80941Smrg#define   C_0286E8_WAVESIZE                                           0xFE000FFF
4868b8e80941Smrg#define R_02870C_SPI_SHADER_POS_FORMAT                                  0x02870C
4869b8e80941Smrg#define   S_02870C_POS0_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 0)
4870b8e80941Smrg#define   G_02870C_POS0_EXPORT_FORMAT(x)                              (((x) >> 0) & 0x0F)
4871b8e80941Smrg#define   C_02870C_POS0_EXPORT_FORMAT                                 0xFFFFFFF0
4872b8e80941Smrg#define   S_02870C_POS1_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 4)
4873b8e80941Smrg#define   G_02870C_POS1_EXPORT_FORMAT(x)                              (((x) >> 4) & 0x0F)
4874b8e80941Smrg#define   C_02870C_POS1_EXPORT_FORMAT                                 0xFFFFFF0F
4875b8e80941Smrg#define   S_02870C_POS2_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 8)
4876b8e80941Smrg#define   G_02870C_POS2_EXPORT_FORMAT(x)                              (((x) >> 8) & 0x0F)
4877b8e80941Smrg#define   C_02870C_POS2_EXPORT_FORMAT                                 0xFFFFF0FF
4878b8e80941Smrg#define   S_02870C_POS3_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 12)
4879b8e80941Smrg#define   G_02870C_POS3_EXPORT_FORMAT(x)                              (((x) >> 12) & 0x0F)
4880b8e80941Smrg#define   C_02870C_POS3_EXPORT_FORMAT                                 0xFFFF0FFF
4881b8e80941Smrg#define R_028710_SPI_SHADER_Z_FORMAT                                    0x028710
4882b8e80941Smrg#define   S_028710_Z_EXPORT_FORMAT(x)                                 (((unsigned)(x) & 0x0F) << 0)
4883b8e80941Smrg#define   G_028710_Z_EXPORT_FORMAT(x)                                 (((x) >> 0) & 0x0F)
4884b8e80941Smrg#define   C_028710_Z_EXPORT_FORMAT                                    0xFFFFFFF0
4885b8e80941Smrg#define R_028714_SPI_SHADER_COL_FORMAT                                  0x028714
4886b8e80941Smrg#define   S_028714_COL0_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 0)
4887b8e80941Smrg#define   G_028714_COL0_EXPORT_FORMAT(x)                              (((x) >> 0) & 0x0F)
4888b8e80941Smrg#define   C_028714_COL0_EXPORT_FORMAT                                 0xFFFFFFF0
4889b8e80941Smrg#define   S_028714_COL1_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 4)
4890b8e80941Smrg#define   G_028714_COL1_EXPORT_FORMAT(x)                              (((x) >> 4) & 0x0F)
4891b8e80941Smrg#define   C_028714_COL1_EXPORT_FORMAT                                 0xFFFFFF0F
4892b8e80941Smrg#define   S_028714_COL2_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 8)
4893b8e80941Smrg#define   G_028714_COL2_EXPORT_FORMAT(x)                              (((x) >> 8) & 0x0F)
4894b8e80941Smrg#define   C_028714_COL2_EXPORT_FORMAT                                 0xFFFFF0FF
4895b8e80941Smrg#define   S_028714_COL3_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 12)
4896b8e80941Smrg#define   G_028714_COL3_EXPORT_FORMAT(x)                              (((x) >> 12) & 0x0F)
4897b8e80941Smrg#define   C_028714_COL3_EXPORT_FORMAT                                 0xFFFF0FFF
4898b8e80941Smrg#define   S_028714_COL4_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 16)
4899b8e80941Smrg#define   G_028714_COL4_EXPORT_FORMAT(x)                              (((x) >> 16) & 0x0F)
4900b8e80941Smrg#define   C_028714_COL4_EXPORT_FORMAT                                 0xFFF0FFFF
4901b8e80941Smrg#define   S_028714_COL5_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 20)
4902b8e80941Smrg#define   G_028714_COL5_EXPORT_FORMAT(x)                              (((x) >> 20) & 0x0F)
4903b8e80941Smrg#define   C_028714_COL5_EXPORT_FORMAT                                 0xFF0FFFFF
4904b8e80941Smrg#define   S_028714_COL6_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 24)
4905b8e80941Smrg#define   G_028714_COL6_EXPORT_FORMAT(x)                              (((x) >> 24) & 0x0F)
4906b8e80941Smrg#define   C_028714_COL6_EXPORT_FORMAT                                 0xF0FFFFFF
4907b8e80941Smrg#define   S_028714_COL7_EXPORT_FORMAT(x)                              (((unsigned)(x) & 0x0F) << 28)
4908b8e80941Smrg#define   G_028714_COL7_EXPORT_FORMAT(x)                              (((x) >> 28) & 0x0F)
4909b8e80941Smrg#define   C_028714_COL7_EXPORT_FORMAT                                 0x0FFFFFFF
4910b8e80941Smrg#define R_028754_SX_PS_DOWNCONVERT                                      0x028754
4911b8e80941Smrg#define   S_028754_MRT0(x)                                            (((unsigned)(x) & 0x0F) << 0)
4912b8e80941Smrg#define   G_028754_MRT0(x)                                            (((x) >> 0) & 0x0F)
4913b8e80941Smrg#define   C_028754_MRT0                                               0xFFFFFFF0
4914b8e80941Smrg#define   S_028754_MRT1(x)                                            (((unsigned)(x) & 0x0F) << 4)
4915b8e80941Smrg#define   G_028754_MRT1(x)                                            (((x) >> 4) & 0x0F)
4916b8e80941Smrg#define   C_028754_MRT1                                               0xFFFFFF0F
4917b8e80941Smrg#define   S_028754_MRT2(x)                                            (((unsigned)(x) & 0x0F) << 8)
4918b8e80941Smrg#define   G_028754_MRT2(x)                                            (((x) >> 8) & 0x0F)
4919b8e80941Smrg#define   C_028754_MRT2                                               0xFFFFF0FF
4920b8e80941Smrg#define   S_028754_MRT3(x)                                            (((unsigned)(x) & 0x0F) << 12)
4921b8e80941Smrg#define   G_028754_MRT3(x)                                            (((x) >> 12) & 0x0F)
4922b8e80941Smrg#define   C_028754_MRT3                                               0xFFFF0FFF
4923b8e80941Smrg#define   S_028754_MRT4(x)                                            (((unsigned)(x) & 0x0F) << 16)
4924b8e80941Smrg#define   G_028754_MRT4(x)                                            (((x) >> 16) & 0x0F)
4925b8e80941Smrg#define   C_028754_MRT4                                               0xFFF0FFFF
4926b8e80941Smrg#define   S_028754_MRT5(x)                                            (((unsigned)(x) & 0x0F) << 20)
4927b8e80941Smrg#define   G_028754_MRT5(x)                                            (((x) >> 20) & 0x0F)
4928b8e80941Smrg#define   C_028754_MRT5                                               0xFF0FFFFF
4929b8e80941Smrg#define   S_028754_MRT6(x)                                            (((unsigned)(x) & 0x0F) << 24)
4930b8e80941Smrg#define   G_028754_MRT6(x)                                            (((x) >> 24) & 0x0F)
4931b8e80941Smrg#define   C_028754_MRT6                                               0xF0FFFFFF
4932b8e80941Smrg#define   S_028754_MRT7(x)                                            (((unsigned)(x) & 0x0F) << 28)
4933b8e80941Smrg#define   G_028754_MRT7(x)                                            (((x) >> 28) & 0x0F)
4934b8e80941Smrg#define   C_028754_MRT7                                               0x0FFFFFFF
4935b8e80941Smrg#define R_028758_SX_BLEND_OPT_EPSILON                                   0x028758
4936b8e80941Smrg#define   S_028758_MRT0_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 0)
4937b8e80941Smrg#define   G_028758_MRT0_EPSILON(x)                                    (((x) >> 0) & 0x0F)
4938b8e80941Smrg#define   C_028758_MRT0_EPSILON                                       0xFFFFFFF0
4939b8e80941Smrg#define   S_028758_MRT1_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 4)
4940b8e80941Smrg#define   G_028758_MRT1_EPSILON(x)                                    (((x) >> 4) & 0x0F)
4941b8e80941Smrg#define   C_028758_MRT1_EPSILON                                       0xFFFFFF0F
4942b8e80941Smrg#define   S_028758_MRT2_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 8)
4943b8e80941Smrg#define   G_028758_MRT2_EPSILON(x)                                    (((x) >> 8) & 0x0F)
4944b8e80941Smrg#define   C_028758_MRT2_EPSILON                                       0xFFFFF0FF
4945b8e80941Smrg#define   S_028758_MRT3_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 12)
4946b8e80941Smrg#define   G_028758_MRT3_EPSILON(x)                                    (((x) >> 12) & 0x0F)
4947b8e80941Smrg#define   C_028758_MRT3_EPSILON                                       0xFFFF0FFF
4948b8e80941Smrg#define   S_028758_MRT4_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 16)
4949b8e80941Smrg#define   G_028758_MRT4_EPSILON(x)                                    (((x) >> 16) & 0x0F)
4950b8e80941Smrg#define   C_028758_MRT4_EPSILON                                       0xFFF0FFFF
4951b8e80941Smrg#define   S_028758_MRT5_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 20)
4952b8e80941Smrg#define   G_028758_MRT5_EPSILON(x)                                    (((x) >> 20) & 0x0F)
4953b8e80941Smrg#define   C_028758_MRT5_EPSILON                                       0xFF0FFFFF
4954b8e80941Smrg#define   S_028758_MRT6_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 24)
4955b8e80941Smrg#define   G_028758_MRT6_EPSILON(x)                                    (((x) >> 24) & 0x0F)
4956b8e80941Smrg#define   C_028758_MRT6_EPSILON                                       0xF0FFFFFF
4957b8e80941Smrg#define   S_028758_MRT7_EPSILON(x)                                    (((unsigned)(x) & 0x0F) << 28)
4958b8e80941Smrg#define   G_028758_MRT7_EPSILON(x)                                    (((x) >> 28) & 0x0F)
4959b8e80941Smrg#define   C_028758_MRT7_EPSILON                                       0x0FFFFFFF
4960b8e80941Smrg#define R_02875C_SX_BLEND_OPT_CONTROL                                   0x02875C
4961b8e80941Smrg#define   S_02875C_MRT0_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 0)
4962b8e80941Smrg#define   G_02875C_MRT0_COLOR_OPT_DISABLE(x)                          (((x) >> 0) & 0x1)
4963b8e80941Smrg#define   C_02875C_MRT0_COLOR_OPT_DISABLE                             0xFFFFFFFE
4964b8e80941Smrg#define   S_02875C_MRT0_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 1)
4965b8e80941Smrg#define   G_02875C_MRT0_ALPHA_OPT_DISABLE(x)                          (((x) >> 1) & 0x1)
4966b8e80941Smrg#define   C_02875C_MRT0_ALPHA_OPT_DISABLE                             0xFFFFFFFD
4967b8e80941Smrg#define   S_02875C_MRT1_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 4)
4968b8e80941Smrg#define   G_02875C_MRT1_COLOR_OPT_DISABLE(x)                          (((x) >> 4) & 0x1)
4969b8e80941Smrg#define   C_02875C_MRT1_COLOR_OPT_DISABLE                             0xFFFFFFEF
4970b8e80941Smrg#define   S_02875C_MRT1_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 5)
4971b8e80941Smrg#define   G_02875C_MRT1_ALPHA_OPT_DISABLE(x)                          (((x) >> 5) & 0x1)
4972b8e80941Smrg#define   C_02875C_MRT1_ALPHA_OPT_DISABLE                             0xFFFFFFDF
4973b8e80941Smrg#define   S_02875C_MRT2_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 8)
4974b8e80941Smrg#define   G_02875C_MRT2_COLOR_OPT_DISABLE(x)                          (((x) >> 8) & 0x1)
4975b8e80941Smrg#define   C_02875C_MRT2_COLOR_OPT_DISABLE                             0xFFFFFEFF
4976b8e80941Smrg#define   S_02875C_MRT2_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 9)
4977b8e80941Smrg#define   G_02875C_MRT2_ALPHA_OPT_DISABLE(x)                          (((x) >> 9) & 0x1)
4978b8e80941Smrg#define   C_02875C_MRT2_ALPHA_OPT_DISABLE                             0xFFFFFDFF
4979b8e80941Smrg#define   S_02875C_MRT3_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 12)
4980b8e80941Smrg#define   G_02875C_MRT3_COLOR_OPT_DISABLE(x)                          (((x) >> 12) & 0x1)
4981b8e80941Smrg#define   C_02875C_MRT3_COLOR_OPT_DISABLE                             0xFFFFEFFF
4982b8e80941Smrg#define   S_02875C_MRT3_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 13)
4983b8e80941Smrg#define   G_02875C_MRT3_ALPHA_OPT_DISABLE(x)                          (((x) >> 13) & 0x1)
4984b8e80941Smrg#define   C_02875C_MRT3_ALPHA_OPT_DISABLE                             0xFFFFDFFF
4985b8e80941Smrg#define   S_02875C_MRT4_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 16)
4986b8e80941Smrg#define   G_02875C_MRT4_COLOR_OPT_DISABLE(x)                          (((x) >> 16) & 0x1)
4987b8e80941Smrg#define   C_02875C_MRT4_COLOR_OPT_DISABLE                             0xFFFEFFFF
4988b8e80941Smrg#define   S_02875C_MRT4_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 17)
4989b8e80941Smrg#define   G_02875C_MRT4_ALPHA_OPT_DISABLE(x)                          (((x) >> 17) & 0x1)
4990b8e80941Smrg#define   C_02875C_MRT4_ALPHA_OPT_DISABLE                             0xFFFDFFFF
4991b8e80941Smrg#define   S_02875C_MRT5_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 20)
4992b8e80941Smrg#define   G_02875C_MRT5_COLOR_OPT_DISABLE(x)                          (((x) >> 20) & 0x1)
4993b8e80941Smrg#define   C_02875C_MRT5_COLOR_OPT_DISABLE                             0xFFEFFFFF
4994b8e80941Smrg#define   S_02875C_MRT5_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 21)
4995b8e80941Smrg#define   G_02875C_MRT5_ALPHA_OPT_DISABLE(x)                          (((x) >> 21) & 0x1)
4996b8e80941Smrg#define   C_02875C_MRT5_ALPHA_OPT_DISABLE                             0xFFDFFFFF
4997b8e80941Smrg#define   S_02875C_MRT6_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 24)
4998b8e80941Smrg#define   G_02875C_MRT6_COLOR_OPT_DISABLE(x)                          (((x) >> 24) & 0x1)
4999b8e80941Smrg#define   C_02875C_MRT6_COLOR_OPT_DISABLE                             0xFEFFFFFF
5000b8e80941Smrg#define   S_02875C_MRT6_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 25)
5001b8e80941Smrg#define   G_02875C_MRT6_ALPHA_OPT_DISABLE(x)                          (((x) >> 25) & 0x1)
5002b8e80941Smrg#define   C_02875C_MRT6_ALPHA_OPT_DISABLE                             0xFDFFFFFF
5003b8e80941Smrg#define   S_02875C_MRT7_COLOR_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 28)
5004b8e80941Smrg#define   G_02875C_MRT7_COLOR_OPT_DISABLE(x)                          (((x) >> 28) & 0x1)
5005b8e80941Smrg#define   C_02875C_MRT7_COLOR_OPT_DISABLE                             0xEFFFFFFF
5006b8e80941Smrg#define   S_02875C_MRT7_ALPHA_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 29)
5007b8e80941Smrg#define   G_02875C_MRT7_ALPHA_OPT_DISABLE(x)                          (((x) >> 29) & 0x1)
5008b8e80941Smrg#define   C_02875C_MRT7_ALPHA_OPT_DISABLE                             0xDFFFFFFF
5009b8e80941Smrg#define   S_02875C_PIXEN_ZERO_OPT_DISABLE(x)                          (((unsigned)(x) & 0x1) << 31)
5010b8e80941Smrg#define   G_02875C_PIXEN_ZERO_OPT_DISABLE(x)                          (((x) >> 31) & 0x1)
5011b8e80941Smrg#define   C_02875C_PIXEN_ZERO_OPT_DISABLE                             0x7FFFFFFF
5012b8e80941Smrg#define R_028760_SX_MRT0_BLEND_OPT                                      0x028760
5013b8e80941Smrg#define   S_028760_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5014b8e80941Smrg#define   G_028760_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5015b8e80941Smrg#define   C_028760_COLOR_SRC_OPT                                      0xFFFFFFF8
5016b8e80941Smrg#define   S_028760_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5017b8e80941Smrg#define   G_028760_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5018b8e80941Smrg#define   C_028760_COLOR_DST_OPT                                      0xFFFFFF8F
5019b8e80941Smrg#define   S_028760_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5020b8e80941Smrg#define   G_028760_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5021b8e80941Smrg#define   C_028760_COLOR_COMB_FCN                                     0xFFFFF8FF
5022b8e80941Smrg#define   S_028760_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5023b8e80941Smrg#define   G_028760_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5024b8e80941Smrg#define   C_028760_ALPHA_SRC_OPT                                      0xFFF8FFFF
5025b8e80941Smrg#define   S_028760_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5026b8e80941Smrg#define   G_028760_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5027b8e80941Smrg#define   C_028760_ALPHA_DST_OPT                                      0xFF8FFFFF
5028b8e80941Smrg#define   S_028760_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5029b8e80941Smrg#define   G_028760_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5030b8e80941Smrg#define   C_028760_ALPHA_COMB_FCN                                     0xF8FFFFFF
5031b8e80941Smrg#define R_028764_SX_MRT1_BLEND_OPT                                      0x028764
5032b8e80941Smrg#define   S_028764_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5033b8e80941Smrg#define   G_028764_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5034b8e80941Smrg#define   C_028764_COLOR_SRC_OPT                                      0xFFFFFFF8
5035b8e80941Smrg#define   S_028764_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5036b8e80941Smrg#define   G_028764_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5037b8e80941Smrg#define   C_028764_COLOR_DST_OPT                                      0xFFFFFF8F
5038b8e80941Smrg#define   S_028764_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5039b8e80941Smrg#define   G_028764_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5040b8e80941Smrg#define   C_028764_COLOR_COMB_FCN                                     0xFFFFF8FF
5041b8e80941Smrg#define   S_028764_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5042b8e80941Smrg#define   G_028764_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5043b8e80941Smrg#define   C_028764_ALPHA_SRC_OPT                                      0xFFF8FFFF
5044b8e80941Smrg#define   S_028764_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5045b8e80941Smrg#define   G_028764_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5046b8e80941Smrg#define   C_028764_ALPHA_DST_OPT                                      0xFF8FFFFF
5047b8e80941Smrg#define   S_028764_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5048b8e80941Smrg#define   G_028764_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5049b8e80941Smrg#define   C_028764_ALPHA_COMB_FCN                                     0xF8FFFFFF
5050b8e80941Smrg#define R_028768_SX_MRT2_BLEND_OPT                                      0x028768
5051b8e80941Smrg#define   S_028768_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5052b8e80941Smrg#define   G_028768_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5053b8e80941Smrg#define   C_028768_COLOR_SRC_OPT                                      0xFFFFFFF8
5054b8e80941Smrg#define   S_028768_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5055b8e80941Smrg#define   G_028768_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5056b8e80941Smrg#define   C_028768_COLOR_DST_OPT                                      0xFFFFFF8F
5057b8e80941Smrg#define   S_028768_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5058b8e80941Smrg#define   G_028768_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5059b8e80941Smrg#define   C_028768_COLOR_COMB_FCN                                     0xFFFFF8FF
5060b8e80941Smrg#define   S_028768_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5061b8e80941Smrg#define   G_028768_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5062b8e80941Smrg#define   C_028768_ALPHA_SRC_OPT                                      0xFFF8FFFF
5063b8e80941Smrg#define   S_028768_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5064b8e80941Smrg#define   G_028768_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5065b8e80941Smrg#define   C_028768_ALPHA_DST_OPT                                      0xFF8FFFFF
5066b8e80941Smrg#define   S_028768_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5067b8e80941Smrg#define   G_028768_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5068b8e80941Smrg#define   C_028768_ALPHA_COMB_FCN                                     0xF8FFFFFF
5069b8e80941Smrg#define R_02876C_SX_MRT3_BLEND_OPT                                      0x02876C
5070b8e80941Smrg#define   S_02876C_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5071b8e80941Smrg#define   G_02876C_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5072b8e80941Smrg#define   C_02876C_COLOR_SRC_OPT                                      0xFFFFFFF8
5073b8e80941Smrg#define   S_02876C_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5074b8e80941Smrg#define   G_02876C_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5075b8e80941Smrg#define   C_02876C_COLOR_DST_OPT                                      0xFFFFFF8F
5076b8e80941Smrg#define   S_02876C_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5077b8e80941Smrg#define   G_02876C_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5078b8e80941Smrg#define   C_02876C_COLOR_COMB_FCN                                     0xFFFFF8FF
5079b8e80941Smrg#define   S_02876C_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5080b8e80941Smrg#define   G_02876C_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5081b8e80941Smrg#define   C_02876C_ALPHA_SRC_OPT                                      0xFFF8FFFF
5082b8e80941Smrg#define   S_02876C_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5083b8e80941Smrg#define   G_02876C_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5084b8e80941Smrg#define   C_02876C_ALPHA_DST_OPT                                      0xFF8FFFFF
5085b8e80941Smrg#define   S_02876C_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5086b8e80941Smrg#define   G_02876C_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5087b8e80941Smrg#define   C_02876C_ALPHA_COMB_FCN                                     0xF8FFFFFF
5088b8e80941Smrg#define R_028770_SX_MRT4_BLEND_OPT                                      0x028770
5089b8e80941Smrg#define   S_028770_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5090b8e80941Smrg#define   G_028770_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5091b8e80941Smrg#define   C_028770_COLOR_SRC_OPT                                      0xFFFFFFF8
5092b8e80941Smrg#define   S_028770_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5093b8e80941Smrg#define   G_028770_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5094b8e80941Smrg#define   C_028770_COLOR_DST_OPT                                      0xFFFFFF8F
5095b8e80941Smrg#define   S_028770_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5096b8e80941Smrg#define   G_028770_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5097b8e80941Smrg#define   C_028770_COLOR_COMB_FCN                                     0xFFFFF8FF
5098b8e80941Smrg#define   S_028770_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5099b8e80941Smrg#define   G_028770_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5100b8e80941Smrg#define   C_028770_ALPHA_SRC_OPT                                      0xFFF8FFFF
5101b8e80941Smrg#define   S_028770_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5102b8e80941Smrg#define   G_028770_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5103b8e80941Smrg#define   C_028770_ALPHA_DST_OPT                                      0xFF8FFFFF
5104b8e80941Smrg#define   S_028770_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5105b8e80941Smrg#define   G_028770_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5106b8e80941Smrg#define   C_028770_ALPHA_COMB_FCN                                     0xF8FFFFFF
5107b8e80941Smrg#define R_028774_SX_MRT5_BLEND_OPT                                      0x028774
5108b8e80941Smrg#define   S_028774_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5109b8e80941Smrg#define   G_028774_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5110b8e80941Smrg#define   C_028774_COLOR_SRC_OPT                                      0xFFFFFFF8
5111b8e80941Smrg#define   S_028774_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5112b8e80941Smrg#define   G_028774_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5113b8e80941Smrg#define   C_028774_COLOR_DST_OPT                                      0xFFFFFF8F
5114b8e80941Smrg#define   S_028774_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5115b8e80941Smrg#define   G_028774_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5116b8e80941Smrg#define   C_028774_COLOR_COMB_FCN                                     0xFFFFF8FF
5117b8e80941Smrg#define   S_028774_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5118b8e80941Smrg#define   G_028774_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5119b8e80941Smrg#define   C_028774_ALPHA_SRC_OPT                                      0xFFF8FFFF
5120b8e80941Smrg#define   S_028774_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5121b8e80941Smrg#define   G_028774_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5122b8e80941Smrg#define   C_028774_ALPHA_DST_OPT                                      0xFF8FFFFF
5123b8e80941Smrg#define   S_028774_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5124b8e80941Smrg#define   G_028774_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5125b8e80941Smrg#define   C_028774_ALPHA_COMB_FCN                                     0xF8FFFFFF
5126b8e80941Smrg#define R_028778_SX_MRT6_BLEND_OPT                                      0x028778
5127b8e80941Smrg#define   S_028778_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5128b8e80941Smrg#define   G_028778_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5129b8e80941Smrg#define   C_028778_COLOR_SRC_OPT                                      0xFFFFFFF8
5130b8e80941Smrg#define   S_028778_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5131b8e80941Smrg#define   G_028778_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5132b8e80941Smrg#define   C_028778_COLOR_DST_OPT                                      0xFFFFFF8F
5133b8e80941Smrg#define   S_028778_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5134b8e80941Smrg#define   G_028778_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5135b8e80941Smrg#define   C_028778_COLOR_COMB_FCN                                     0xFFFFF8FF
5136b8e80941Smrg#define   S_028778_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5137b8e80941Smrg#define   G_028778_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5138b8e80941Smrg#define   C_028778_ALPHA_SRC_OPT                                      0xFFF8FFFF
5139b8e80941Smrg#define   S_028778_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5140b8e80941Smrg#define   G_028778_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5141b8e80941Smrg#define   C_028778_ALPHA_DST_OPT                                      0xFF8FFFFF
5142b8e80941Smrg#define   S_028778_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5143b8e80941Smrg#define   G_028778_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5144b8e80941Smrg#define   C_028778_ALPHA_COMB_FCN                                     0xF8FFFFFF
5145b8e80941Smrg#define R_02877C_SX_MRT7_BLEND_OPT                                      0x02877C
5146b8e80941Smrg#define   S_02877C_COLOR_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 0)
5147b8e80941Smrg#define   G_02877C_COLOR_SRC_OPT(x)                                   (((x) >> 0) & 0x07)
5148b8e80941Smrg#define   C_02877C_COLOR_SRC_OPT                                      0xFFFFFFF8
5149b8e80941Smrg#define   S_02877C_COLOR_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 4)
5150b8e80941Smrg#define   G_02877C_COLOR_DST_OPT(x)                                   (((x) >> 4) & 0x07)
5151b8e80941Smrg#define   C_02877C_COLOR_DST_OPT                                      0xFFFFFF8F
5152b8e80941Smrg#define   S_02877C_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 8)
5153b8e80941Smrg#define   G_02877C_COLOR_COMB_FCN(x)                                  (((x) >> 8) & 0x07)
5154b8e80941Smrg#define   C_02877C_COLOR_COMB_FCN                                     0xFFFFF8FF
5155b8e80941Smrg#define   S_02877C_ALPHA_SRC_OPT(x)                                   (((unsigned)(x) & 0x07) << 16)
5156b8e80941Smrg#define   G_02877C_ALPHA_SRC_OPT(x)                                   (((x) >> 16) & 0x07)
5157b8e80941Smrg#define   C_02877C_ALPHA_SRC_OPT                                      0xFFF8FFFF
5158b8e80941Smrg#define   S_02877C_ALPHA_DST_OPT(x)                                   (((unsigned)(x) & 0x07) << 20)
5159b8e80941Smrg#define   G_02877C_ALPHA_DST_OPT(x)                                   (((x) >> 20) & 0x07)
5160b8e80941Smrg#define   C_02877C_ALPHA_DST_OPT                                      0xFF8FFFFF
5161b8e80941Smrg#define   S_02877C_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 24)
5162b8e80941Smrg#define   G_02877C_ALPHA_COMB_FCN(x)                                  (((x) >> 24) & 0x07)
5163b8e80941Smrg#define   C_02877C_ALPHA_COMB_FCN                                     0xF8FFFFFF
5164b8e80941Smrg#define R_028780_CB_BLEND0_CONTROL                                      0x028780
5165b8e80941Smrg#define   S_028780_COLOR_SRCBLEND(x)                                  (((unsigned)(x) & 0x1F) << 0)
5166b8e80941Smrg#define   G_028780_COLOR_SRCBLEND(x)                                  (((x) >> 0) & 0x1F)
5167b8e80941Smrg#define   C_028780_COLOR_SRCBLEND                                     0xFFFFFFE0
5168b8e80941Smrg#define   S_028780_COLOR_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 5)
5169b8e80941Smrg#define   G_028780_COLOR_COMB_FCN(x)                                  (((x) >> 5) & 0x07)
5170b8e80941Smrg#define   C_028780_COLOR_COMB_FCN                                     0xFFFFFF1F
5171b8e80941Smrg#define   S_028780_COLOR_DESTBLEND(x)                                 (((unsigned)(x) & 0x1F) << 8)
5172b8e80941Smrg#define   G_028780_COLOR_DESTBLEND(x)                                 (((x) >> 8) & 0x1F)
5173b8e80941Smrg#define   C_028780_COLOR_DESTBLEND                                    0xFFFFE0FF
5174b8e80941Smrg#define   S_028780_ALPHA_SRCBLEND(x)                                  (((unsigned)(x) & 0x1F) << 16)
5175b8e80941Smrg#define   G_028780_ALPHA_SRCBLEND(x)                                  (((x) >> 16) & 0x1F)
5176b8e80941Smrg#define   C_028780_ALPHA_SRCBLEND                                     0xFFE0FFFF
5177b8e80941Smrg#define   S_028780_ALPHA_COMB_FCN(x)                                  (((unsigned)(x) & 0x07) << 21)
5178b8e80941Smrg#define   G_028780_ALPHA_COMB_FCN(x)                                  (((x) >> 21) & 0x07)
5179b8e80941Smrg#define   C_028780_ALPHA_COMB_FCN                                     0xFF1FFFFF
5180b8e80941Smrg#define   S_028780_ALPHA_DESTBLEND(x)                                 (((unsigned)(x) & 0x1F) << 24)
5181b8e80941Smrg#define   G_028780_ALPHA_DESTBLEND(x)                                 (((x) >> 24) & 0x1F)
5182b8e80941Smrg#define   C_028780_ALPHA_DESTBLEND                                    0xE0FFFFFF
5183b8e80941Smrg#define   S_028780_SEPARATE_ALPHA_BLEND(x)                            (((unsigned)(x) & 0x1) << 29)
5184b8e80941Smrg#define   G_028780_SEPARATE_ALPHA_BLEND(x)                            (((x) >> 29) & 0x1)
5185b8e80941Smrg#define   C_028780_SEPARATE_ALPHA_BLEND                               0xDFFFFFFF
5186b8e80941Smrg#define   S_028780_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 30)
5187b8e80941Smrg#define   G_028780_ENABLE(x)                                          (((x) >> 30) & 0x1)
5188b8e80941Smrg#define   C_028780_ENABLE                                             0xBFFFFFFF
5189b8e80941Smrg#define   S_028780_DISABLE_ROP3(x)                                    (((unsigned)(x) & 0x1) << 31)
5190b8e80941Smrg#define   G_028780_DISABLE_ROP3(x)                                    (((x) >> 31) & 0x1)
5191b8e80941Smrg#define   C_028780_DISABLE_ROP3                                       0x7FFFFFFF
5192b8e80941Smrg#define R_028784_CB_BLEND1_CONTROL                                      0x028784
5193b8e80941Smrg#define R_028788_CB_BLEND2_CONTROL                                      0x028788
5194b8e80941Smrg#define R_02878C_CB_BLEND3_CONTROL                                      0x02878C
5195b8e80941Smrg#define R_028790_CB_BLEND4_CONTROL                                      0x028790
5196b8e80941Smrg#define R_028794_CB_BLEND5_CONTROL                                      0x028794
5197b8e80941Smrg#define R_028798_CB_BLEND6_CONTROL                                      0x028798
5198b8e80941Smrg#define R_02879C_CB_BLEND7_CONTROL                                      0x02879C
5199b8e80941Smrg#define R_0287A0_CB_MRT0_EPITCH                                         0x0287A0
5200b8e80941Smrg#define   S_0287A0_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5201b8e80941Smrg#define   G_0287A0_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5202b8e80941Smrg#define   C_0287A0_EPITCH                                             0xFFFF0000
5203b8e80941Smrg#define R_0287A4_CB_MRT1_EPITCH                                         0x0287A4
5204b8e80941Smrg#define   S_0287A4_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5205b8e80941Smrg#define   G_0287A4_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5206b8e80941Smrg#define   C_0287A4_EPITCH                                             0xFFFF0000
5207b8e80941Smrg#define R_0287A8_CB_MRT2_EPITCH                                         0x0287A8
5208b8e80941Smrg#define   S_0287A8_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5209b8e80941Smrg#define   G_0287A8_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5210b8e80941Smrg#define   C_0287A8_EPITCH                                             0xFFFF0000
5211b8e80941Smrg#define R_0287AC_CB_MRT3_EPITCH                                         0x0287AC
5212b8e80941Smrg#define   S_0287AC_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5213b8e80941Smrg#define   G_0287AC_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5214b8e80941Smrg#define   C_0287AC_EPITCH                                             0xFFFF0000
5215b8e80941Smrg#define R_0287B0_CB_MRT4_EPITCH                                         0x0287B0
5216b8e80941Smrg#define   S_0287B0_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5217b8e80941Smrg#define   G_0287B0_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5218b8e80941Smrg#define   C_0287B0_EPITCH                                             0xFFFF0000
5219b8e80941Smrg#define R_0287B4_CB_MRT5_EPITCH                                         0x0287B4
5220b8e80941Smrg#define   S_0287B4_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5221b8e80941Smrg#define   G_0287B4_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5222b8e80941Smrg#define   C_0287B4_EPITCH                                             0xFFFF0000
5223b8e80941Smrg#define R_0287B8_CB_MRT6_EPITCH                                         0x0287B8
5224b8e80941Smrg#define   S_0287B8_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5225b8e80941Smrg#define   G_0287B8_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5226b8e80941Smrg#define   C_0287B8_EPITCH                                             0xFFFF0000
5227b8e80941Smrg#define R_0287BC_CB_MRT7_EPITCH                                         0x0287BC
5228b8e80941Smrg#define   S_0287BC_EPITCH(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5229b8e80941Smrg#define   G_0287BC_EPITCH(x)                                          (((x) >> 0) & 0xFFFF)
5230b8e80941Smrg#define   C_0287BC_EPITCH                                             0xFFFF0000
5231b8e80941Smrg#define R_0287CC_CS_COPY_STATE                                          0x0287CC
5232b8e80941Smrg#define   S_0287CC_SRC_STATE_ID(x)                                    (((unsigned)(x) & 0x07) << 0)
5233b8e80941Smrg#define   G_0287CC_SRC_STATE_ID(x)                                    (((x) >> 0) & 0x07)
5234b8e80941Smrg#define   C_0287CC_SRC_STATE_ID                                       0xFFFFFFF8
5235b8e80941Smrg#define R_0287D4_PA_CL_POINT_X_RAD                                      0x0287D4
5236b8e80941Smrg#define R_0287D8_PA_CL_POINT_Y_RAD                                      0x0287D8
5237b8e80941Smrg#define R_0287DC_PA_CL_POINT_SIZE                                       0x0287DC
5238b8e80941Smrg#define R_0287E0_PA_CL_POINT_CULL_RAD                                   0x0287E0
5239b8e80941Smrg#define R_0287E4_VGT_DMA_BASE_HI                                        0x0287E4
5240b8e80941Smrg#define   S_0287E4_BASE_ADDR_GFX9(x)                                  (((unsigned)(x) & 0xFFFF) << 0)
5241b8e80941Smrg#define   G_0287E4_BASE_ADDR_GFX9(x)                                  (((x) >> 0) & 0xFFFF)
5242b8e80941Smrg#define   C_0287E4_BASE_ADDR_GFX9                                     0xFFFF0000
5243b8e80941Smrg#define R_0287E8_VGT_DMA_BASE                                           0x0287E8
5244b8e80941Smrg#define R_0287F0_VGT_DRAW_INITIATOR                                     0x0287F0
5245b8e80941Smrg#define   S_0287F0_SOURCE_SELECT(x)                                   (((unsigned)(x) & 0x03) << 0)
5246b8e80941Smrg#define   G_0287F0_SOURCE_SELECT(x)                                   (((x) >> 0) & 0x03)
5247b8e80941Smrg#define   C_0287F0_SOURCE_SELECT                                      0xFFFFFFFC
5248b8e80941Smrg#define   S_0287F0_MAJOR_MODE(x)                                      (((unsigned)(x) & 0x03) << 2)
5249b8e80941Smrg#define   G_0287F0_MAJOR_MODE(x)                                      (((x) >> 2) & 0x03)
5250b8e80941Smrg#define   C_0287F0_MAJOR_MODE                                         0xFFFFFFF3
5251b8e80941Smrg#define   S_0287F0_SPRITE_EN_R6XX(x)                                  (((unsigned)(x) & 0x1) << 4)
5252b8e80941Smrg#define   G_0287F0_SPRITE_EN_R6XX(x)                                  (((x) >> 4) & 0x1)
5253b8e80941Smrg#define   C_0287F0_SPRITE_EN_R6XX                                     0xFFFFFFEF
5254b8e80941Smrg#define   S_0287F0_NOT_EOP(x)                                         (((unsigned)(x) & 0x1) << 5)
5255b8e80941Smrg#define   G_0287F0_NOT_EOP(x)                                         (((x) >> 5) & 0x1)
5256b8e80941Smrg#define   C_0287F0_NOT_EOP                                            0xFFFFFFDF
5257b8e80941Smrg#define   S_0287F0_USE_OPAQUE(x)                                      (((unsigned)(x) & 0x1) << 6)
5258b8e80941Smrg#define   G_0287F0_USE_OPAQUE(x)                                      (((x) >> 6) & 0x1)
5259b8e80941Smrg#define   C_0287F0_USE_OPAQUE                                         0xFFFFFFBF
5260b8e80941Smrg#define   S_0287F0_UNROLLED_INST(x)                                   (((unsigned)(x) & 0x1) << 7)
5261b8e80941Smrg#define   G_0287F0_UNROLLED_INST(x)                                   (((x) >> 7) & 0x1)
5262b8e80941Smrg#define   C_0287F0_UNROLLED_INST                                      0xFFFFFF7F
5263b8e80941Smrg#define   S_0287F0_GRBM_SKEW_NO_DEC(x)                                (((unsigned)(x) & 0x1) << 8)
5264b8e80941Smrg#define   G_0287F0_GRBM_SKEW_NO_DEC(x)                                (((x) >> 8) & 0x1)
5265b8e80941Smrg#define   C_0287F0_GRBM_SKEW_NO_DEC                                   0xFFFFFEFF
5266b8e80941Smrg#define   S_0287F0_REG_RT_INDEX(x)                                    (((unsigned)(x) & 0x07) << 29)
5267b8e80941Smrg#define   G_0287F0_REG_RT_INDEX(x)                                    (((x) >> 29) & 0x07)
5268b8e80941Smrg#define   C_0287F0_REG_RT_INDEX                                       0x1FFFFFFF
5269b8e80941Smrg#define R_0287F4_VGT_IMMED_DATA                                         0x0287F4
5270b8e80941Smrg#define R_0287F8_VGT_EVENT_ADDRESS_REG                                  0x0287F8
5271b8e80941Smrg#define   S_0287F8_ADDRESS_LOW(x)                                     (((unsigned)(x) & 0xFFFFFFF) << 0)
5272b8e80941Smrg#define   G_0287F8_ADDRESS_LOW(x)                                     (((x) >> 0) & 0xFFFFFFF)
5273b8e80941Smrg#define   C_0287F8_ADDRESS_LOW                                        0xF0000000
5274b8e80941Smrg#define R_028800_DB_DEPTH_CONTROL                                       0x028800
5275b8e80941Smrg#define   S_028800_STENCIL_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 0)
5276b8e80941Smrg#define   G_028800_STENCIL_ENABLE(x)                                  (((x) >> 0) & 0x1)
5277b8e80941Smrg#define   C_028800_STENCIL_ENABLE                                     0xFFFFFFFE
5278b8e80941Smrg#define   S_028800_Z_ENABLE(x)                                        (((unsigned)(x) & 0x1) << 1)
5279b8e80941Smrg#define   G_028800_Z_ENABLE(x)                                        (((x) >> 1) & 0x1)
5280b8e80941Smrg#define   C_028800_Z_ENABLE                                           0xFFFFFFFD
5281b8e80941Smrg#define   S_028800_Z_WRITE_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 2)
5282b8e80941Smrg#define   G_028800_Z_WRITE_ENABLE(x)                                  (((x) >> 2) & 0x1)
5283b8e80941Smrg#define   C_028800_Z_WRITE_ENABLE                                     0xFFFFFFFB
5284b8e80941Smrg#define   S_028800_DEPTH_BOUNDS_ENABLE(x)                             (((unsigned)(x) & 0x1) << 3)
5285b8e80941Smrg#define   G_028800_DEPTH_BOUNDS_ENABLE(x)                             (((x) >> 3) & 0x1)
5286b8e80941Smrg#define   C_028800_DEPTH_BOUNDS_ENABLE                                0xFFFFFFF7
5287b8e80941Smrg#define   S_028800_ZFUNC(x)                                           (((unsigned)(x) & 0x07) << 4)
5288b8e80941Smrg#define   G_028800_ZFUNC(x)                                           (((x) >> 4) & 0x07)
5289b8e80941Smrg#define   C_028800_ZFUNC                                              0xFFFFFF8F
5290b8e80941Smrg#define   S_028800_BACKFACE_ENABLE(x)                                 (((unsigned)(x) & 0x1) << 7)
5291b8e80941Smrg#define   G_028800_BACKFACE_ENABLE(x)                                 (((x) >> 7) & 0x1)
5292b8e80941Smrg#define   C_028800_BACKFACE_ENABLE                                    0xFFFFFF7F
5293b8e80941Smrg#define   S_028800_STENCILFUNC(x)                                     (((unsigned)(x) & 0x07) << 8)
5294b8e80941Smrg#define   G_028800_STENCILFUNC(x)                                     (((x) >> 8) & 0x07)
5295b8e80941Smrg#define   C_028800_STENCILFUNC                                        0xFFFFF8FF
5296b8e80941Smrg#define   S_028800_STENCILFUNC_BF(x)                                  (((unsigned)(x) & 0x07) << 20)
5297b8e80941Smrg#define   G_028800_STENCILFUNC_BF(x)                                  (((x) >> 20) & 0x07)
5298b8e80941Smrg#define   C_028800_STENCILFUNC_BF                                     0xFF8FFFFF
5299b8e80941Smrg#define   S_028800_ENABLE_COLOR_WRITES_ON_DEPTH_FAIL(x)               (((unsigned)(x) & 0x1) << 30)
5300b8e80941Smrg#define   G_028800_ENABLE_COLOR_WRITES_ON_DEPTH_FAIL(x)               (((x) >> 30) & 0x1)
5301b8e80941Smrg#define   C_028800_ENABLE_COLOR_WRITES_ON_DEPTH_FAIL                  0xBFFFFFFF
5302b8e80941Smrg#define   S_028800_DISABLE_COLOR_WRITES_ON_DEPTH_PASS(x)              (((unsigned)(x) & 0x1) << 31)
5303b8e80941Smrg#define   G_028800_DISABLE_COLOR_WRITES_ON_DEPTH_PASS(x)              (((x) >> 31) & 0x1)
5304b8e80941Smrg#define   C_028800_DISABLE_COLOR_WRITES_ON_DEPTH_PASS                 0x7FFFFFFF
5305b8e80941Smrg#define R_028804_DB_EQAA                                                0x028804
5306b8e80941Smrg#define   S_028804_MAX_ANCHOR_SAMPLES(x)                              (((unsigned)(x) & 0x07) << 0)
5307b8e80941Smrg#define   G_028804_MAX_ANCHOR_SAMPLES(x)                              (((x) >> 0) & 0x07)
5308b8e80941Smrg#define   C_028804_MAX_ANCHOR_SAMPLES                                 0xFFFFFFF8
5309b8e80941Smrg#define   S_028804_PS_ITER_SAMPLES(x)                                 (((unsigned)(x) & 0x07) << 4)
5310b8e80941Smrg#define   G_028804_PS_ITER_SAMPLES(x)                                 (((x) >> 4) & 0x07)
5311b8e80941Smrg#define   C_028804_PS_ITER_SAMPLES                                    0xFFFFFF8F
5312b8e80941Smrg#define   S_028804_MASK_EXPORT_NUM_SAMPLES(x)                         (((unsigned)(x) & 0x07) << 8)
5313b8e80941Smrg#define   G_028804_MASK_EXPORT_NUM_SAMPLES(x)                         (((x) >> 8) & 0x07)
5314b8e80941Smrg#define   C_028804_MASK_EXPORT_NUM_SAMPLES                            0xFFFFF8FF
5315b8e80941Smrg#define   S_028804_ALPHA_TO_MASK_NUM_SAMPLES(x)                       (((unsigned)(x) & 0x07) << 12)
5316b8e80941Smrg#define   G_028804_ALPHA_TO_MASK_NUM_SAMPLES(x)                       (((x) >> 12) & 0x07)
5317b8e80941Smrg#define   C_028804_ALPHA_TO_MASK_NUM_SAMPLES                          0xFFFF8FFF
5318b8e80941Smrg#define   S_028804_HIGH_QUALITY_INTERSECTIONS(x)                      (((unsigned)(x) & 0x1) << 16)
5319b8e80941Smrg#define   G_028804_HIGH_QUALITY_INTERSECTIONS(x)                      (((x) >> 16) & 0x1)
5320b8e80941Smrg#define   C_028804_HIGH_QUALITY_INTERSECTIONS                         0xFFFEFFFF
5321b8e80941Smrg#define   S_028804_INCOHERENT_EQAA_READS(x)                           (((unsigned)(x) & 0x1) << 17)
5322b8e80941Smrg#define   G_028804_INCOHERENT_EQAA_READS(x)                           (((x) >> 17) & 0x1)
5323b8e80941Smrg#define   C_028804_INCOHERENT_EQAA_READS                              0xFFFDFFFF
5324b8e80941Smrg#define   S_028804_INTERPOLATE_COMP_Z(x)                              (((unsigned)(x) & 0x1) << 18)
5325b8e80941Smrg#define   G_028804_INTERPOLATE_COMP_Z(x)                              (((x) >> 18) & 0x1)
5326b8e80941Smrg#define   C_028804_INTERPOLATE_COMP_Z                                 0xFFFBFFFF
5327b8e80941Smrg#define   S_028804_INTERPOLATE_SRC_Z(x)                               (((unsigned)(x) & 0x1) << 19)
5328b8e80941Smrg#define   G_028804_INTERPOLATE_SRC_Z(x)                               (((x) >> 19) & 0x1)
5329b8e80941Smrg#define   C_028804_INTERPOLATE_SRC_Z                                  0xFFF7FFFF
5330b8e80941Smrg#define   S_028804_STATIC_ANCHOR_ASSOCIATIONS(x)                      (((unsigned)(x) & 0x1) << 20)
5331b8e80941Smrg#define   G_028804_STATIC_ANCHOR_ASSOCIATIONS(x)                      (((x) >> 20) & 0x1)
5332b8e80941Smrg#define   C_028804_STATIC_ANCHOR_ASSOCIATIONS                         0xFFEFFFFF
5333b8e80941Smrg#define   S_028804_ALPHA_TO_MASK_EQAA_DISABLE(x)                      (((unsigned)(x) & 0x1) << 21)
5334b8e80941Smrg#define   G_028804_ALPHA_TO_MASK_EQAA_DISABLE(x)                      (((x) >> 21) & 0x1)
5335b8e80941Smrg#define   C_028804_ALPHA_TO_MASK_EQAA_DISABLE                         0xFFDFFFFF
5336b8e80941Smrg#define   S_028804_OVERRASTERIZATION_AMOUNT(x)                        (((unsigned)(x) & 0x07) << 24)
5337b8e80941Smrg#define   G_028804_OVERRASTERIZATION_AMOUNT(x)                        (((x) >> 24) & 0x07)
5338b8e80941Smrg#define   C_028804_OVERRASTERIZATION_AMOUNT                           0xF8FFFFFF
5339b8e80941Smrg#define   S_028804_ENABLE_POSTZ_OVERRASTERIZATION(x)                  (((unsigned)(x) & 0x1) << 27)
5340b8e80941Smrg#define   G_028804_ENABLE_POSTZ_OVERRASTERIZATION(x)                  (((x) >> 27) & 0x1)
5341b8e80941Smrg#define   C_028804_ENABLE_POSTZ_OVERRASTERIZATION                     0xF7FFFFFF
5342b8e80941Smrg#define R_028808_CB_COLOR_CONTROL                                       0x028808
5343b8e80941Smrg#define   S_028808_DISABLE_DUAL_QUAD(x)                               (((unsigned)(x) & 0x1) << 0)
5344b8e80941Smrg#define   G_028808_DISABLE_DUAL_QUAD(x)                               (((x) >> 0) & 0x1)
5345b8e80941Smrg#define   C_028808_DISABLE_DUAL_QUAD                                  0xFFFFFFFE
5346b8e80941Smrg#define   S_028808_DEGAMMA_ENABLE(x)                                  (((unsigned)(x) & 0x1) << 3)
5347b8e80941Smrg#define   G_028808_DEGAMMA_ENABLE(x)                                  (((x) >> 3) & 0x1)
5348b8e80941Smrg#define   C_028808_DEGAMMA_ENABLE                                     0xFFFFFFF7
5349b8e80941Smrg#define   S_028808_MODE(x)                                            (((unsigned)(x) & 0x07) << 4)
5350b8e80941Smrg#define   G_028808_MODE(x)                                            (((x) >> 4) & 0x07)
5351b8e80941Smrg#define   C_028808_MODE                                               0xFFFFFF8F
5352b8e80941Smrg#define   S_028808_ROP3(x)                                            (((unsigned)(x) & 0xFF) << 16)
5353b8e80941Smrg#define   G_028808_ROP3(x)                                            (((x) >> 16) & 0xFF)
5354b8e80941Smrg#define   C_028808_ROP3                                               0xFF00FFFF
5355b8e80941Smrg#define R_02880C_DB_SHADER_CONTROL                                      0x02880C
5356b8e80941Smrg#define   S_02880C_Z_EXPORT_ENABLE(x)                                 (((unsigned)(x) & 0x1) << 0)
5357b8e80941Smrg#define   G_02880C_Z_EXPORT_ENABLE(x)                                 (((x) >> 0) & 0x1)
5358b8e80941Smrg#define   C_02880C_Z_EXPORT_ENABLE                                    0xFFFFFFFE
5359b8e80941Smrg#define   S_02880C_STENCIL_TEST_VAL_EXPORT_ENABLE(x)                  (((unsigned)(x) & 0x1) << 1)
5360b8e80941Smrg#define   G_02880C_STENCIL_TEST_VAL_EXPORT_ENABLE(x)                  (((x) >> 1) & 0x1)
5361b8e80941Smrg#define   C_02880C_STENCIL_TEST_VAL_EXPORT_ENABLE                     0xFFFFFFFD
5362b8e80941Smrg#define   S_02880C_STENCIL_OP_VAL_EXPORT_ENABLE(x)                    (((unsigned)(x) & 0x1) << 2)
5363b8e80941Smrg#define   G_02880C_STENCIL_OP_VAL_EXPORT_ENABLE(x)                    (((x) >> 2) & 0x1)
5364b8e80941Smrg#define   C_02880C_STENCIL_OP_VAL_EXPORT_ENABLE                       0xFFFFFFFB
5365b8e80941Smrg#define   S_02880C_Z_ORDER(x)                                         (((unsigned)(x) & 0x03) << 4)
5366b8e80941Smrg#define   G_02880C_Z_ORDER(x)                                         (((x) >> 4) & 0x03)
5367b8e80941Smrg#define   C_02880C_Z_ORDER                                            0xFFFFFFCF
5368b8e80941Smrg#define   S_02880C_KILL_ENABLE(x)                                     (((unsigned)(x) & 0x1) << 6)
5369b8e80941Smrg#define   G_02880C_KILL_ENABLE(x)                                     (((x) >> 6) & 0x1)
5370b8e80941Smrg#define   C_02880C_KILL_ENABLE                                        0xFFFFFFBF
5371b8e80941Smrg#define   S_02880C_COVERAGE_TO_MASK_ENABLE(x)                         (((unsigned)(x) & 0x1) << 7)
5372b8e80941Smrg#define   G_02880C_COVERAGE_TO_MASK_ENABLE(x)                         (((x) >> 7) & 0x1)
5373b8e80941Smrg#define   C_02880C_COVERAGE_TO_MASK_ENABLE                            0xFFFFFF7F
5374b8e80941Smrg#define   S_02880C_MASK_EXPORT_ENABLE(x)                              (((unsigned)(x) & 0x1) << 8)
5375b8e80941Smrg#define   G_02880C_MASK_EXPORT_ENABLE(x)                              (((x) >> 8) & 0x1)
5376b8e80941Smrg#define   C_02880C_MASK_EXPORT_ENABLE                                 0xFFFFFEFF
5377b8e80941Smrg#define   S_02880C_EXEC_ON_HIER_FAIL(x)                               (((unsigned)(x) & 0x1) << 9)
5378b8e80941Smrg#define   G_02880C_EXEC_ON_HIER_FAIL(x)                               (((x) >> 9) & 0x1)
5379b8e80941Smrg#define   C_02880C_EXEC_ON_HIER_FAIL                                  0xFFFFFDFF
5380b8e80941Smrg#define   S_02880C_EXEC_ON_NOOP(x)                                    (((unsigned)(x) & 0x1) << 10)
5381b8e80941Smrg#define   G_02880C_EXEC_ON_NOOP(x)                                    (((x) >> 10) & 0x1)
5382b8e80941Smrg#define   C_02880C_EXEC_ON_NOOP                                       0xFFFFFBFF
5383b8e80941Smrg#define   S_02880C_ALPHA_TO_MASK_DISABLE(x)                           (((unsigned)(x) & 0x1) << 11)
5384b8e80941Smrg#define   G_02880C_ALPHA_TO_MASK_DISABLE(x)                           (((x) >> 11) & 0x1)
5385b8e80941Smrg#define   C_02880C_ALPHA_TO_MASK_DISABLE                              0xFFFFF7FF
5386b8e80941Smrg#define   S_02880C_DEPTH_BEFORE_SHADER(x)                             (((unsigned)(x) & 0x1) << 12)
5387b8e80941Smrg#define   G_02880C_DEPTH_BEFORE_SHADER(x)                             (((x) >> 12) & 0x1)
5388b8e80941Smrg#define   C_02880C_DEPTH_BEFORE_SHADER                                0xFFFFEFFF
5389b8e80941Smrg#define   S_02880C_CONSERVATIVE_Z_EXPORT(x)                           (((unsigned)(x) & 0x03) << 13)
5390b8e80941Smrg#define   G_02880C_CONSERVATIVE_Z_EXPORT(x)                           (((x) >> 13) & 0x03)
5391b8e80941Smrg#define   C_02880C_CONSERVATIVE_Z_EXPORT                              0xFFFF9FFF
5392b8e80941Smrg#define   S_02880C_DUAL_QUAD_DISABLE(x)                               (((unsigned)(x) & 0x1) << 15)
5393b8e80941Smrg#define   G_02880C_DUAL_QUAD_DISABLE(x)                               (((x) >> 15) & 0x1)
5394b8e80941Smrg#define   C_02880C_DUAL_QUAD_DISABLE                                  0xFFFF7FFF
5395b8e80941Smrg#define   S_02880C_PRIMITIVE_ORDERED_PIXEL_SHADER(x)                  (((unsigned)(x) & 0x1) << 16)
5396b8e80941Smrg#define   G_02880C_PRIMITIVE_ORDERED_PIXEL_SHADER(x)                  (((x) >> 16) & 0x1)
5397b8e80941Smrg#define   C_02880C_PRIMITIVE_ORDERED_PIXEL_SHADER                     0xFFFEFFFF
5398b8e80941Smrg#define   S_02880C_EXEC_IF_OVERLAPPED(x)                              (((unsigned)(x) & 0x1) << 17)
5399b8e80941Smrg#define   G_02880C_EXEC_IF_OVERLAPPED(x)                              (((x) >> 17) & 0x1)
5400b8e80941Smrg#define   C_02880C_EXEC_IF_OVERLAPPED                                 0xFFFDFFFF
5401b8e80941Smrg#define   S_02880C_POPS_OVERLAP_NUM_SAMPLES(x)                        (((unsigned)(x) & 0x07) << 20)
5402b8e80941Smrg#define   G_02880C_POPS_OVERLAP_NUM_SAMPLES(x)                        (((x) >> 20) & 0x07)
5403b8e80941Smrg#define   C_02880C_POPS_OVERLAP_NUM_SAMPLES                           0xFF8FFFFF
5404b8e80941Smrg#define R_028810_PA_CL_CLIP_CNTL                                        0x028810
5405b8e80941Smrg#define   S_028810_UCP_ENA_0(x)                                       (((unsigned)(x) & 0x1) << 0)
5406b8e80941Smrg#define   G_028810_UCP_ENA_0(x)                                       (((x) >> 0) & 0x1)
5407b8e80941Smrg#define   C_028810_UCP_ENA_0                                          0xFFFFFFFE
5408b8e80941Smrg#define   S_028810_UCP_ENA_1(x)                                       (((unsigned)(x) & 0x1) << 1)
5409b8e80941Smrg#define   G_028810_UCP_ENA_1(x)                                       (((x) >> 1) & 0x1)
5410b8e80941Smrg#define   C_028810_UCP_ENA_1                                          0xFFFFFFFD
5411b8e80941Smrg#define   S_028810_UCP_ENA_2(x)                                       (((unsigned)(x) & 0x1) << 2)
5412b8e80941Smrg#define   G_028810_UCP_ENA_2(x)                                       (((x) >> 2) & 0x1)
5413b8e80941Smrg#define   C_028810_UCP_ENA_2                                          0xFFFFFFFB
5414b8e80941Smrg#define   S_028810_UCP_ENA_3(x)                                       (((unsigned)(x) & 0x1) << 3)
5415b8e80941Smrg#define   G_028810_UCP_ENA_3(x)                                       (((x) >> 3) & 0x1)
5416b8e80941Smrg#define   C_028810_UCP_ENA_3                                          0xFFFFFFF7
5417b8e80941Smrg#define   S_028810_UCP_ENA_4(x)                                       (((unsigned)(x) & 0x1) << 4)
5418b8e80941Smrg#define   G_028810_UCP_ENA_4(x)                                       (((x) >> 4) & 0x1)
5419b8e80941Smrg#define   C_028810_UCP_ENA_4                                          0xFFFFFFEF
5420b8e80941Smrg#define   S_028810_UCP_ENA_5(x)                                       (((unsigned)(x) & 0x1) << 5)
5421b8e80941Smrg#define   G_028810_UCP_ENA_5(x)                                       (((x) >> 5) & 0x1)
5422b8e80941Smrg#define   C_028810_UCP_ENA_5                                          0xFFFFFFDF
5423b8e80941Smrg#define   S_028810_PS_UCP_Y_SCALE_NEG(x)                              (((unsigned)(x) & 0x1) << 13)
5424b8e80941Smrg#define   G_028810_PS_UCP_Y_SCALE_NEG(x)                              (((x) >> 13) & 0x1)
5425b8e80941Smrg#define   C_028810_PS_UCP_Y_SCALE_NEG                                 0xFFFFDFFF
5426b8e80941Smrg#define   S_028810_PS_UCP_MODE(x)                                     (((unsigned)(x) & 0x03) << 14)
5427b8e80941Smrg#define   G_028810_PS_UCP_MODE(x)                                     (((x) >> 14) & 0x03)
5428b8e80941Smrg#define   C_028810_PS_UCP_MODE                                        0xFFFF3FFF
5429b8e80941Smrg#define   S_028810_CLIP_DISABLE(x)                                    (((unsigned)(x) & 0x1) << 16)
5430b8e80941Smrg#define   G_028810_CLIP_DISABLE(x)                                    (((x) >> 16) & 0x1)
5431b8e80941Smrg#define   C_028810_CLIP_DISABLE                                       0xFFFEFFFF
5432b8e80941Smrg#define   S_028810_UCP_CULL_ONLY_ENA(x)                               (((unsigned)(x) & 0x1) << 17)
5433b8e80941Smrg#define   G_028810_UCP_CULL_ONLY_ENA(x)                               (((x) >> 17) & 0x1)
5434b8e80941Smrg#define   C_028810_UCP_CULL_ONLY_ENA                                  0xFFFDFFFF
5435b8e80941Smrg#define   S_028810_BOUNDARY_EDGE_FLAG_ENA(x)                          (((unsigned)(x) & 0x1) << 18)
5436b8e80941Smrg#define   G_028810_BOUNDARY_EDGE_FLAG_ENA(x)                          (((x) >> 18) & 0x1)
5437b8e80941Smrg#define   C_028810_BOUNDARY_EDGE_FLAG_ENA                             0xFFFBFFFF
5438b8e80941Smrg#define   S_028810_DX_CLIP_SPACE_DEF(x)                               (((unsigned)(x) & 0x1) << 19)
5439b8e80941Smrg#define   G_028810_DX_CLIP_SPACE_DEF(x)                               (((x) >> 19) & 0x1)
5440b8e80941Smrg#define   C_028810_DX_CLIP_SPACE_DEF                                  0xFFF7FFFF
5441b8e80941Smrg#define   S_028810_DIS_CLIP_ERR_DETECT(x)                             (((unsigned)(x) & 0x1) << 20)
5442b8e80941Smrg#define   G_028810_DIS_CLIP_ERR_DETECT(x)                             (((x) >> 20) & 0x1)
5443b8e80941Smrg#define   C_028810_DIS_CLIP_ERR_DETECT                                0xFFEFFFFF
5444b8e80941Smrg#define   S_028810_VTX_KILL_OR(x)                                     (((unsigned)(x) & 0x1) << 21)
5445b8e80941Smrg#define   G_028810_VTX_KILL_OR(x)                                     (((x) >> 21) & 0x1)
5446b8e80941Smrg#define   C_028810_VTX_KILL_OR                                        0xFFDFFFFF
5447b8e80941Smrg#define   S_028810_DX_RASTERIZATION_KILL(x)                           (((unsigned)(x) & 0x1) << 22)
5448b8e80941Smrg#define   G_028810_DX_RASTERIZATION_KILL(x)                           (((x) >> 22) & 0x1)
5449b8e80941Smrg#define   C_028810_DX_RASTERIZATION_KILL                              0xFFBFFFFF
5450b8e80941Smrg#define   S_028810_DX_LINEAR_ATTR_CLIP_ENA(x)                         (((unsigned)(x) & 0x1) << 24)
5451b8e80941Smrg#define   G_028810_DX_LINEAR_ATTR_CLIP_ENA(x)                         (((x) >> 24) & 0x1)
5452b8e80941Smrg#define   C_028810_DX_LINEAR_ATTR_CLIP_ENA                            0xFEFFFFFF
5453b8e80941Smrg#define   S_028810_VTE_VPORT_PROVOKE_DISABLE(x)                       (((unsigned)(x) & 0x1) << 25)
5454b8e80941Smrg#define   G_028810_VTE_VPORT_PROVOKE_DISABLE(x)                       (((x) >> 25) & 0x1)
5455b8e80941Smrg#define   C_028810_VTE_VPORT_PROVOKE_DISABLE                          0xFDFFFFFF
5456b8e80941Smrg#define   S_028810_ZCLIP_NEAR_DISABLE(x)                              (((unsigned)(x) & 0x1) << 26)
5457b8e80941Smrg#define   G_028810_ZCLIP_NEAR_DISABLE(x)                              (((x) >> 26) & 0x1)
5458b8e80941Smrg#define   C_028810_ZCLIP_NEAR_DISABLE                                 0xFBFFFFFF
5459b8e80941Smrg#define   S_028810_ZCLIP_FAR_DISABLE(x)                               (((unsigned)(x) & 0x1) << 27)
5460b8e80941Smrg#define   G_028810_ZCLIP_FAR_DISABLE(x)                               (((x) >> 27) & 0x1)
5461b8e80941Smrg#define   C_028810_ZCLIP_FAR_DISABLE                                  0xF7FFFFFF
5462b8e80941Smrg#define R_028814_PA_SU_SC_MODE_CNTL                                     0x028814
5463b8e80941Smrg#define   S_028814_CULL_FRONT(x)                                      (((unsigned)(x) & 0x1) << 0)
5464b8e80941Smrg#define   G_028814_CULL_FRONT(x)                                      (((x) >> 0) & 0x1)
5465b8e80941Smrg#define   C_028814_CULL_FRONT                                         0xFFFFFFFE
5466b8e80941Smrg#define   S_028814_CULL_BACK(x)                                       (((unsigned)(x) & 0x1) << 1)
5467b8e80941Smrg#define   G_028814_CULL_BACK(x)                                       (((x) >> 1) & 0x1)
5468b8e80941Smrg#define   C_028814_CULL_BACK                                          0xFFFFFFFD
5469b8e80941Smrg#define   S_028814_FACE(x)                                            (((unsigned)(x) & 0x1) << 2)
5470b8e80941Smrg#define   G_028814_FACE(x)                                            (((x) >> 2) & 0x1)
5471b8e80941Smrg#define   C_028814_FACE                                               0xFFFFFFFB
5472b8e80941Smrg#define   S_028814_POLY_MODE(x)                                       (((unsigned)(x) & 0x03) << 3)
5473b8e80941Smrg#define   G_028814_POLY_MODE(x)                                       (((x) >> 3) & 0x03)
5474b8e80941Smrg#define   C_028814_POLY_MODE                                          0xFFFFFFE7
5475b8e80941Smrg#define   S_028814_POLYMODE_FRONT_PTYPE(x)                            (((unsigned)(x) & 0x07) << 5)
5476b8e80941Smrg#define   G_028814_POLYMODE_FRONT_PTYPE(x)                            (((x) >> 5) & 0x07)
5477b8e80941Smrg#define   C_028814_POLYMODE_FRONT_PTYPE                               0xFFFFFF1F
5478b8e80941Smrg#define   S_028814_POLYMODE_BACK_PTYPE(x)                             (((unsigned)(x) & 0x07) << 8)
5479b8e80941Smrg#define   G_028814_POLYMODE_BACK_PTYPE(x)                             (((x) >> 8) & 0x07)
5480b8e80941Smrg#define   C_028814_POLYMODE_BACK_PTYPE                                0xFFFFF8FF
5481b8e80941Smrg#define   S_028814_POLY_OFFSET_FRONT_ENABLE(x)                        (((unsigned)(x) & 0x1) << 11)
5482b8e80941Smrg#define   G_028814_POLY_OFFSET_FRONT_ENABLE(x)                        (((x) >> 11) & 0x1)
5483b8e80941Smrg#define   C_028814_POLY_OFFSET_FRONT_ENABLE                           0xFFFFF7FF
5484b8e80941Smrg#define   S_028814_POLY_OFFSET_BACK_ENABLE(x)                         (((unsigned)(x) & 0x1) << 12)
5485b8e80941Smrg#define   G_028814_POLY_OFFSET_BACK_ENABLE(x)                         (((x) >> 12) & 0x1)
5486b8e80941Smrg#define   C_028814_POLY_OFFSET_BACK_ENABLE                            0xFFFFEFFF
5487b8e80941Smrg#define   S_028814_POLY_OFFSET_PARA_ENABLE(x)                         (((unsigned)(x) & 0x1) << 13)
5488b8e80941Smrg#define   G_028814_POLY_OFFSET_PARA_ENABLE(x)                         (((x) >> 13) & 0x1)
5489b8e80941Smrg#define   C_028814_POLY_OFFSET_PARA_ENABLE                            0xFFFFDFFF
5490b8e80941Smrg#define   S_028814_VTX_WINDOW_OFFSET_ENABLE(x)                        (((unsigned)(x) & 0x1) << 16)
5491b8e80941Smrg#define   G_028814_VTX_WINDOW_OFFSET_ENABLE(x)                        (((x) >> 16) & 0x1)
5492b8e80941Smrg#define   C_028814_VTX_WINDOW_OFFSET_ENABLE                           0xFFFEFFFF
5493b8e80941Smrg#define   S_028814_PROVOKING_VTX_LAST(x)                              (((unsigned)(x) & 0x1) << 19)
5494b8e80941Smrg#define   G_028814_PROVOKING_VTX_LAST(x)                              (((x) >> 19) & 0x1)
5495b8e80941Smrg#define   C_028814_PROVOKING_VTX_LAST                                 0xFFF7FFFF
5496b8e80941Smrg#define   S_028814_PERSP_CORR_DIS(x)                                  (((unsigned)(x) & 0x1) << 20)
5497b8e80941Smrg#define   G_028814_PERSP_CORR_DIS(x)                                  (((x) >> 20) & 0x1)
5498b8e80941Smrg#define   C_028814_PERSP_CORR_DIS                                     0xFFEFFFFF
5499b8e80941Smrg#define   S_028814_MULTI_PRIM_IB_ENA(x)                               (((unsigned)(x) & 0x1) << 21)
5500b8e80941Smrg#define   G_028814_MULTI_PRIM_IB_ENA(x)                               (((x) >> 21) & 0x1)
5501b8e80941Smrg#define   C_028814_MULTI_PRIM_IB_ENA                                  0xFFDFFFFF
5502b8e80941Smrg#define   S_028814_RIGHT_TRIANGLE_ALTERNATE_GRADIENT_REF(x)           (((unsigned)(x) & 0x1) << 22)
5503b8e80941Smrg#define   G_028814_RIGHT_TRIANGLE_ALTERNATE_GRADIENT_REF(x)           (((x) >> 22) & 0x1)
5504b8e80941Smrg#define   C_028814_RIGHT_TRIANGLE_ALTERNATE_GRADIENT_REF              0xFFBFFFFF
5505b8e80941Smrg#define   S_028814_NEW_QUAD_DECOMPOSITION(x)                          (((unsigned)(x) & 0x1) << 23)
5506b8e80941Smrg#define   G_028814_NEW_QUAD_DECOMPOSITION(x)                          (((x) >> 23) & 0x1)
5507b8e80941Smrg#define   C_028814_NEW_QUAD_DECOMPOSITION                             0xFF7FFFFF
5508b8e80941Smrg#define R_028818_PA_CL_VTE_CNTL                                         0x028818
5509b8e80941Smrg#define   S_028818_VPORT_X_SCALE_ENA(x)                               (((unsigned)(x) & 0x1) << 0)
5510b8e80941Smrg#define   G_028818_VPORT_X_SCALE_ENA(x)                               (((x) >> 0) & 0x1)
5511b8e80941Smrg#define   C_028818_VPORT_X_SCALE_ENA                                  0xFFFFFFFE
5512b8e80941Smrg#define   S_028818_VPORT_X_OFFSET_ENA(x)                              (((unsigned)(x) & 0x1) << 1)
5513b8e80941Smrg#define   G_028818_VPORT_X_OFFSET_ENA(x)                              (((x) >> 1) & 0x1)
5514b8e80941Smrg#define   C_028818_VPORT_X_OFFSET_ENA                                 0xFFFFFFFD
5515b8e80941Smrg#define   S_028818_VPORT_Y_SCALE_ENA(x)                               (((unsigned)(x) & 0x1) << 2)
5516b8e80941Smrg#define   G_028818_VPORT_Y_SCALE_ENA(x)                               (((x) >> 2) & 0x1)
5517b8e80941Smrg#define   C_028818_VPORT_Y_SCALE_ENA                                  0xFFFFFFFB
5518b8e80941Smrg#define   S_028818_VPORT_Y_OFFSET_ENA(x)                              (((unsigned)(x) & 0x1) << 3)
5519b8e80941Smrg#define   G_028818_VPORT_Y_OFFSET_ENA(x)                              (((x) >> 3) & 0x1)
5520b8e80941Smrg#define   C_028818_VPORT_Y_OFFSET_ENA                                 0xFFFFFFF7
5521b8e80941Smrg#define   S_028818_VPORT_Z_SCALE_ENA(x)                               (((unsigned)(x) & 0x1) << 4)
5522b8e80941Smrg#define   G_028818_VPORT_Z_SCALE_ENA(x)                               (((x) >> 4) & 0x1)
5523b8e80941Smrg#define   C_028818_VPORT_Z_SCALE_ENA                                  0xFFFFFFEF
5524b8e80941Smrg#define   S_028818_VPORT_Z_OFFSET_ENA(x)                              (((unsigned)(x) & 0x1) << 5)
5525b8e80941Smrg#define   G_028818_VPORT_Z_OFFSET_ENA(x)                              (((x) >> 5) & 0x1)
5526b8e80941Smrg#define   C_028818_VPORT_Z_OFFSET_ENA                                 0xFFFFFFDF
5527b8e80941Smrg#define   S_028818_VTX_XY_FMT(x)                                      (((unsigned)(x) & 0x1) << 8)
5528b8e80941Smrg#define   G_028818_VTX_XY_FMT(x)                                      (((x) >> 8) & 0x1)
5529b8e80941Smrg#define   C_028818_VTX_XY_FMT                                         0xFFFFFEFF
5530b8e80941Smrg#define   S_028818_VTX_Z_FMT(x)                                       (((unsigned)(x) & 0x1) << 9)
5531b8e80941Smrg#define   G_028818_VTX_Z_FMT(x)                                       (((x) >> 9) & 0x1)
5532b8e80941Smrg#define   C_028818_VTX_Z_FMT                                          0xFFFFFDFF
5533b8e80941Smrg#define   S_028818_VTX_W0_FMT(x)                                      (((unsigned)(x) & 0x1) << 10)
5534b8e80941Smrg#define   G_028818_VTX_W0_FMT(x)                                      (((x) >> 10) & 0x1)
5535b8e80941Smrg#define   C_028818_VTX_W0_FMT                                         0xFFFFFBFF
5536b8e80941Smrg#define   S_028818_PERFCOUNTER_REF(x)                                 (((unsigned)(x) & 0x1) << 11)
5537b8e80941Smrg#define   G_028818_PERFCOUNTER_REF(x)                                 (((x) >> 11) & 0x1)
5538b8e80941Smrg#define   C_028818_PERFCOUNTER_REF                                    0xFFFFF7FF
5539b8e80941Smrg#define R_02881C_PA_CL_VS_OUT_CNTL                                      0x02881C
5540b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_0(x)                                 (((unsigned)(x) & 0x1) << 0)
5541b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_0(x)                                 (((x) >> 0) & 0x1)
5542b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_0                                    0xFFFFFFFE
5543b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_1(x)                                 (((unsigned)(x) & 0x1) << 1)
5544b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_1(x)                                 (((x) >> 1) & 0x1)
5545b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_1                                    0xFFFFFFFD
5546b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_2(x)                                 (((unsigned)(x) & 0x1) << 2)
5547b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_2(x)                                 (((x) >> 2) & 0x1)
5548b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_2                                    0xFFFFFFFB
5549b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_3(x)                                 (((unsigned)(x) & 0x1) << 3)
5550b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_3(x)                                 (((x) >> 3) & 0x1)
5551b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_3                                    0xFFFFFFF7
5552b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_4(x)                                 (((unsigned)(x) & 0x1) << 4)
5553b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_4(x)                                 (((x) >> 4) & 0x1)
5554b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_4                                    0xFFFFFFEF
5555b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_5(x)                                 (((unsigned)(x) & 0x1) << 5)
5556b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_5(x)                                 (((x) >> 5) & 0x1)
5557b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_5                                    0xFFFFFFDF
5558b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_6(x)                                 (((unsigned)(x) & 0x1) << 6)
5559b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_6(x)                                 (((x) >> 6) & 0x1)
5560b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_6                                    0xFFFFFFBF
5561b8e80941Smrg#define   S_02881C_CLIP_DIST_ENA_7(x)                                 (((unsigned)(x) & 0x1) << 7)
5562b8e80941Smrg#define   G_02881C_CLIP_DIST_ENA_7(x)                                 (((x) >> 7) & 0x1)
5563b8e80941Smrg#define   C_02881C_CLIP_DIST_ENA_7                                    0xFFFFFF7F
5564b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_0(x)                                 (((unsigned)(x) & 0x1) << 8)
5565b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_0(x)                                 (((x) >> 8) & 0x1)
5566b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_0                                    0xFFFFFEFF
5567b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_1(x)                                 (((unsigned)(x) & 0x1) << 9)
5568b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_1(x)                                 (((x) >> 9) & 0x1)
5569b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_1                                    0xFFFFFDFF
5570b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_2(x)                                 (((unsigned)(x) & 0x1) << 10)
5571b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_2(x)                                 (((x) >> 10) & 0x1)
5572b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_2                                    0xFFFFFBFF
5573b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_3(x)                                 (((unsigned)(x) & 0x1) << 11)
5574b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_3(x)                                 (((x) >> 11) & 0x1)
5575b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_3                                    0xFFFFF7FF
5576b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_4(x)                                 (((unsigned)(x) & 0x1) << 12)
5577b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_4(x)                                 (((x) >> 12) & 0x1)
5578b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_4                                    0xFFFFEFFF
5579b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_5(x)                                 (((unsigned)(x) & 0x1) << 13)
5580b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_5(x)                                 (((x) >> 13) & 0x1)
5581b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_5                                    0xFFFFDFFF
5582b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_6(x)                                 (((unsigned)(x) & 0x1) << 14)
5583b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_6(x)                                 (((x) >> 14) & 0x1)
5584b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_6                                    0xFFFFBFFF
5585b8e80941Smrg#define   S_02881C_CULL_DIST_ENA_7(x)                                 (((unsigned)(x) & 0x1) << 15)
5586b8e80941Smrg#define   G_02881C_CULL_DIST_ENA_7(x)                                 (((x) >> 15) & 0x1)
5587b8e80941Smrg#define   C_02881C_CULL_DIST_ENA_7                                    0xFFFF7FFF
5588b8e80941Smrg#define   S_02881C_USE_VTX_POINT_SIZE(x)                              (((unsigned)(x) & 0x1) << 16)
5589b8e80941Smrg#define   G_02881C_USE_VTX_POINT_SIZE(x)                              (((x) >> 16) & 0x1)
5590b8e80941Smrg#define   C_02881C_USE_VTX_POINT_SIZE                                 0xFFFEFFFF
5591b8e80941Smrg#define   S_02881C_USE_VTX_EDGE_FLAG(x)                               (((unsigned)(x) & 0x1) << 17)
5592b8e80941Smrg#define   G_02881C_USE_VTX_EDGE_FLAG(x)                               (((x) >> 17) & 0x1)
5593b8e80941Smrg#define   C_02881C_USE_VTX_EDGE_FLAG                                  0xFFFDFFFF
5594b8e80941Smrg#define   S_02881C_USE_VTX_RENDER_TARGET_INDX(x)                      (((unsigned)(x) & 0x1) << 18)
5595b8e80941Smrg#define   G_02881C_USE_VTX_RENDER_TARGET_INDX(x)                      (((x) >> 18) & 0x1)
5596b8e80941Smrg#define   C_02881C_USE_VTX_RENDER_TARGET_INDX                         0xFFFBFFFF
5597b8e80941Smrg#define   S_02881C_USE_VTX_VIEWPORT_INDX(x)                           (((unsigned)(x) & 0x1) << 19)
5598b8e80941Smrg#define   G_02881C_USE_VTX_VIEWPORT_INDX(x)                           (((x) >> 19) & 0x1)
5599b8e80941Smrg#define   C_02881C_USE_VTX_VIEWPORT_INDX                              0xFFF7FFFF
5600b8e80941Smrg#define   S_02881C_USE_VTX_KILL_FLAG(x)                               (((unsigned)(x) & 0x1) << 20)
5601b8e80941Smrg#define   G_02881C_USE_VTX_KILL_FLAG(x)                               (((x) >> 20) & 0x1)
5602b8e80941Smrg#define   C_02881C_USE_VTX_KILL_FLAG                                  0xFFEFFFFF
5603b8e80941Smrg#define   S_02881C_VS_OUT_MISC_VEC_ENA(x)                             (((unsigned)(x) & 0x1) << 21)
5604b8e80941Smrg#define   G_02881C_VS_OUT_MISC_VEC_ENA(x)                             (((x) >> 21) & 0x1)
5605b8e80941Smrg#define   C_02881C_VS_OUT_MISC_VEC_ENA                                0xFFDFFFFF
5606b8e80941Smrg#define   S_02881C_VS_OUT_CCDIST0_VEC_ENA(x)                          (((unsigned)(x) & 0x1) << 22)
5607b8e80941Smrg#define   G_02881C_VS_OUT_CCDIST0_VEC_ENA(x)                          (((x) >> 22) & 0x1)
5608b8e80941Smrg#define   C_02881C_VS_OUT_CCDIST0_VEC_ENA                             0xFFBFFFFF
5609b8e80941Smrg#define   S_02881C_VS_OUT_CCDIST1_VEC_ENA(x)                          (((unsigned)(x) & 0x1) << 23)
5610b8e80941Smrg#define   G_02881C_VS_OUT_CCDIST1_VEC_ENA(x)                          (((x) >> 23) & 0x1)
5611b8e80941Smrg#define   C_02881C_VS_OUT_CCDIST1_VEC_ENA                             0xFF7FFFFF
5612b8e80941Smrg#define   S_02881C_VS_OUT_MISC_SIDE_BUS_ENA(x)                        (((unsigned)(x) & 0x1) << 24)
5613b8e80941Smrg#define   G_02881C_VS_OUT_MISC_SIDE_BUS_ENA(x)                        (((x) >> 24) & 0x1)
5614b8e80941Smrg#define   C_02881C_VS_OUT_MISC_SIDE_BUS_ENA                           0xFEFFFFFF
5615b8e80941Smrg#define   S_02881C_USE_VTX_GS_CUT_FLAG(x)                             (((unsigned)(x) & 0x1) << 25)
5616b8e80941Smrg#define   G_02881C_USE_VTX_GS_CUT_FLAG(x)                             (((x) >> 25) & 0x1)
5617b8e80941Smrg#define   C_02881C_USE_VTX_GS_CUT_FLAG                                0xFDFFFFFF
5618b8e80941Smrg#define   S_02881C_USE_VTX_LINE_WIDTH(x)                              (((unsigned)(x) & 0x1) << 26)
5619b8e80941Smrg#define   G_02881C_USE_VTX_LINE_WIDTH(x)                              (((x) >> 26) & 0x1)
5620b8e80941Smrg#define   C_02881C_USE_VTX_LINE_WIDTH                                 0xFBFFFFFF
5621b8e80941Smrg#define   S_02881C_USE_VTX_SHD_OBJPRIM_ID(x)                          (((unsigned)(x) & 0x1) << 27)
5622b8e80941Smrg#define   G_02881C_USE_VTX_SHD_OBJPRIM_ID(x)                          (((x) >> 27) & 0x1)
5623b8e80941Smrg#define   C_02881C_USE_VTX_SHD_OBJPRIM_ID                             0xF7FFFFFF
5624b8e80941Smrg#define R_028820_PA_CL_NANINF_CNTL                                      0x028820
5625b8e80941Smrg#define   S_028820_VTE_XY_INF_DISCARD(x)                              (((unsigned)(x) & 0x1) << 0)
5626b8e80941Smrg#define   G_028820_VTE_XY_INF_DISCARD(x)                              (((x) >> 0) & 0x1)
5627b8e80941Smrg#define   C_028820_VTE_XY_INF_DISCARD                                 0xFFFFFFFE
5628b8e80941Smrg#define   S_028820_VTE_Z_INF_DISCARD(x)                               (((unsigned)(x) & 0x1) << 1)
5629b8e80941Smrg#define   G_028820_VTE_Z_INF_DISCARD(x)                               (((x) >> 1) & 0x1)
5630b8e80941Smrg#define   C_028820_VTE_Z_INF_DISCARD                                  0xFFFFFFFD
5631b8e80941Smrg#define   S_028820_VTE_W_INF_DISCARD(x)                               (((unsigned)(x) & 0x1) << 2)
5632b8e80941Smrg#define   G_028820_VTE_W_INF_DISCARD(x)                               (((x) >> 2) & 0x1)
5633b8e80941Smrg#define   C_028820_VTE_W_INF_DISCARD                                  0xFFFFFFFB
5634b8e80941Smrg#define   S_028820_VTE_0XNANINF_IS_0(x)                               (((unsigned)(x) & 0x1) << 3)
5635b8e80941Smrg#define   G_028820_VTE_0XNANINF_IS_0(x)                               (((x) >> 3) & 0x1)
5636b8e80941Smrg#define   C_028820_VTE_0XNANINF_IS_0                                  0xFFFFFFF7
5637b8e80941Smrg#define   S_028820_VTE_XY_NAN_RETAIN(x)                               (((unsigned)(x) & 0x1) << 4)
5638b8e80941Smrg#define   G_028820_VTE_XY_NAN_RETAIN(x)                               (((x) >> 4) & 0x1)
5639b8e80941Smrg#define   C_028820_VTE_XY_NAN_RETAIN                                  0xFFFFFFEF
5640b8e80941Smrg#define   S_028820_VTE_Z_NAN_RETAIN(x)                                (((unsigned)(x) & 0x1) << 5)
5641b8e80941Smrg#define   G_028820_VTE_Z_NAN_RETAIN(x)                                (((x) >> 5) & 0x1)
5642b8e80941Smrg#define   C_028820_VTE_Z_NAN_RETAIN                                   0xFFFFFFDF
5643b8e80941Smrg#define   S_028820_VTE_W_NAN_RETAIN(x)                                (((unsigned)(x) & 0x1) << 6)
5644b8e80941Smrg#define   G_028820_VTE_W_NAN_RETAIN(x)                                (((x) >> 6) & 0x1)
5645b8e80941Smrg#define   C_028820_VTE_W_NAN_RETAIN                                   0xFFFFFFBF
5646b8e80941Smrg#define   S_028820_VTE_W_RECIP_NAN_IS_0(x)                            (((unsigned)(x) & 0x1) << 7)
5647b8e80941Smrg#define   G_028820_VTE_W_RECIP_NAN_IS_0(x)                            (((x) >> 7) & 0x1)
5648b8e80941Smrg#define   C_028820_VTE_W_RECIP_NAN_IS_0                               0xFFFFFF7F
5649b8e80941Smrg#define   S_028820_VS_XY_NAN_TO_INF(x)                                (((unsigned)(x) & 0x1) << 8)
5650b8e80941Smrg#define   G_028820_VS_XY_NAN_TO_INF(x)                                (((x) >> 8) & 0x1)
5651b8e80941Smrg#define   C_028820_VS_XY_NAN_TO_INF                                   0xFFFFFEFF
5652b8e80941Smrg#define   S_028820_VS_XY_INF_RETAIN(x)                                (((unsigned)(x) & 0x1) << 9)
5653b8e80941Smrg#define   G_028820_VS_XY_INF_RETAIN(x)                                (((x) >> 9) & 0x1)
5654b8e80941Smrg#define   C_028820_VS_XY_INF_RETAIN                                   0xFFFFFDFF
5655b8e80941Smrg#define   S_028820_VS_Z_NAN_TO_INF(x)                                 (((unsigned)(x) & 0x1) << 10)
5656b8e80941Smrg#define   G_028820_VS_Z_NAN_TO_INF(x)                                 (((x) >> 10) & 0x1)
5657b8e80941Smrg#define   C_028820_VS_Z_NAN_TO_INF                                    0xFFFFFBFF
5658b8e80941Smrg#define   S_028820_VS_Z_INF_RETAIN(x)                                 (((unsigned)(x) & 0x1) << 11)
5659b8e80941Smrg#define   G_028820_VS_Z_INF_RETAIN(x)                                 (((x) >> 11) & 0x1)
5660b8e80941Smrg#define   C_028820_VS_Z_INF_RETAIN                                    0xFFFFF7FF
5661b8e80941Smrg#define   S_028820_VS_W_NAN_TO_INF(x)                                 (((unsigned)(x) & 0x1) << 12)
5662b8e80941Smrg#define   G_028820_VS_W_NAN_TO_INF(x)                                 (((x) >> 12) & 0x1)
5663b8e80941Smrg#define   C_028820_VS_W_NAN_TO_INF                                    0xFFFFEFFF
5664b8e80941Smrg#define   S_028820_VS_W_INF_RETAIN(x)                                 (((unsigned)(x) & 0x1) << 13)
5665b8e80941Smrg#define   G_028820_VS_W_INF_RETAIN(x)                                 (((x) >> 13) & 0x1)
5666b8e80941Smrg#define   C_028820_VS_W_INF_RETAIN                                    0xFFFFDFFF
5667b8e80941Smrg#define   S_028820_VS_CLIP_DIST_INF_DISCARD(x)                        (((unsigned)(x) & 0x1) << 14)
5668b8e80941Smrg#define   G_028820_VS_CLIP_DIST_INF_DISCARD(x)                        (((x) >> 14) & 0x1)
5669b8e80941Smrg#define   C_028820_VS_CLIP_DIST_INF_DISCARD                           0xFFFFBFFF
5670b8e80941Smrg#define   S_028820_VTE_NO_OUTPUT_NEG_0(x)                             (((unsigned)(x) & 0x1) << 20)
5671b8e80941Smrg#define   G_028820_VTE_NO_OUTPUT_NEG_0(x)                             (((x) >> 20) & 0x1)
5672b8e80941Smrg#define   C_028820_VTE_NO_OUTPUT_NEG_0                                0xFFEFFFFF
5673b8e80941Smrg#define R_028824_PA_SU_LINE_STIPPLE_CNTL                                0x028824
5674b8e80941Smrg#define   S_028824_LINE_STIPPLE_RESET(x)                              (((unsigned)(x) & 0x03) << 0)
5675b8e80941Smrg#define   G_028824_LINE_STIPPLE_RESET(x)                              (((x) >> 0) & 0x03)
5676b8e80941Smrg#define   C_028824_LINE_STIPPLE_RESET                                 0xFFFFFFFC
5677b8e80941Smrg#define   S_028824_EXPAND_FULL_LENGTH(x)                              (((unsigned)(x) & 0x1) << 2)
5678b8e80941Smrg#define   G_028824_EXPAND_FULL_LENGTH(x)                              (((x) >> 2) & 0x1)
5679b8e80941Smrg#define   C_028824_EXPAND_FULL_LENGTH                                 0xFFFFFFFB
5680b8e80941Smrg#define   S_028824_FRACTIONAL_ACCUM(x)                                (((unsigned)(x) & 0x1) << 3)
5681b8e80941Smrg#define   G_028824_FRACTIONAL_ACCUM(x)                                (((x) >> 3) & 0x1)
5682b8e80941Smrg#define   C_028824_FRACTIONAL_ACCUM                                   0xFFFFFFF7
5683b8e80941Smrg#define   S_028824_DIAMOND_ADJUST(x)                                  (((unsigned)(x) & 0x1) << 4)
5684b8e80941Smrg#define   G_028824_DIAMOND_ADJUST(x)                                  (((x) >> 4) & 0x1)
5685b8e80941Smrg#define   C_028824_DIAMOND_ADJUST                                     0xFFFFFFEF
5686b8e80941Smrg#define R_028828_PA_SU_LINE_STIPPLE_SCALE                               0x028828
5687b8e80941Smrg#define R_02882C_PA_SU_PRIM_FILTER_CNTL                                 0x02882C
5688b8e80941Smrg#define   S_02882C_TRIANGLE_FILTER_DISABLE(x)                         (((unsigned)(x) & 0x1) << 0)
5689b8e80941Smrg#define   G_02882C_TRIANGLE_FILTER_DISABLE(x)                         (((x) >> 0) & 0x1)
5690b8e80941Smrg#define   C_02882C_TRIANGLE_FILTER_DISABLE                            0xFFFFFFFE
5691b8e80941Smrg#define   S_02882C_LINE_FILTER_DISABLE(x)                             (((unsigned)(x) & 0x1) << 1)
5692b8e80941Smrg#define   G_02882C_LINE_FILTER_DISABLE(x)                             (((x) >> 1) & 0x1)
5693b8e80941Smrg#define   C_02882C_LINE_FILTER_DISABLE                                0xFFFFFFFD
5694b8e80941Smrg#define   S_02882C_POINT_FILTER_DISABLE(x)                            (((unsigned)(x) & 0x1) << 2)
5695b8e80941Smrg#define   G_02882C_POINT_FILTER_DISABLE(x)                            (((x) >> 2) & 0x1)
5696b8e80941Smrg#define   C_02882C_POINT_FILTER_DISABLE                               0xFFFFFFFB
5697b8e80941Smrg#define   S_02882C_RECTANGLE_FILTER_DISABLE(x)                        (((unsigned)(x) & 0x1) << 3)
5698b8e80941Smrg#define   G_02882C_RECTANGLE_FILTER_DISABLE(x)                        (((x) >> 3) & 0x1)
5699b8e80941Smrg#define   C_02882C_RECTANGLE_FILTER_DISABLE                           0xFFFFFFF7
5700b8e80941Smrg#define   S_02882C_TRIANGLE_EXPAND_ENA(x)                             (((unsigned)(x) & 0x1) << 4)
5701b8e80941Smrg#define   G_02882C_TRIANGLE_EXPAND_ENA(x)                             (((x) >> 4) & 0x1)
5702b8e80941Smrg#define   C_02882C_TRIANGLE_EXPAND_ENA                                0xFFFFFFEF
5703b8e80941Smrg#define   S_02882C_LINE_EXPAND_ENA(x)                                 (((unsigned)(x) & 0x1) << 5)
5704b8e80941Smrg#define   G_02882C_LINE_EXPAND_ENA(x)                                 (((x) >> 5) & 0x1)
5705b8e80941Smrg#define   C_02882C_LINE_EXPAND_ENA                                    0xFFFFFFDF
5706b8e80941Smrg#define   S_02882C_POINT_EXPAND_ENA(x)                                (((unsigned)(x) & 0x1) << 6)
5707b8e80941Smrg#define   G_02882C_POINT_EXPAND_ENA(x)                                (((x) >> 6) & 0x1)
5708b8e80941Smrg#define   C_02882C_POINT_EXPAND_ENA                                   0xFFFFFFBF
5709b8e80941Smrg#define   S_02882C_RECTANGLE_EXPAND_ENA(x)                            (((unsigned)(x) & 0x1) << 7)
5710b8e80941Smrg#define   G_02882C_RECTANGLE_EXPAND_ENA(x)                            (((x) >> 7) & 0x1)
5711b8e80941Smrg#define   C_02882C_RECTANGLE_EXPAND_ENA                               0xFFFFFF7F
5712b8e80941Smrg#define   S_02882C_PRIM_EXPAND_CONSTANT(x)                            (((unsigned)(x) & 0xFF) << 8)
5713b8e80941Smrg#define   G_02882C_PRIM_EXPAND_CONSTANT(x)                            (((x) >> 8) & 0xFF)
5714b8e80941Smrg#define   C_02882C_PRIM_EXPAND_CONSTANT                               0xFFFF00FF
5715b8e80941Smrg#define   S_02882C_XMAX_RIGHT_EXCLUSION(x)                            (((unsigned)(x) & 0x1) << 30)
5716b8e80941Smrg#define   G_02882C_XMAX_RIGHT_EXCLUSION(x)                            (((x) >> 30) & 0x1)
5717b8e80941Smrg#define   C_02882C_XMAX_RIGHT_EXCLUSION                               0xBFFFFFFF
5718b8e80941Smrg#define   S_02882C_YMAX_BOTTOM_EXCLUSION(x)                           (((unsigned)(x) & 0x1) << 31)
5719b8e80941Smrg#define   G_02882C_YMAX_BOTTOM_EXCLUSION(x)                           (((x) >> 31) & 0x1)
5720b8e80941Smrg#define   C_02882C_YMAX_BOTTOM_EXCLUSION                              0x7FFFFFFF
5721b8e80941Smrg#define R_028830_PA_SU_SMALL_PRIM_FILTER_CNTL                           0x028830
5722b8e80941Smrg#define   S_028830_SMALL_PRIM_FILTER_ENABLE(x)                        (((unsigned)(x) & 0x1) << 0)
5723b8e80941Smrg#define   G_028830_SMALL_PRIM_FILTER_ENABLE(x)                        (((x) >> 0) & 0x1)
5724b8e80941Smrg#define   C_028830_SMALL_PRIM_FILTER_ENABLE                           0xFFFFFFFE
5725b8e80941Smrg#define   S_028830_TRIANGLE_FILTER_DISABLE(x)                         (((unsigned)(x) & 0x1) << 1)
5726b8e80941Smrg#define   G_028830_TRIANGLE_FILTER_DISABLE(x)                         (((x) >> 1) & 0x1)
5727b8e80941Smrg#define   C_028830_TRIANGLE_FILTER_DISABLE                            0xFFFFFFFD
5728b8e80941Smrg#define   S_028830_LINE_FILTER_DISABLE(x)                             (((unsigned)(x) & 0x1) << 2)
5729b8e80941Smrg#define   G_028830_LINE_FILTER_DISABLE(x)                             (((x) >> 2) & 0x1)
5730b8e80941Smrg#define   C_028830_LINE_FILTER_DISABLE                                0xFFFFFFFB
5731b8e80941Smrg#define   S_028830_POINT_FILTER_DISABLE(x)                            (((unsigned)(x) & 0x1) << 3)
5732b8e80941Smrg#define   G_028830_POINT_FILTER_DISABLE(x)                            (((x) >> 3) & 0x1)
5733b8e80941Smrg#define   C_028830_POINT_FILTER_DISABLE                               0xFFFFFFF7
5734b8e80941Smrg#define   S_028830_RECTANGLE_FILTER_DISABLE(x)                        (((unsigned)(x) & 0x1) << 4)
5735b8e80941Smrg#define   G_028830_RECTANGLE_FILTER_DISABLE(x)                        (((x) >> 4) & 0x1)
5736b8e80941Smrg#define   C_028830_RECTANGLE_FILTER_DISABLE                           0xFFFFFFEF
5737b8e80941Smrg#define R_028834_PA_CL_OBJPRIM_ID_CNTL                                  0x028834
5738b8e80941Smrg#define   S_028834_OBJ_ID_SEL(x)                                      (((unsigned)(x) & 0x1) << 0)
5739b8e80941Smrg#define   G_028834_OBJ_ID_SEL(x)                                      (((x) >> 0) & 0x1)
5740b8e80941Smrg#define   C_028834_OBJ_ID_SEL                                         0xFFFFFFFE
5741b8e80941Smrg#define   S_028834_ADD_PIPED_PRIM_ID(x)                               (((unsigned)(x) & 0x1) << 1)
5742b8e80941Smrg#define   G_028834_ADD_PIPED_PRIM_ID(x)                               (((x) >> 1) & 0x1)
5743b8e80941Smrg#define   C_028834_ADD_PIPED_PRIM_ID                                  0xFFFFFFFD
5744b8e80941Smrg#define   S_028834_EN_32BIT_OBJPRIMID(x)                              (((unsigned)(x) & 0x1) << 2)
5745b8e80941Smrg#define   G_028834_EN_32BIT_OBJPRIMID(x)                              (((x) >> 2) & 0x1)
5746b8e80941Smrg#define   C_028834_EN_32BIT_OBJPRIMID                                 0xFFFFFFFB
5747b8e80941Smrg#define R_028838_PA_CL_NGG_CNTL                                         0x028838
5748b8e80941Smrg#define   S_028838_VERTEX_REUSE_OFF(x)                                (((unsigned)(x) & 0x1) << 0)
5749b8e80941Smrg#define   G_028838_VERTEX_REUSE_OFF(x)                                (((x) >> 0) & 0x1)
5750b8e80941Smrg#define   C_028838_VERTEX_REUSE_OFF                                   0xFFFFFFFE
5751b8e80941Smrg#define   S_028838_INDEX_BUF_EDGE_FLAG_ENA(x)                         (((unsigned)(x) & 0x1) << 1)
5752b8e80941Smrg#define   G_028838_INDEX_BUF_EDGE_FLAG_ENA(x)                         (((x) >> 1) & 0x1)
5753b8e80941Smrg#define   C_028838_INDEX_BUF_EDGE_FLAG_ENA                            0xFFFFFFFD
5754b8e80941Smrg#define R_02883C_PA_SU_OVER_RASTERIZATION_CNTL                          0x02883C
5755b8e80941Smrg#define   S_02883C_DISCARD_0_AREA_TRIANGLES(x)                        (((unsigned)(x) & 0x1) << 0)
5756b8e80941Smrg#define   G_02883C_DISCARD_0_AREA_TRIANGLES(x)                        (((x) >> 0) & 0x1)
5757b8e80941Smrg#define   C_02883C_DISCARD_0_AREA_TRIANGLES                           0xFFFFFFFE
5758b8e80941Smrg#define   S_02883C_DISCARD_0_AREA_LINES(x)                            (((unsigned)(x) & 0x1) << 1)
5759b8e80941Smrg#define   G_02883C_DISCARD_0_AREA_LINES(x)                            (((x) >> 1) & 0x1)
5760b8e80941Smrg#define   C_02883C_DISCARD_0_AREA_LINES                               0xFFFFFFFD
5761b8e80941Smrg#define   S_02883C_DISCARD_0_AREA_POINTS(x)                           (((unsigned)(x) & 0x1) << 2)
5762b8e80941Smrg#define   G_02883C_DISCARD_0_AREA_POINTS(x)                           (((x) >> 2) & 0x1)
5763b8e80941Smrg#define   C_02883C_DISCARD_0_AREA_POINTS                              0xFFFFFFFB
5764b8e80941Smrg#define   S_02883C_DISCARD_0_AREA_RECTANGLES(x)                       (((unsigned)(x) & 0x1) << 3)
5765b8e80941Smrg#define   G_02883C_DISCARD_0_AREA_RECTANGLES(x)                       (((x) >> 3) & 0x1)
5766b8e80941Smrg#define   C_02883C_DISCARD_0_AREA_RECTANGLES                          0xFFFFFFF7
5767b8e80941Smrg#define   S_02883C_USE_PROVOKING_ZW(x)                                (((unsigned)(x) & 0x1) << 4)
5768b8e80941Smrg#define   G_02883C_USE_PROVOKING_ZW(x)                                (((x) >> 4) & 0x1)
5769b8e80941Smrg#define   C_02883C_USE_PROVOKING_ZW                                   0xFFFFFFEF
5770b8e80941Smrg#define R_028840_PA_STEREO_CNTL                                         0x028840
5771b8e80941Smrg#define R_028A00_PA_SU_POINT_SIZE                                       0x028A00
5772b8e80941Smrg#define   S_028A00_HEIGHT(x)                                          (((unsigned)(x) & 0xFFFF) << 0)
5773b8e80941Smrg#define   G_028A00_HEIGHT(x)                                          (((x) >> 0) & 0xFFFF)
5774b8e80941Smrg#define   C_028A00_HEIGHT                                             0xFFFF0000
5775b8e80941Smrg#define   S_028A00_WIDTH(x)                                           (((unsigned)(x) & 0xFFFF) << 16)
5776b8e80941Smrg#define   G_028A00_WIDTH(x)                                           (((x) >> 16) & 0xFFFF)
5777b8e80941Smrg#define   C_028A00_WIDTH                                              0x0000FFFF
5778b8e80941Smrg#define R_028A04_PA_SU_POINT_MINMAX                                     0x028A04
5779b8e80941Smrg#define   S_028A04_MIN_SIZE(x)                                        (((unsigned)(x) & 0xFFFF) << 0)
5780b8e80941Smrg#define   G_028A04_MIN_SIZE(x)                                        (((x) >> 0) & 0xFFFF)
5781b8e80941Smrg#define   C_028A04_MIN_SIZE                                           0xFFFF0000
5782b8e80941Smrg#define   S_028A04_MAX_SIZE(x)                                        (((unsigned)(x) & 0xFFFF) << 16)
5783b8e80941Smrg#define   G_028A04_MAX_SIZE(x)                                        (((x) >> 16) & 0xFFFF)
5784b8e80941Smrg#define   C_028A04_MAX_SIZE                                           0x0000FFFF
5785b8e80941Smrg#define R_028A08_PA_SU_LINE_CNTL                                        0x028A08
5786b8e80941Smrg#define   S_028A08_WIDTH(x)                                           (((unsigned)(x) & 0xFFFF) << 0)
5787b8e80941Smrg#define   G_028A08_WIDTH(x)                                           (((x) >> 0) & 0xFFFF)
5788b8e80941Smrg#define   C_028A08_WIDTH                                              0xFFFF0000
5789b8e80941Smrg#define R_028A0C_PA_SC_LINE_STIPPLE                                     0x028A0C
5790b8e80941Smrg#define   S_028A0C_LINE_PATTERN(x)                                    (((unsigned)(x) & 0xFFFF) << 0)
5791b8e80941Smrg#define   G_028A0C_LINE_PATTERN(x)                                    (((x) >> 0) & 0xFFFF)
5792b8e80941Smrg#define   C_028A0C_LINE_PATTERN                                       0xFFFF0000
5793b8e80941Smrg#define   S_028A0C_REPEAT_COUNT(x)                                    (((unsigned)(x) & 0xFF) << 16)
5794b8e80941Smrg#define   G_028A0C_REPEAT_COUNT(x)                                    (((x) >> 16) & 0xFF)
5795b8e80941Smrg#define   C_028A0C_REPEAT_COUNT                                       0xFF00FFFF
5796b8e80941Smrg#define   S_028A0C_PATTERN_BIT_ORDER(x)                               (((unsigned)(x) & 0x1) << 28)
5797b8e80941Smrg#define   G_028A0C_PATTERN_BIT_ORDER(x)                               (((x) >> 28) & 0x1)
5798b8e80941Smrg#define   C_028A0C_PATTERN_BIT_ORDER                                  0xEFFFFFFF
5799b8e80941Smrg#define   S_028A0C_AUTO_RESET_CNTL(x)                                 (((unsigned)(x) & 0x03) << 29)
5800b8e80941Smrg#define   G_028A0C_AUTO_RESET_CNTL(x)                                 (((x) >> 29) & 0x03)
5801b8e80941Smrg#define   C_028A0C_AUTO_RESET_CNTL                                    0x9FFFFFFF
5802b8e80941Smrg#define R_028A10_VGT_OUTPUT_PATH_CNTL                                   0x028A10
5803b8e80941Smrg#define   S_028A10_PATH_SELECT(x)                                     (((unsigned)(x) & 0x07) << 0)
5804b8e80941Smrg#define   G_028A10_PATH_SELECT(x)                                     (((x) >> 0) & 0x07)
5805b8e80941Smrg#define   C_028A10_PATH_SELECT                                        0xFFFFFFF8
5806b8e80941Smrg#define R_028A14_VGT_HOS_CNTL                                           0x028A14
5807b8e80941Smrg#define   S_028A14_TESS_MODE(x)                                       (((unsigned)(x) & 0x03) << 0)
5808b8e80941Smrg#define   G_028A14_TESS_MODE(x)                                       (((x) >> 0) & 0x03)
5809b8e80941Smrg#define   C_028A14_TESS_MODE                                          0xFFFFFFFC
5810b8e80941Smrg#define R_028A18_VGT_HOS_MAX_TESS_LEVEL                                 0x028A18
5811b8e80941Smrg#define R_028A1C_VGT_HOS_MIN_TESS_LEVEL                                 0x028A1C
5812b8e80941Smrg#define R_028A20_VGT_HOS_REUSE_DEPTH                                    0x028A20
5813b8e80941Smrg#define   S_028A20_REUSE_DEPTH(x)                                     (((unsigned)(x) & 0xFF) << 0)
5814b8e80941Smrg#define   G_028A20_REUSE_DEPTH(x)                                     (((x) >> 0) & 0xFF)
5815b8e80941Smrg#define   C_028A20_REUSE_DEPTH                                        0xFFFFFF00
5816b8e80941Smrg#define R_028A24_VGT_GROUP_PRIM_TYPE                                    0x028A24
5817b8e80941Smrg#define   S_028A24_PRIM_TYPE(x)                                       (((unsigned)(x) & 0x1F) << 0)
5818b8e80941Smrg#define   G_028A24_PRIM_TYPE(x)                                       (((x) >> 0) & 0x1F)
5819b8e80941Smrg#define   C_028A24_PRIM_TYPE                                          0xFFFFFFE0
5820b8e80941Smrg#define   S_028A24_RETAIN_ORDER(x)                                    (((unsigned)(x) & 0x1) << 14)
5821b8e80941Smrg#define   G_028A24_RETAIN_ORDER(x)                                    (((x) >> 14) & 0x1)
5822b8e80941Smrg#define   C_028A24_RETAIN_ORDER                                       0xFFFFBFFF
5823b8e80941Smrg#define   S_028A24_RETAIN_QUADS(x)                                    (((unsigned)(x) & 0x1) << 15)
5824b8e80941Smrg#define   G_028A24_RETAIN_QUADS(x)                                    (((x) >> 15) & 0x1)
5825b8e80941Smrg#define   C_028A24_RETAIN_QUADS                                       0xFFFF7FFF
5826b8e80941Smrg#define   S_028A24_PRIM_ORDER(x)                                      (((unsigned)(x) & 0x07) << 16)
5827b8e80941Smrg#define   G_028A24_PRIM_ORDER(x)                                      (((x) >> 16) & 0x07)
5828b8e80941Smrg#define   C_028A24_PRIM_ORDER                                         0xFFF8FFFF
5829b8e80941Smrg#define R_028A28_VGT_GROUP_FIRST_DECR                                   0x028A28
5830b8e80941Smrg#define   S_028A28_FIRST_DECR(x)                                      (((unsigned)(x) & 0x0F) << 0)
5831b8e80941Smrg#define   G_028A28_FIRST_DECR(x)                                      (((x) >> 0) & 0x0F)
5832b8e80941Smrg#define   C_028A28_FIRST_DECR                                         0xFFFFFFF0
5833b8e80941Smrg#define R_028A2C_VGT_GROUP_DECR                                         0x028A2C
5834b8e80941Smrg#define   S_028A2C_DECR(x)                                            (((unsigned)(x) & 0x0F) << 0)
5835b8e80941Smrg#define   G_028A2C_DECR(x)                                            (((x) >> 0) & 0x0F)
5836b8e80941Smrg#define   C_028A2C_DECR                                               0xFFFFFFF0
5837b8e80941Smrg#define R_028A30_VGT_GROUP_VECT_0_CNTL                                  0x028A30
5838b8e80941Smrg#define   S_028A30_COMP_X_EN(x)                                       (((unsigned)(x) & 0x1) << 0)
5839b8e80941Smrg#define   G_028A30_COMP_X_EN(x)                                       (((x) >> 0) & 0x1)
5840b8e80941Smrg#define   C_028A30_COMP_X_EN                                          0xFFFFFFFE
5841b8e80941Smrg#define   S_028A30_COMP_Y_EN(x)                                       (((unsigned)(x) & 0x1) << 1)
5842b8e80941Smrg#define   G_028A30_COMP_Y_EN(x)                                       (((x) >> 1) & 0x1)
5843b8e80941Smrg#define   C_028A30_COMP_Y_EN                                          0xFFFFFFFD
5844b8e80941Smrg#define   S_028A30_COMP_Z_EN(x)                                       (((unsigned)(x) & 0x1) << 2)
5845b8e80941Smrg#define   G_028A30_COMP_Z_EN(x)                                       (((x) >> 2) & 0x1)
5846b8e80941Smrg#define   C_028A30_COMP_Z_EN                                          0xFFFFFFFB
5847b8e80941Smrg#define   S_028A30_COMP_W_EN(x)                                       (((unsigned)(x) & 0x1) << 3)
5848b8e80941Smrg#define   G_028A30_COMP_W_EN(x)                                       (((x) >> 3) & 0x1)
5849b8e80941Smrg#define   C_028A30_COMP_W_EN                                          0xFFFFFFF7
5850b8e80941Smrg#define   S_028A30_STRIDE(x)                                          (((unsigned)(x) & 0xFF) << 8)
5851b8e80941Smrg#define   G_028A30_STRIDE(x)                                          (((x) >> 8) & 0xFF)
5852b8e80941Smrg#define   C_028A30_STRIDE                                             0xFFFF00FF
5853b8e80941Smrg#define   S_028A30_SHIFT(x)                                           (((unsigned)(x) & 0xFF) << 16)
5854b8e80941Smrg#define   G_028A30_SHIFT(x)                                           (((x) >> 16) & 0xFF)
5855b8e80941Smrg#define   C_028A30_SHIFT                                              0xFF00FFFF
5856b8e80941Smrg#define R_028A34_VGT_GROUP_VECT_1_CNTL                                  0x028A34
5857b8e80941Smrg#define   S_028A34_COMP_X_EN(x)                                       (((unsigned)(x) & 0x1) << 0)
5858b8e80941Smrg#define   G_028A34_COMP_X_EN(x)                                       (((x) >> 0) & 0x1)
5859b8e80941Smrg#define   C_028A34_COMP_X_EN                                          0xFFFFFFFE
5860b8e80941Smrg#define   S_028A34_COMP_Y_EN(x)                                       (((unsigned)(x) & 0x1) << 1)
5861b8e80941Smrg#define   G_028A34_COMP_Y_EN(x)                                       (((x) >> 1) & 0x1)
5862b8e80941Smrg#define   C_028A34_COMP_Y_EN                                          0xFFFFFFFD
5863b8e80941Smrg#define   S_028A34_COMP_Z_EN(x)                                       (((unsigned)(x) & 0x1) << 2)
5864b8e80941Smrg#define   G_028A34_COMP_Z_EN(x)                                       (((x) >> 2) & 0x1)
5865b8e80941Smrg#define   C_028A34_COMP_Z_EN                                          0xFFFFFFFB
5866b8e80941Smrg#define   S_028A34_COMP_W_EN(x)                                       (((unsigned)(x) & 0x1) << 3)
5867b8e80941Smrg#define   G_028A34_COMP_W_EN(x)                                       (((x) >> 3) & 0x1)
5868b8e80941Smrg#define   C_028A34_COMP_W_EN                                          0xFFFFFFF7
5869b8e80941Smrg#define   S_028A34_STRIDE(x)                                          (((unsigned)(x) & 0xFF) << 8)
5870b8e80941Smrg#define   G_028A34_STRIDE(x)                                          (((x) >> 8) & 0xFF)
5871b8e80941Smrg#define   C_028A34_STRIDE                                             0xFFFF00FF
5872b8e80941Smrg#define   S_028A34_SHIFT(x)                                           (((unsigned)(x) & 0xFF) << 16)
5873b8e80941Smrg#define   G_028A34_SHIFT(x)                                           (((x) >> 16) & 0xFF)
5874b8e80941Smrg#define   C_028A34_SHIFT                                              0xFF00FFFF
5875b8e80941Smrg#define R_028A38_VGT_GROUP_VECT_0_FMT_CNTL                              0x028A38
5876b8e80941Smrg#define   S_028A38_X_CONV(x)                                          (((unsigned)(x) & 0x0F) << 0)
5877b8e80941Smrg#define   G_028A38_X_CONV(x)                                          (((x) >> 0) & 0x0F)
5878b8e80941Smrg#define   C_028A38_X_CONV                                             0xFFFFFFF0
5879b8e80941Smrg#define   S_028A38_X_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 4)
5880b8e80941Smrg#define   G_028A38_X_OFFSET(x)                                        (((x) >> 4) & 0x0F)
5881b8e80941Smrg#define   C_028A38_X_OFFSET                                           0xFFFFFF0F
5882b8e80941Smrg#define   S_028A38_Y_CONV(x)                                          (((unsigned)(x) & 0x0F) << 8)
5883b8e80941Smrg#define   G_028A38_Y_CONV(x)                                          (((x) >> 8) & 0x0F)
5884b8e80941Smrg#define   C_028A38_Y_CONV                                             0xFFFFF0FF
5885b8e80941Smrg#define   S_028A38_Y_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 12)
5886b8e80941Smrg#define   G_028A38_Y_OFFSET(x)                                        (((x) >> 12) & 0x0F)
5887b8e80941Smrg#define   C_028A38_Y_OFFSET                                           0xFFFF0FFF
5888b8e80941Smrg#define   S_028A38_Z_CONV(x)                                          (((unsigned)(x) & 0x0F) << 16)
5889b8e80941Smrg#define   G_028A38_Z_CONV(x)                                          (((x) >> 16) & 0x0F)
5890b8e80941Smrg#define   C_028A38_Z_CONV                                             0xFFF0FFFF
5891b8e80941Smrg#define   S_028A38_Z_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 20)
5892b8e80941Smrg#define   G_028A38_Z_OFFSET(x)                                        (((x) >> 20) & 0x0F)
5893b8e80941Smrg#define   C_028A38_Z_OFFSET                                           0xFF0FFFFF
5894b8e80941Smrg#define   S_028A38_W_CONV(x)                                          (((unsigned)(x) & 0x0F) << 24)
5895b8e80941Smrg#define   G_028A38_W_CONV(x)                                          (((x) >> 24) & 0x0F)
5896b8e80941Smrg#define   C_028A38_W_CONV                                             0xF0FFFFFF
5897b8e80941Smrg#define   S_028A38_W_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 28)
5898b8e80941Smrg#define   G_028A38_W_OFFSET(x)                                        (((x) >> 28) & 0x0F)
5899b8e80941Smrg#define   C_028A38_W_OFFSET                                           0x0FFFFFFF
5900b8e80941Smrg#define R_028A3C_VGT_GROUP_VECT_1_FMT_CNTL                              0x028A3C
5901b8e80941Smrg#define   S_028A3C_X_CONV(x)                                          (((unsigned)(x) & 0x0F) << 0)
5902b8e80941Smrg#define   G_028A3C_X_CONV(x)                                          (((x) >> 0) & 0x0F)
5903b8e80941Smrg#define   C_028A3C_X_CONV                                             0xFFFFFFF0
5904b8e80941Smrg#define   S_028A3C_X_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 4)
5905b8e80941Smrg#define   G_028A3C_X_OFFSET(x)                                        (((x) >> 4) & 0x0F)
5906b8e80941Smrg#define   C_028A3C_X_OFFSET                                           0xFFFFFF0F
5907b8e80941Smrg#define   S_028A3C_Y_CONV(x)                                          (((unsigned)(x) & 0x0F) << 8)
5908b8e80941Smrg#define   G_028A3C_Y_CONV(x)                                          (((x) >> 8) & 0x0F)
5909b8e80941Smrg#define   C_028A3C_Y_CONV                                             0xFFFFF0FF
5910b8e80941Smrg#define   S_028A3C_Y_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 12)
5911b8e80941Smrg#define   G_028A3C_Y_OFFSET(x)                                        (((x) >> 12) & 0x0F)
5912b8e80941Smrg#define   C_028A3C_Y_OFFSET                                           0xFFFF0FFF
5913b8e80941Smrg#define   S_028A3C_Z_CONV(x)                                          (((unsigned)(x) & 0x0F) << 16)
5914b8e80941Smrg#define   G_028A3C_Z_CONV(x)                                          (((x) >> 16) & 0x0F)
5915b8e80941Smrg#define   C_028A3C_Z_CONV                                             0xFFF0FFFF
5916b8e80941Smrg#define   S_028A3C_Z_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 20)
5917b8e80941Smrg#define   G_028A3C_Z_OFFSET(x)                                        (((x) >> 20) & 0x0F)
5918b8e80941Smrg#define   C_028A3C_Z_OFFSET                                           0xFF0FFFFF
5919b8e80941Smrg#define   S_028A3C_W_CONV(x)                                          (((unsigned)(x) & 0x0F) << 24)
5920b8e80941Smrg#define   G_028A3C_W_CONV(x)                                          (((x) >> 24) & 0x0F)
5921b8e80941Smrg#define   C_028A3C_W_CONV                                             0xF0FFFFFF
5922b8e80941Smrg#define   S_028A3C_W_OFFSET(x)                                        (((unsigned)(x) & 0x0F) << 28)
5923b8e80941Smrg#define   G_028A3C_W_OFFSET(x)                                        (((x) >> 28) & 0x0F)
5924b8e80941Smrg#define   C_028A3C_W_OFFSET                                           0x0FFFFFFF
5925b8e80941Smrg#define R_028A40_VGT_GS_MODE                                            0x028A40
5926b8e80941Smrg#define   S_028A40_MODE(x)                                            (((unsigned)(x) & 0x07) << 0)
5927b8e80941Smrg#define   G_028A40_MODE(x)                                            (((x) >> 0) & 0x07)
5928b8e80941Smrg#define   C_028A40_MODE                                               0xFFFFFFF8
5929b8e80941Smrg#define   S_028A40_RESERVED_0(x)                                      (((unsigned)(x) & 0x1) << 3)
5930b8e80941Smrg#define   G_028A40_RESERVED_0(x)                                      (((x) >> 3) & 0x1)
5931b8e80941Smrg#define   C_028A40_RESERVED_0                                         0xFFFFFFF7
5932b8e80941Smrg#define   S_028A40_CUT_MODE(x)                                        (((unsigned)(x) & 0x03) << 4)
5933b8e80941Smrg#define   G_028A40_CUT_MODE(x)                                        (((x) >> 4) & 0x03)
5934b8e80941Smrg#define   C_028A40_CUT_MODE                                           0xFFFFFFCF
5935b8e80941Smrg#define   S_028A40_RESERVED_1(x)                                      (((unsigned)(x) & 0x1F) << 6)
5936b8e80941Smrg#define   G_028A40_RESERVED_1(x)                                      (((x) >> 6) & 0x1F)
5937b8e80941Smrg#define   C_028A40_RESERVED_1                                         0xFFFFF83F
5938b8e80941Smrg#define   S_028A40_GS_C_PACK_EN(x)                                    (((unsigned)(x) & 0x1) << 11)
5939b8e80941Smrg#define   G_028A40_GS_C_PACK_EN(x)                                    (((x) >> 11) & 0x1)
5940b8e80941Smrg#define   C_028A40_GS_C_PACK_EN                                       0xFFFFF7FF
5941b8e80941Smrg#define   S_028A40_RESERVED_2(x)                                      (((unsigned)(x) & 0x1) << 12)
5942b8e80941Smrg#define   G_028A40_RESERVED_2(x)                                      (((x) >> 12) & 0x1)
5943b8e80941Smrg#define   C_028A40_RESERVED_2                                         0xFFFFEFFF
5944b8e80941Smrg#define   S_028A40_ES_PASSTHRU(x)                                     (((unsigned)(x) & 0x1) << 13)
5945b8e80941Smrg#define   G_028A40_ES_PASSTHRU(x)                                     (((x) >> 13) & 0x1)
5946b8e80941Smrg#define   C_028A40_ES_PASSTHRU                                        0xFFFFDFFF
5947b8e80941Smrg#define   S_028A40_RESERVED_3(x)                                      (((unsigned)(x) & 0x1) << 14)
5948b8e80941Smrg#define   G_028A40_RESERVED_3(x)                                      (((x) >> 14) & 0x1)
5949b8e80941Smrg#define   C_028A40_RESERVED_3                                         0xFFFFBFFF
5950b8e80941Smrg#define   S_028A40_RESERVED_4(x)                                      (((unsigned)(x) & 0x1) << 15)
5951b8e80941Smrg#define   G_028A40_RESERVED_4(x)                                      (((x) >> 15) & 0x1)
5952b8e80941Smrg#define   C_028A40_RESERVED_4                                         0xFFFF7FFF
5953b8e80941Smrg#define   S_028A40_RESERVED_5(x)                                      (((unsigned)(x) & 0x1) << 16)
5954b8e80941Smrg#define   G_028A40_RESERVED_5(x)                                      (((x) >> 16) & 0x1)
5955b8e80941Smrg#define   C_028A40_RESERVED_5                                         0xFFFEFFFF
5956b8e80941Smrg#define   S_028A40_PARTIAL_THD_AT_EOI(x)                              (((unsigned)(x) & 0x1) << 17)
5957b8e80941Smrg#define   G_028A40_PARTIAL_THD_AT_EOI(x)                              (((x) >> 17) & 0x1)
5958b8e80941Smrg#define   C_028A40_PARTIAL_THD_AT_EOI                                 0xFFFDFFFF
5959b8e80941Smrg#define   S_028A40_SUPPRESS_CUTS(x)                                   (((unsigned)(x) & 0x1) << 18)
5960b8e80941Smrg#define   G_028A40_SUPPRESS_CUTS(x)                                   (((x) >> 18) & 0x1)
5961b8e80941Smrg#define   C_028A40_SUPPRESS_CUTS                                      0xFFFBFFFF
5962b8e80941Smrg#define   S_028A40_ES_WRITE_OPTIMIZE(x)                               (((unsigned)(x) & 0x1) << 19)
5963b8e80941Smrg#define   G_028A40_ES_WRITE_OPTIMIZE(x)                               (((x) >> 19) & 0x1)
5964b8e80941Smrg#define   C_028A40_ES_WRITE_OPTIMIZE                                  0xFFF7FFFF
5965b8e80941Smrg#define   S_028A40_GS_WRITE_OPTIMIZE(x)                               (((unsigned)(x) & 0x1) << 20)
5966b8e80941Smrg#define   G_028A40_GS_WRITE_OPTIMIZE(x)                               (((x) >> 20) & 0x1)
5967b8e80941Smrg#define   C_028A40_GS_WRITE_OPTIMIZE                                  0xFFEFFFFF
5968b8e80941Smrg#define   S_028A40_ONCHIP(x)                                          (((unsigned)(x) & 0x03) << 21)
5969b8e80941Smrg#define   G_028A40_ONCHIP(x)                                          (((x) >> 21) & 0x03)
5970b8e80941Smrg#define   C_028A40_ONCHIP                                             0xFF9FFFFF
5971b8e80941Smrg#define R_028A44_VGT_GS_ONCHIP_CNTL                                     0x028A44
5972b8e80941Smrg#define   S_028A44_ES_VERTS_PER_SUBGRP(x)                             (((unsigned)(x) & 0x7FF) << 0)
5973b8e80941Smrg#define   G_028A44_ES_VERTS_PER_SUBGRP(x)                             (((x) >> 0) & 0x7FF)
5974b8e80941Smrg#define   C_028A44_ES_VERTS_PER_SUBGRP                                0xFFFFF800
5975b8e80941Smrg#define   S_028A44_GS_PRIMS_PER_SUBGRP(x)                             (((unsigned)(x) & 0x7FF) << 11)
5976b8e80941Smrg#define   G_028A44_GS_PRIMS_PER_SUBGRP(x)                             (((x) >> 11) & 0x7FF)
5977b8e80941Smrg#define   C_028A44_GS_PRIMS_PER_SUBGRP                                0xFFC007FF
5978b8e80941Smrg#define   S_028A44_GS_INST_PRIMS_IN_SUBGRP(x)                         (((unsigned)(x) & 0x3FF) << 22)
5979b8e80941Smrg#define   G_028A44_GS_INST_PRIMS_IN_SUBGRP(x)                         (((x) >> 22) & 0x3FF)
5980b8e80941Smrg#define   C_028A44_GS_INST_PRIMS_IN_SUBGRP                            0x003FFFFF
5981b8e80941Smrg#define R_028A48_PA_SC_MODE_CNTL_0                                      0x028A48
5982b8e80941Smrg#define   S_028A48_MSAA_ENABLE(x)                                     (((unsigned)(x) & 0x1) << 0)
5983b8e80941Smrg#define   G_028A48_MSAA_ENABLE(x)                                     (((x) >> 0) & 0x1)
5984b8e80941Smrg#define   C_028A48_MSAA_ENABLE                                        0xFFFFFFFE
5985b8e80941Smrg#define   S_028A48_VPORT_SCISSOR_ENABLE(x)                            (((unsigned)(x) & 0x1) << 1)
5986b8e80941Smrg#define   G_028A48_VPORT_SCISSOR_ENABLE(x)                            (((x) >> 1) & 0x1)
5987b8e80941Smrg#define   C_028A48_VPORT_SCISSOR_ENABLE                               0xFFFFFFFD
5988b8e80941Smrg#define   S_028A48_LINE_STIPPLE_ENABLE(x)                             (((unsigned)(x) & 0x1) << 2)
5989b8e80941Smrg#define   G_028A48_LINE_STIPPLE_ENABLE(x)                             (((x) >> 2) & 0x1)
5990b8e80941Smrg#define   C_028A48_LINE_STIPPLE_ENABLE                                0xFFFFFFFB
5991b8e80941Smrg#define   S_028A48_SEND_UNLIT_STILES_TO_PKR(x)                        (((unsigned)(x) & 0x1) << 3)
5992b8e80941Smrg#define   G_028A48_SEND_UNLIT_STILES_TO_PKR(x)                        (((x) >> 3) & 0x1)
5993b8e80941Smrg#define   C_028A48_SEND_UNLIT_STILES_TO_PKR                           0xFFFFFFF7
5994b8e80941Smrg#define   S_028A48_SCALE_LINE_WIDTH_PAD(x)                            (((unsigned)(x) & 0x1) << 4)
5995b8e80941Smrg#define   G_028A48_SCALE_LINE_WIDTH_PAD(x)                            (((x) >> 4) & 0x1)
5996b8e80941Smrg#define   C_028A48_SCALE_LINE_WIDTH_PAD                               0xFFFFFFEF
5997b8e80941Smrg#define   S_028A48_ALTERNATE_RBS_PER_TILE(x)                          (((unsigned)(x) & 0x1) << 5)
5998b8e80941Smrg#define   G_028A48_ALTERNATE_RBS_PER_TILE(x)                          (((x) >> 5) & 0x1)
5999b8e80941Smrg#define   C_028A48_ALTERNATE_RBS_PER_TILE                             0xFFFFFFDF
6000b8e80941Smrg#define   S_028A48_COARSE_TILE_STARTS_ON_EVEN_RB(x)                   (((unsigned)(x) & 0x1) << 6)
6001b8e80941Smrg#define   G_028A48_COARSE_TILE_STARTS_ON_EVEN_RB(x)                   (((x) >> 6) & 0x1)
6002b8e80941Smrg#define   C_028A48_COARSE_TILE_STARTS_ON_EVEN_RB                      0xFFFFFFBF
6003b8e80941Smrg#define R_028A4C_PA_SC_MODE_CNTL_1                                      0x028A4C
6004b8e80941Smrg#define   S_028A4C_WALK_SIZE(x)                                       (((unsigned)(x) & 0x1) << 0)
6005b8e80941Smrg#define   G_028A4C_WALK_SIZE(x)                                       (((x) >> 0) & 0x1)
6006b8e80941Smrg#define   C_028A4C_WALK_SIZE                                          0xFFFFFFFE
6007b8e80941Smrg#define   S_028A4C_WALK_ALIGNMENT(x)                                  (((unsigned)(x) & 0x1) << 1)
6008b8e80941Smrg#define   G_028A4C_WALK_ALIGNMENT(x)                                  (((x) >> 1) & 0x1)
6009b8e80941Smrg#define   C_028A4C_WALK_ALIGNMENT                                     0xFFFFFFFD
6010b8e80941Smrg#define   S_028A4C_WALK_ALIGN8_PRIM_FITS_ST(x)                        (((unsigned)(x) & 0x1) << 2)
6011b8e80941Smrg#define   G_028A4C_WALK_ALIGN8_PRIM_FITS_ST(x)                        (((x) >> 2) & 0x1)
6012b8e80941Smrg#define   C_028A4C_WALK_ALIGN8_PRIM_FITS_ST                           0xFFFFFFFB
6013b8e80941Smrg#define   S_028A4C_WALK_FENCE_ENABLE(x)                               (((unsigned)(x) & 0x1) << 3)
6014b8e80941Smrg#define   G_028A4C_WALK_FENCE_ENABLE(x)                               (((x) >> 3) & 0x1)
6015b8e80941Smrg#define   C_028A4C_WALK_FENCE_ENABLE                                  0xFFFFFFF7
6016b8e80941Smrg#define   S_028A4C_WALK_FENCE_SIZE(x)                                 (((unsigned)(x) & 0x07) << 4)
6017b8e80941Smrg#define   G_028A4C_WALK_FENCE_SIZE(x)                                 (((x) >> 4) & 0x07)
6018b8e80941Smrg#define   C_028A4C_WALK_FENCE_SIZE                                    0xFFFFFF8F
6019b8e80941Smrg#define   S_028A4C_SUPERTILE_WALK_ORDER_ENABLE(x)                     (((unsigned)(x) & 0x1) << 7)
6020b8e80941Smrg#define   G_028A4C_SUPERTILE_WALK_ORDER_ENABLE(x)                     (((x) >> 7) & 0x1)
6021b8e80941Smrg#define   C_028A4C_SUPERTILE_WALK_ORDER_ENABLE                        0xFFFFFF7F
6022b8e80941Smrg#define   S_028A4C_TILE_WALK_ORDER_ENABLE(x)                          (((unsigned)(x) & 0x1) << 8)
6023b8e80941Smrg#define   G_028A4C_TILE_WALK_ORDER_ENABLE(x)                          (((x) >> 8) & 0x1)
6024b8e80941Smrg#define   C_028A4C_TILE_WALK_ORDER_ENABLE                             0xFFFFFEFF
6025b8e80941Smrg#define   S_028A4C_TILE_COVER_DISABLE(x)                              (((unsigned)(x) & 0x1) << 9)
6026b8e80941Smrg#define   G_028A4C_TILE_COVER_DISABLE(x)                              (((x) >> 9) & 0x1)
6027b8e80941Smrg#define   C_028A4C_TILE_COVER_DISABLE                                 0xFFFFFDFF
6028b8e80941Smrg#define   S_028A4C_TILE_COVER_NO_SCISSOR(x)                           (((unsigned)(x) & 0x1) << 10)
6029b8e80941Smrg#define   G_028A4C_TILE_COVER_NO_SCISSOR(x)                           (((x) >> 10) & 0x1)
6030b8e80941Smrg#define   C_028A4C_TILE_COVER_NO_SCISSOR                              0xFFFFFBFF
6031b8e80941Smrg#define   S_028A4C_ZMM_LINE_EXTENT(x)                                 (((unsigned)(x) & 0x1) << 11)
6032b8e80941Smrg#define   G_028A4C_ZMM_LINE_EXTENT(x)                                 (((x) >> 11) & 0x1)
6033b8e80941Smrg#define   C_028A4C_ZMM_LINE_EXTENT                                    0xFFFFF7FF
6034b8e80941Smrg#define   S_028A4C_ZMM_LINE_OFFSET(x)                                 (((unsigned)(x) & 0x1) << 12)
6035b8e80941Smrg#define   G_028A4C_ZMM_LINE_OFFSET(x)                                 (((x) >> 12) & 0x1)
6036b8e80941Smrg#define   C_028A4C_ZMM_LINE_OFFSET                                    0xFFFFEFFF
6037b8e80941Smrg#define   S_028A4C_ZMM_RECT_EXTENT(x)                                 (((unsigned)(x) & 0x1) << 13)
6038b8e80941Smrg#define   G_028A4C_ZMM_RECT_EXTENT(x)                                 (((x) >> 13) & 0x1)
6039b8e80941Smrg#define   C_028A4C_ZMM_RECT_EXTENT                                    0xFFFFDFFF
6040b8e80941Smrg#define   S_028A4C_KILL_PIX_POST_HI_Z(x)                              (((unsigned)(x) & 0x1) << 14)
6041b8e80941Smrg#define   G_028A4C_KILL_PIX_POST_HI_Z(x)                              (((x) >> 14) & 0x1)
6042b8e80941Smrg#define   C_028A4C_KILL_PIX_POST_HI_Z                                 0xFFFFBFFF
6043b8e80941Smrg#define   S_028A4C_KILL_PIX_POST_DETAIL_MASK(x)                       (((unsigned)(x) & 0x1) << 15)
6044b8e80941Smrg#define   G_028A4C_KILL_PIX_POST_DETAIL_MASK(x)                       (((x) >> 15) & 0x1)
6045b8e80941Smrg#define   C_028A4C_KILL_PIX_POST_DETAIL_MASK                          0xFFFF7FFF
6046b8e80941Smrg#define   S_028A4C_PS_ITER_SAMPLE(x)                                  (((unsigned)(x) & 0x1) << 16)
6047b8e80941Smrg#define   G_028A4C_PS_ITER_SAMPLE(x)                                  (((x) >> 16) & 0x1)
6048b8e80941Smrg#define   C_028A4C_PS_ITER_SAMPLE                                     0xFFFEFFFF
6049b8e80941Smrg#define   S_028A4C_MULTI_SHADER_ENGINE_PRIM_DISCARD_ENABLE(x)         (((unsigned)(x) & 0x1) << 17)
6050b8e80941Smrg#define   G_028A4C_MULTI_SHADER_ENGINE_PRIM_DISCARD_ENABLE(x)         (((x) >> 17) & 0x1)
6051b8e80941Smrg#define   C_028A4C_MULTI_SHADER_ENGINE_PRIM_DISCARD_ENABLE            0xFFFDFFFF
6052b8e80941Smrg#define   S_028A4C_MULTI_GPU_SUPERTILE_ENABLE(x)                      (((unsigned)(x) & 0x1) << 18)
6053b8e80941Smrg#define   G_028A4C_MULTI_GPU_SUPERTILE_ENABLE(x)                      (((x) >> 18) & 0x1)
6054b8e80941Smrg#define   C_028A4C_MULTI_GPU_SUPERTILE_ENABLE                         0xFFFBFFFF
6055b8e80941Smrg#define   S_028A4C_GPU_ID_OVERRIDE_ENABLE(x)                          (((unsigned)(x) & 0x1) << 19)
6056b8e80941Smrg#define   G_028A4C_GPU_ID_OVERRIDE_ENABLE(x)                          (((x) >> 19) & 0x1)
6057b8e80941Smrg#define   C_028A4C_GPU_ID_OVERRIDE_ENABLE                             0xFFF7FFFF
6058b8e80941Smrg#define   S_028A4C_GPU_ID_OVERRIDE(x)                                 (((unsigned)(x) & 0x0F) << 20)
6059b8e80941Smrg#define   G_028A4C_GPU_ID_OVERRIDE(x)                                 (((x) >> 20) & 0x0F)
6060b8e80941Smrg#define   C_028A4C_GPU_ID_OVERRIDE                                    0xFF0FFFFF
6061b8e80941Smrg#define   S_028A4C_MULTI_GPU_PRIM_DISCARD_ENABLE(x)                   (((unsigned)(x) & 0x1) << 24)
6062b8e80941Smrg#define   G_028A4C_MULTI_GPU_PRIM_DISCARD_ENABLE(x)                   (((x) >> 24) & 0x1)
6063b8e80941Smrg#define   C_028A4C_MULTI_GPU_PRIM_DISCARD_ENABLE                      0xFEFFFFFF
6064b8e80941Smrg#define   S_028A4C_FORCE_EOV_CNTDWN_ENABLE(x)                         (((unsigned)(x) & 0x1) << 25)
6065b8e80941Smrg#define   G_028A4C_FORCE_EOV_CNTDWN_ENABLE(x)                         (((x) >> 25) & 0x1)
6066b8e80941Smrg#define   C_028A4C_FORCE_EOV_CNTDWN_ENABLE                            0xFDFFFFFF
6067b8e80941Smrg#define   S_028A4C_FORCE_EOV_REZ_ENABLE(x)                            (((unsigned)(x) & 0x1) << 26)
6068b8e80941Smrg#define   G_028A4C_FORCE_EOV_REZ_ENABLE(x)                            (((x) >> 26) & 0x1)
6069b8e80941Smrg#define   C_028A4C_FORCE_EOV_REZ_ENABLE                               0xFBFFFFFF
6070b8e80941Smrg#define   S_028A4C_OUT_OF_ORDER_PRIMITIVE_ENABLE(x)                   (((unsigned)(x) & 0x1) << 27)
6071b8e80941Smrg#define   G_028A4C_OUT_OF_ORDER_PRIMITIVE_ENABLE(x)                   (((x) >> 27) & 0x1)
6072b8e80941Smrg#define   C_028A4C_OUT_OF_ORDER_PRIMITIVE_ENABLE                      0xF7FFFFFF
6073b8e80941Smrg#define   S_028A4C_OUT_OF_ORDER_WATER_MARK(x)                         (((unsigned)(x) & 0x07) << 28)
6074b8e80941Smrg#define   G_028A4C_OUT_OF_ORDER_WATER_MARK(x)                         (((x) >> 28) & 0x07)
6075b8e80941Smrg#define   C_028A4C_OUT_OF_ORDER_WATER_MARK                            0x8FFFFFFF
6076b8e80941Smrg#define R_028A50_VGT_ENHANCE                                            0x028A50
6077b8e80941Smrg#define R_028A54_VGT_GS_PER_ES                                          0x028A54
6078b8e80941Smrg#define   S_028A54_GS_PER_ES(x)                                       (((unsigned)(x) & 0x7FF) << 0)
6079b8e80941Smrg#define   G_028A54_GS_PER_ES(x)                                       (((x) >> 0) & 0x7FF)
6080b8e80941Smrg#define   C_028A54_GS_PER_ES                                          0xFFFFF800
6081b8e80941Smrg#define R_028A58_VGT_ES_PER_GS                                          0x028A58
6082b8e80941Smrg#define   S_028A58_ES_PER_GS(x)                                       (((unsigned)(x) & 0x7FF) << 0)
6083b8e80941Smrg#define   G_028A58_ES_PER_GS(x)                                       (((x) >> 0) & 0x7FF)
6084b8e80941Smrg#define   C_028A58_ES_PER_GS                                          0xFFFFF800
6085b8e80941Smrg#define R_028A5C_VGT_GS_PER_VS                                          0x028A5C
6086b8e80941Smrg#define   S_028A5C_GS_PER_VS(x)                                       (((unsigned)(x) & 0x0F) << 0)
6087b8e80941Smrg#define   G_028A5C_GS_PER_VS(x)                                       (((x) >> 0) & 0x0F)
6088b8e80941Smrg#define   C_028A5C_GS_PER_VS                                          0xFFFFFFF0
6089b8e80941Smrg#define R_028A60_VGT_GSVS_RING_OFFSET_1                                 0x028A60
6090b8e80941Smrg#define   S_028A60_OFFSET(x)                                          (((unsigned)(x) & 0x7FFF) << 0)
6091b8e80941Smrg#define   G_028A60_OFFSET(x)                                          (((x) >> 0) & 0x7FFF)
6092b8e80941Smrg#define   C_028A60_OFFSET                                             0xFFFF8000
6093b8e80941Smrg#define R_028A64_VGT_GSVS_RING_OFFSET_2                                 0x028A64
6094b8e80941Smrg#define   S_028A64_OFFSET(x)                                          (((unsigned)(x) & 0x7FFF) << 0)
6095b8e80941Smrg#define   G_028A64_OFFSET(x)                                          (((x) >> 0) & 0x7FFF)
6096b8e80941Smrg#define   C_028A64_OFFSET                                             0xFFFF8000
6097b8e80941Smrg#define R_028A68_VGT_GSVS_RING_OFFSET_3                                 0x028A68
6098b8e80941Smrg#define   S_028A68_OFFSET(x)                                          (((unsigned)(x) & 0x7FFF) << 0)
6099b8e80941Smrg#define   G_028A68_OFFSET(x)                                          (((x) >> 0) & 0x7FFF)
6100b8e80941Smrg#define   C_028A68_OFFSET                                             0xFFFF8000
6101b8e80941Smrg#define R_028A6C_VGT_GS_OUT_PRIM_TYPE                                   0x028A6C
6102b8e80941Smrg#define   S_028A6C_OUTPRIM_TYPE(x)                                    (((unsigned)(x) & 0x3F) << 0)
6103b8e80941Smrg#define   G_028A6C_OUTPRIM_TYPE(x)                                    (((x) >> 0) & 0x3F)
6104b8e80941Smrg#define   C_028A6C_OUTPRIM_TYPE                                       0xFFFFFFC0
6105b8e80941Smrg#define   S_028A6C_OUTPRIM_TYPE_1(x)                                  (((unsigned)(x) & 0x3F) << 8)
6106b8e80941Smrg#define   G_028A6C_OUTPRIM_TYPE_1(x)                                  (((x) >> 8) & 0x3F)
6107b8e80941Smrg#define   C_028A6C_OUTPRIM_TYPE_1                                     0xFFFFC0FF
6108b8e80941Smrg#define   S_028A6C_OUTPRIM_TYPE_2(x)                                  (((unsigned)(x) & 0x3F) << 16)
6109b8e80941Smrg#define   G_028A6C_OUTPRIM_TYPE_2(x)                                  (((x) >> 16) & 0x3F)
6110b8e80941Smrg#define   C_028A6C_OUTPRIM_TYPE_2                                     0xFFC0FFFF
6111b8e80941Smrg#define   S_028A6C_OUTPRIM_TYPE_3(x)                                  (((unsigned)(x) & 0x3F) << 22)
6112b8e80941Smrg#define   G_028A6C_OUTPRIM_TYPE_3(x)                                  (((x) >> 22) & 0x3F)
6113b8e80941Smrg#define   C_028A6C_OUTPRIM_TYPE_3                                     0xF03FFFFF
6114b8e80941Smrg#define   S_028A6C_UNIQUE_TYPE_PER_STREAM(x)                          (((unsigned)(x) & 0x1) << 31)
6115b8e80941Smrg#define   G_028A6C_UNIQUE_TYPE_PER_STREAM(x)                          (((x) >> 31) & 0x1)
6116b8e80941Smrg#define   C_028A6C_UNIQUE_TYPE_PER_STREAM                             0x7FFFFFFF
6117b8e80941Smrg#define R_028A70_IA_ENHANCE                                             0x028A70
6118b8e80941Smrg#define R_028A74_VGT_DMA_SIZE                                           0x028A74
6119b8e80941Smrg#define R_028A78_VGT_DMA_MAX_SIZE                                       0x028A78
6120b8e80941Smrg#define R_028A7C_VGT_DMA_INDEX_TYPE                                     0x028A7C
6121b8e80941Smrg#define   S_028A7C_INDEX_TYPE(x)                                      (((unsigned)(x) & 0x03) << 0)
6122b8e80941Smrg#define   G_028A7C_INDEX_TYPE(x)                                      (((x) >> 0) & 0x03)
6123b8e80941Smrg#define   C_028A7C_INDEX_TYPE                                         0xFFFFFFFC
6124b8e80941Smrg#define   S_028A7C_SWAP_MODE(x)                                       (((unsigned)(x) & 0x03) << 2)
6125b8e80941Smrg#define   G_028A7C_SWAP_MODE(x)                                       (((x) >> 2) & 0x03)
6126b8e80941Smrg#define   C_028A7C_SWAP_MODE                                          0xFFFFFFF3
6127b8e80941Smrg#define   S_028A7C_BUF_TYPE(x)                                        (((unsigned)(x) & 0x03) << 4)
6128b8e80941Smrg#define   G_028A7C_BUF_TYPE(x)                                        (((x) >> 4) & 0x03)
6129b8e80941Smrg#define   C_028A7C_BUF_TYPE                                           0xFFFFFFCF
6130b8e80941Smrg#define   S_028A7C_RDREQ_POLICY(x)                                    (((unsigned)(x) & 0x1) << 6)
6131b8e80941Smrg#define   G_028A7C_RDREQ_POLICY(x)                                    (((x) >> 6) & 0x1)
6132b8e80941Smrg#define   C_028A7C_RDREQ_POLICY                                       0xFFFFFFBF
6133b8e80941Smrg#define   S_028A7C_PRIMGEN_EN(x)                                      (((unsigned)(x) & 0x1) << 8)
6134b8e80941Smrg#define   G_028A7C_PRIMGEN_EN(x)                                      (((x) >> 8) & 0x1)
6135b8e80941Smrg#define   C_028A7C_PRIMGEN_EN                                         0xFFFFFEFF
6136b8e80941Smrg#define   S_028A7C_NOT_EOP(x)                                         (((unsigned)(x) & 0x1) << 9)
6137b8e80941Smrg#define   G_028A7C_NOT_EOP(x)                                         (((x) >> 9) & 0x1)
6138b8e80941Smrg#define   C_028A7C_NOT_EOP                                            0xFFFFFDFF
6139b8e80941Smrg#define   S_028A7C_REQ_PATH(x)                                        (((unsigned)(x) & 0x1) << 10)
6140b8e80941Smrg#define   G_028A7C_REQ_PATH(x)                                        (((x) >> 10) & 0x1)
6141b8e80941Smrg#define   C_028A7C_REQ_PATH                                           0xFFFFFBFF
6142b8e80941Smrg#define R_028A80_WD_ENHANCE                                             0x028A80
6143b8e80941Smrg#define R_028A84_VGT_PRIMITIVEID_EN                                     0x028A84
6144b8e80941Smrg#define   S_028A84_PRIMITIVEID_EN(x)                                  (((unsigned)(x) & 0x1) << 0)
6145b8e80941Smrg#define   G_028A84_PRIMITIVEID_EN(x)                                  (((x) >> 0) & 0x1)
6146b8e80941Smrg#define   C_028A84_PRIMITIVEID_EN                                     0xFFFFFFFE
6147b8e80941Smrg#define   S_028A84_DISABLE_RESET_ON_EOI(x)                            (((unsigned)(x) & 0x1) << 1)
6148b8e80941Smrg#define   G_028A84_DISABLE_RESET_ON_EOI(x)                            (((x) >> 1) & 0x1)
6149b8e80941Smrg#define   C_028A84_DISABLE_RESET_ON_EOI                               0xFFFFFFFD
6150b8e80941Smrg#define   S_028A84_NGG_DISABLE_PROVOK_REUSE(x)                        (((unsigned)(x) & 0x1) << 2)
6151b8e80941Smrg#define   G_028A84_NGG_DISABLE_PROVOK_REUSE(x)                        (((x) >> 2) & 0x1)
6152b8e80941Smrg#define   C_028A84_NGG_DISABLE_PROVOK_REUSE                           0xFFFFFFFB
6153b8e80941Smrg#define R_028A88_VGT_DMA_NUM_INSTANCES                                  0x028A88
6154b8e80941Smrg#define R_028A8C_VGT_PRIMITIVEID_RESET                                  0x028A8C
6155b8e80941Smrg#define R_028A90_VGT_EVENT_INITIATOR                                    0x028A90
6156b8e80941Smrg#define   S_028A90_EVENT_TYPE(x)                                      (((unsigned)(x) & 0x3F) << 0)
6157b8e80941Smrg#define   G_028A90_EVENT_TYPE(x)                                      (((x) >> 0) & 0x3F)
6158b8e80941Smrg#define   C_028A90_EVENT_TYPE                                         0xFFFFFFC0
6159b8e80941Smrg#define     V_028A90_SAMPLE_STREAMOUTSTATS1                         0x01
6160b8e80941Smrg#define     V_028A90_SAMPLE_STREAMOUTSTATS2                         0x02
6161b8e80941Smrg#define     V_028A90_SAMPLE_STREAMOUTSTATS3                         0x03
6162b8e80941Smrg#define     V_028A90_CACHE_FLUSH_TS                                 0x04
6163b8e80941Smrg#define     V_028A90_CONTEXT_DONE                                   0x05
6164b8e80941Smrg#define     V_028A90_CACHE_FLUSH                                    0x06
6165b8e80941Smrg#define     V_028A90_CS_PARTIAL_FLUSH                               0x07
6166b8e80941Smrg#define     V_028A90_VGT_STREAMOUT_SYNC                             0x08
6167b8e80941Smrg#define     V_028A90_VGT_STREAMOUT_RESET                            0x0A
6168b8e80941Smrg#define     V_028A90_END_OF_PIPE_INCR_DE                            0x0B
6169b8e80941Smrg#define     V_028A90_END_OF_PIPE_IB_END                             0x0C
6170b8e80941Smrg#define     V_028A90_RST_PIX_CNT                                    0x0D
6171b8e80941Smrg#define     V_028A90_BREAK_BATCH                                    0x0E /* new */
6172b8e80941Smrg#define     V_028A90_VS_PARTIAL_FLUSH                               0x0F
6173b8e80941Smrg#define     V_028A90_PS_PARTIAL_FLUSH                               0x10
6174b8e80941Smrg#define     V_028A90_FLUSH_HS_OUTPUT                                0x11
6175b8e80941Smrg#define     V_028A90_FLUSH_DFSM                                     0x12 /* new */
6176b8e80941Smrg#define     V_028A90_RESET_TO_LOWEST_VGT                            0x13 /* new */
6177b8e80941Smrg#define     V_028A90_CACHE_FLUSH_AND_INV_TS_EVENT                   0x14
6178b8e80941Smrg#define     V_028A90_ZPASS_DONE                                     0x15
6179b8e80941Smrg#define     V_028A90_CACHE_FLUSH_AND_INV_EVENT                      0x16
6180b8e80941Smrg#define     V_028A90_PERFCOUNTER_START                              0x17
6181b8e80941Smrg#define     V_028A90_PERFCOUNTER_STOP                               0x18
6182b8e80941Smrg#define     V_028A90_PIPELINESTAT_START                             0x19
6183b8e80941Smrg#define     V_028A90_PIPELINESTAT_STOP                              0x1A
6184b8e80941Smrg#define     V_028A90_PERFCOUNTER_SAMPLE                             0x1B
6185b8e80941Smrg#define     V_028A90_SAMPLE_PIPELINESTAT                            0x1E
6186b8e80941Smrg#define     V_028A90_SO_VGTSTREAMOUT_FLUSH                          0x1F
6187b8e80941Smrg#define     V_028A90_SAMPLE_STREAMOUTSTATS                          0x20
6188b8e80941Smrg#define     V_028A90_RESET_VTX_CNT                                  0x21
6189b8e80941Smrg#define     V_028A90_BLOCK_CONTEXT_DONE                             0x22
6190b8e80941Smrg#define     V_028A90_CS_CONTEXT_DONE                                0x23
6191b8e80941Smrg#define     V_028A90_VGT_FLUSH                                      0x24
6192b8e80941Smrg#define     V_028A90_TGID_ROLLOVER                                  0x25
6193b8e80941Smrg#define     V_028A90_SC_SEND_DB_VPZ                                 0x27
6194b8e80941Smrg#define     V_028A90_BOTTOM_OF_PIPE_TS                              0x28
6195b8e80941Smrg#define     V_028A90_DB_CACHE_FLUSH_AND_INV                         0x2A
6196b8e80941Smrg#define     V_028A90_FLUSH_AND_INV_DB_DATA_TS                       0x2B
6197b8e80941Smrg#define     V_028A90_FLUSH_AND_INV_DB_META                          0x2C
6198b8e80941Smrg#define     V_028A90_FLUSH_AND_INV_CB_DATA_TS                       0x2D
6199b8e80941Smrg#define     V_028A90_FLUSH_AND_INV_CB_META                          0x2E
6200b8e80941Smrg#define     V_028A90_CS_DONE                                        0x2F
6201b8e80941Smrg#define     V_028A90_PS_DONE                                        0x30
6202b8e80941Smrg#define     V_028A90_FLUSH_AND_INV_CB_PIXEL_DATA                    0x31
6203b8e80941Smrg#define     V_028A90_THREAD_TRACE_START                             0x33
6204b8e80941Smrg#define     V_028A90_THREAD_TRACE_STOP                              0x34
6205b8e80941Smrg#define     V_028A90_THREAD_TRACE_MARKER                            0x35
6206b8e80941Smrg#define     V_028A90_THREAD_TRACE_FLUSH                             0x36
6207b8e80941Smrg#define     V_028A90_THREAD_TRACE_FINISH                            0x37
6208b8e80941Smrg#define     V_028A90_PIXEL_PIPE_STAT_CONTROL                        0x38
6209b8e80941Smrg#define     V_028A90_PIXEL_PIPE_STAT_DUMP                           0x39
6210b8e80941Smrg#define     V_028A90_PIXEL_PIPE_STAT_RESET                          0x3A
6211b8e80941Smrg#define     V_028A90_ENABLE_NGG_PIPELINE                            0x3D /* new */
6212b8e80941Smrg#define     V_028A90_ENABLE_LEGACY_PIPELINE                         0x3E /* new */
6213b8e80941Smrg#define   S_028A90_ADDRESS_HI_GFX9(x)                                 (((unsigned)(x) & 0x1FFFF) << 10)
6214b8e80941Smrg#define   G_028A90_ADDRESS_HI_GFX9(x)                                 (((x) >> 10) & 0x1FFFF)
6215b8e80941Smrg#define   C_028A90_ADDRESS_HI_GFX9                                    0xF80003FF
6216b8e80941Smrg#define   S_028A90_EXTENDED_EVENT(x)                                  (((unsigned)(x) & 0x1) << 27)
6217b8e80941Smrg#define   G_028A90_EXTENDED_EVENT(x)                                  (((x) >> 27) & 0x1)
6218b8e80941Smrg#define   C_028A90_EXTENDED_EVENT                                     0xF7FFFFFF
6219b8e80941Smrg#define R_028A94_VGT_GS_MAX_PRIMS_PER_SUBGROUP                          0x028A94
6220b8e80941Smrg#define   S_028A94_MAX_PRIMS_PER_SUBGROUP(x)                          (((unsigned)(x) & 0xFFFF) << 0)
6221b8e80941Smrg#define   G_028A94_MAX_PRIMS_PER_SUBGROUP(x)                          (((x) >> 0) & 0xFFFF)
6222b8e80941Smrg#define   C_028A94_MAX_PRIMS_PER_SUBGROUP                             0xFFFF0000
6223b8e80941Smrg#define R_028A98_VGT_DRAW_PAYLOAD_CNTL                                  0x028A98
6224b8e80941Smrg#define   S_028A98_OBJPRIM_ID_EN(x)                                   (((unsigned)(x) & 0x1) << 0)
6225b8e80941Smrg#define   G_028A98_OBJPRIM_ID_EN(x)                                   (((x) >> 0) & 0x1)
6226b8e80941Smrg#define   C_028A98_OBJPRIM_ID_EN                                      0xFFFFFFFE
6227b8e80941Smrg#define   S_028A98_EN_REG_RT_INDEX(x)                                 (((unsigned)(x) & 0x1) << 1)
6228b8e80941Smrg#define   G_028A98_EN_REG_RT_INDEX(x)                                 (((x) >> 1) & 0x1)
6229b8e80941Smrg#define   C_028A98_EN_REG_RT_INDEX                                    0xFFFFFFFD
6230b8e80941Smrg#define   S_028A98_EN_PIPELINE_PRIMID(x)                              (((unsigned)(x) & 0x1) << 2)
6231b8e80941Smrg#define   G_028A98_EN_PIPELINE_PRIMID(x)                              (((x) >> 2) & 0x1)
6232b8e80941Smrg#define   C_028A98_EN_PIPELINE_PRIMID                                 0xFFFFFFFB
6233b8e80941Smrg#define   S_028A98_OBJECT_ID_INST_EN(x)                               (((unsigned)(x) & 0x1) << 3)
6234b8e80941Smrg#define   G_028A98_OBJECT_ID_INST_EN(x)                               (((x) >> 3) & 0x1)
6235b8e80941Smrg#define   C_028A98_OBJECT_ID_INST_EN                                  0xFFFFFFF7
6236b8e80941Smrg#define R_028AA0_VGT_INSTANCE_STEP_RATE_0                               0x028AA0
6237b8e80941Smrg#define R_028AA4_VGT_INSTANCE_STEP_RATE_1                               0x028AA4
6238b8e80941Smrg#define R_028AAC_VGT_ESGS_RING_ITEMSIZE                                 0x028AAC
6239b8e80941Smrg#define   S_028AAC_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6240b8e80941Smrg#define   G_028AAC_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6241b8e80941Smrg#define   C_028AAC_ITEMSIZE                                           0xFFFF8000
6242b8e80941Smrg#define R_028AB0_VGT_GSVS_RING_ITEMSIZE                                 0x028AB0
6243b8e80941Smrg#define   S_028AB0_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6244b8e80941Smrg#define   G_028AB0_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6245b8e80941Smrg#define   C_028AB0_ITEMSIZE                                           0xFFFF8000
6246b8e80941Smrg#define R_028AB4_VGT_REUSE_OFF                                          0x028AB4
6247b8e80941Smrg#define   S_028AB4_REUSE_OFF(x)                                       (((unsigned)(x) & 0x1) << 0)
6248b8e80941Smrg#define   G_028AB4_REUSE_OFF(x)                                       (((x) >> 0) & 0x1)
6249b8e80941Smrg#define   C_028AB4_REUSE_OFF                                          0xFFFFFFFE
6250b8e80941Smrg#define R_028AB8_VGT_VTX_CNT_EN                                         0x028AB8
6251b8e80941Smrg#define   S_028AB8_VTX_CNT_EN(x)                                      (((unsigned)(x) & 0x1) << 0)
6252b8e80941Smrg#define   G_028AB8_VTX_CNT_EN(x)                                      (((x) >> 0) & 0x1)
6253b8e80941Smrg#define   C_028AB8_VTX_CNT_EN                                         0xFFFFFFFE
6254b8e80941Smrg#define R_028ABC_DB_HTILE_SURFACE                                       0x028ABC
6255b8e80941Smrg#define   S_028ABC_FULL_CACHE(x)                                      (((unsigned)(x) & 0x1) << 1)
6256b8e80941Smrg#define   G_028ABC_FULL_CACHE(x)                                      (((x) >> 1) & 0x1)
6257b8e80941Smrg#define   C_028ABC_FULL_CACHE                                         0xFFFFFFFD
6258b8e80941Smrg#define   S_028ABC_HTILE_USES_PRELOAD_WIN(x)                          (((unsigned)(x) & 0x1) << 2)
6259b8e80941Smrg#define   G_028ABC_HTILE_USES_PRELOAD_WIN(x)                          (((x) >> 2) & 0x1)
6260b8e80941Smrg#define   C_028ABC_HTILE_USES_PRELOAD_WIN                             0xFFFFFFFB
6261b8e80941Smrg#define   S_028ABC_PRELOAD(x)                                         (((unsigned)(x) & 0x1) << 3)
6262b8e80941Smrg#define   G_028ABC_PRELOAD(x)                                         (((x) >> 3) & 0x1)
6263b8e80941Smrg#define   C_028ABC_PRELOAD                                            0xFFFFFFF7
6264b8e80941Smrg#define   S_028ABC_PREFETCH_WIDTH(x)                                  (((unsigned)(x) & 0x3F) << 4)
6265b8e80941Smrg#define   G_028ABC_PREFETCH_WIDTH(x)                                  (((x) >> 4) & 0x3F)
6266b8e80941Smrg#define   C_028ABC_PREFETCH_WIDTH                                     0xFFFFFC0F
6267b8e80941Smrg#define   S_028ABC_PREFETCH_HEIGHT(x)                                 (((unsigned)(x) & 0x3F) << 10)
6268b8e80941Smrg#define   G_028ABC_PREFETCH_HEIGHT(x)                                 (((x) >> 10) & 0x3F)
6269b8e80941Smrg#define   C_028ABC_PREFETCH_HEIGHT                                    0xFFFF03FF
6270b8e80941Smrg#define   S_028ABC_DST_OUTSIDE_ZERO_TO_ONE(x)                         (((unsigned)(x) & 0x1) << 16)
6271b8e80941Smrg#define   G_028ABC_DST_OUTSIDE_ZERO_TO_ONE(x)                         (((x) >> 16) & 0x1)
6272b8e80941Smrg#define   C_028ABC_DST_OUTSIDE_ZERO_TO_ONE                            0xFFFEFFFF
6273b8e80941Smrg#define   S_028ABC_PIPE_ALIGNED(x)                                    (((unsigned)(x) & 0x1) << 18)
6274b8e80941Smrg#define   G_028ABC_PIPE_ALIGNED(x)                                    (((x) >> 18) & 0x1)
6275b8e80941Smrg#define   C_028ABC_PIPE_ALIGNED                                       0xFFFBFFFF
6276b8e80941Smrg#define   S_028ABC_RB_ALIGNED(x)                                      (((unsigned)(x) & 0x1) << 19)
6277b8e80941Smrg#define   G_028ABC_RB_ALIGNED(x)                                      (((x) >> 19) & 0x1)
6278b8e80941Smrg#define   C_028ABC_RB_ALIGNED                                         0xFFF7FFFF
6279b8e80941Smrg#define R_028AC0_DB_SRESULTS_COMPARE_STATE0                             0x028AC0
6280b8e80941Smrg#define   S_028AC0_COMPAREFUNC0(x)                                    (((unsigned)(x) & 0x07) << 0)
6281b8e80941Smrg#define   G_028AC0_COMPAREFUNC0(x)                                    (((x) >> 0) & 0x07)
6282b8e80941Smrg#define   C_028AC0_COMPAREFUNC0                                       0xFFFFFFF8
6283b8e80941Smrg#define   S_028AC0_COMPAREVALUE0(x)                                   (((unsigned)(x) & 0xFF) << 4)
6284b8e80941Smrg#define   G_028AC0_COMPAREVALUE0(x)                                   (((x) >> 4) & 0xFF)
6285b8e80941Smrg#define   C_028AC0_COMPAREVALUE0                                      0xFFFFF00F
6286b8e80941Smrg#define   S_028AC0_COMPAREMASK0(x)                                    (((unsigned)(x) & 0xFF) << 12)
6287b8e80941Smrg#define   G_028AC0_COMPAREMASK0(x)                                    (((x) >> 12) & 0xFF)
6288b8e80941Smrg#define   C_028AC0_COMPAREMASK0                                       0xFFF00FFF
6289b8e80941Smrg#define   S_028AC0_ENABLE0(x)                                         (((unsigned)(x) & 0x1) << 24)
6290b8e80941Smrg#define   G_028AC0_ENABLE0(x)                                         (((x) >> 24) & 0x1)
6291b8e80941Smrg#define   C_028AC0_ENABLE0                                            0xFEFFFFFF
6292b8e80941Smrg#define R_028AC4_DB_SRESULTS_COMPARE_STATE1                             0x028AC4
6293b8e80941Smrg#define   S_028AC4_COMPAREFUNC1(x)                                    (((unsigned)(x) & 0x07) << 0)
6294b8e80941Smrg#define   G_028AC4_COMPAREFUNC1(x)                                    (((x) >> 0) & 0x07)
6295b8e80941Smrg#define   C_028AC4_COMPAREFUNC1                                       0xFFFFFFF8
6296b8e80941Smrg#define   S_028AC4_COMPAREVALUE1(x)                                   (((unsigned)(x) & 0xFF) << 4)
6297b8e80941Smrg#define   G_028AC4_COMPAREVALUE1(x)                                   (((x) >> 4) & 0xFF)
6298b8e80941Smrg#define   C_028AC4_COMPAREVALUE1                                      0xFFFFF00F
6299b8e80941Smrg#define   S_028AC4_COMPAREMASK1(x)                                    (((unsigned)(x) & 0xFF) << 12)
6300b8e80941Smrg#define   G_028AC4_COMPAREMASK1(x)                                    (((x) >> 12) & 0xFF)
6301b8e80941Smrg#define   C_028AC4_COMPAREMASK1                                       0xFFF00FFF
6302b8e80941Smrg#define   S_028AC4_ENABLE1(x)                                         (((unsigned)(x) & 0x1) << 24)
6303b8e80941Smrg#define   G_028AC4_ENABLE1(x)                                         (((x) >> 24) & 0x1)
6304b8e80941Smrg#define   C_028AC4_ENABLE1                                            0xFEFFFFFF
6305b8e80941Smrg#define R_028AC8_DB_PRELOAD_CONTROL                                     0x028AC8
6306b8e80941Smrg#define   S_028AC8_START_X(x)                                         (((unsigned)(x) & 0xFF) << 0)
6307b8e80941Smrg#define   G_028AC8_START_X(x)                                         (((x) >> 0) & 0xFF)
6308b8e80941Smrg#define   C_028AC8_START_X                                            0xFFFFFF00
6309b8e80941Smrg#define   S_028AC8_START_Y(x)                                         (((unsigned)(x) & 0xFF) << 8)
6310b8e80941Smrg#define   G_028AC8_START_Y(x)                                         (((x) >> 8) & 0xFF)
6311b8e80941Smrg#define   C_028AC8_START_Y                                            0xFFFF00FF
6312b8e80941Smrg#define   S_028AC8_MAX_X(x)                                           (((unsigned)(x) & 0xFF) << 16)
6313b8e80941Smrg#define   G_028AC8_MAX_X(x)                                           (((x) >> 16) & 0xFF)
6314b8e80941Smrg#define   C_028AC8_MAX_X                                              0xFF00FFFF
6315b8e80941Smrg#define   S_028AC8_MAX_Y(x)                                           (((unsigned)(x) & 0xFF) << 24)
6316b8e80941Smrg#define   G_028AC8_MAX_Y(x)                                           (((x) >> 24) & 0xFF)
6317b8e80941Smrg#define   C_028AC8_MAX_Y                                              0x00FFFFFF
6318b8e80941Smrg#define R_028AD0_VGT_STRMOUT_BUFFER_SIZE_0                              0x028AD0
6319b8e80941Smrg#define R_028AD4_VGT_STRMOUT_VTX_STRIDE_0                               0x028AD4
6320b8e80941Smrg#define   S_028AD4_STRIDE(x)                                          (((unsigned)(x) & 0x3FF) << 0)
6321b8e80941Smrg#define   G_028AD4_STRIDE(x)                                          (((x) >> 0) & 0x3FF)
6322b8e80941Smrg#define   C_028AD4_STRIDE                                             0xFFFFFC00
6323b8e80941Smrg#define R_028ADC_VGT_STRMOUT_BUFFER_OFFSET_0                            0x028ADC
6324b8e80941Smrg#define R_028AE0_VGT_STRMOUT_BUFFER_SIZE_1                              0x028AE0
6325b8e80941Smrg#define R_028AE4_VGT_STRMOUT_VTX_STRIDE_1                               0x028AE4
6326b8e80941Smrg#define   S_028AE4_STRIDE(x)                                          (((unsigned)(x) & 0x3FF) << 0)
6327b8e80941Smrg#define   G_028AE4_STRIDE(x)                                          (((x) >> 0) & 0x3FF)
6328b8e80941Smrg#define   C_028AE4_STRIDE                                             0xFFFFFC00
6329b8e80941Smrg#define R_028AEC_VGT_STRMOUT_BUFFER_OFFSET_1                            0x028AEC
6330b8e80941Smrg#define R_028AF0_VGT_STRMOUT_BUFFER_SIZE_2                              0x028AF0
6331b8e80941Smrg#define R_028AF4_VGT_STRMOUT_VTX_STRIDE_2                               0x028AF4
6332b8e80941Smrg#define   S_028AF4_STRIDE(x)                                          (((unsigned)(x) & 0x3FF) << 0)
6333b8e80941Smrg#define   G_028AF4_STRIDE(x)                                          (((x) >> 0) & 0x3FF)
6334b8e80941Smrg#define   C_028AF4_STRIDE                                             0xFFFFFC00
6335b8e80941Smrg#define R_028AFC_VGT_STRMOUT_BUFFER_OFFSET_2                            0x028AFC
6336b8e80941Smrg#define R_028B00_VGT_STRMOUT_BUFFER_SIZE_3                              0x028B00
6337b8e80941Smrg#define R_028B04_VGT_STRMOUT_VTX_STRIDE_3                               0x028B04
6338b8e80941Smrg#define   S_028B04_STRIDE(x)                                          (((unsigned)(x) & 0x3FF) << 0)
6339b8e80941Smrg#define   G_028B04_STRIDE(x)                                          (((x) >> 0) & 0x3FF)
6340b8e80941Smrg#define   C_028B04_STRIDE                                             0xFFFFFC00
6341b8e80941Smrg#define R_028B0C_VGT_STRMOUT_BUFFER_OFFSET_3                            0x028B0C
6342b8e80941Smrg#define R_028B28_VGT_STRMOUT_DRAW_OPAQUE_OFFSET                         0x028B28
6343b8e80941Smrg#define R_028B2C_VGT_STRMOUT_DRAW_OPAQUE_BUFFER_FILLED_SIZE             0x028B2C
6344b8e80941Smrg#define R_028B30_VGT_STRMOUT_DRAW_OPAQUE_VERTEX_STRIDE                  0x028B30
6345b8e80941Smrg#define   S_028B30_VERTEX_STRIDE(x)                                   (((unsigned)(x) & 0x1FF) << 0)
6346b8e80941Smrg#define   G_028B30_VERTEX_STRIDE(x)                                   (((x) >> 0) & 0x1FF)
6347b8e80941Smrg#define   C_028B30_VERTEX_STRIDE                                      0xFFFFFE00
6348b8e80941Smrg#define R_028B38_VGT_GS_MAX_VERT_OUT                                    0x028B38
6349b8e80941Smrg#define   S_028B38_MAX_VERT_OUT(x)                                    (((unsigned)(x) & 0x7FF) << 0)
6350b8e80941Smrg#define   G_028B38_MAX_VERT_OUT(x)                                    (((x) >> 0) & 0x7FF)
6351b8e80941Smrg#define   C_028B38_MAX_VERT_OUT                                       0xFFFFF800
6352b8e80941Smrg#define R_028B50_VGT_TESS_DISTRIBUTION                                  0x028B50
6353b8e80941Smrg#define   S_028B50_ACCUM_ISOLINE(x)                                   (((unsigned)(x) & 0xFF) << 0)
6354b8e80941Smrg#define   G_028B50_ACCUM_ISOLINE(x)                                   (((x) >> 0) & 0xFF)
6355b8e80941Smrg#define   C_028B50_ACCUM_ISOLINE                                      0xFFFFFF00
6356b8e80941Smrg#define   S_028B50_ACCUM_TRI(x)                                       (((unsigned)(x) & 0xFF) << 8)
6357b8e80941Smrg#define   G_028B50_ACCUM_TRI(x)                                       (((x) >> 8) & 0xFF)
6358b8e80941Smrg#define   C_028B50_ACCUM_TRI                                          0xFFFF00FF
6359b8e80941Smrg#define   S_028B50_ACCUM_QUAD(x)                                      (((unsigned)(x) & 0xFF) << 16)
6360b8e80941Smrg#define   G_028B50_ACCUM_QUAD(x)                                      (((x) >> 16) & 0xFF)
6361b8e80941Smrg#define   C_028B50_ACCUM_QUAD                                         0xFF00FFFF
6362b8e80941Smrg#define   S_028B50_DONUT_SPLIT(x)                                     (((unsigned)(x) & 0x1F) << 24)
6363b8e80941Smrg#define   G_028B50_DONUT_SPLIT(x)                                     (((x) >> 24) & 0x1F)
6364b8e80941Smrg#define   C_028B50_DONUT_SPLIT                                        0xE0FFFFFF
6365b8e80941Smrg#define   S_028B50_TRAP_SPLIT(x)                                      (((unsigned)(x) & 0x07) << 29)
6366b8e80941Smrg#define   G_028B50_TRAP_SPLIT(x)                                      (((x) >> 29) & 0x07)
6367b8e80941Smrg#define   C_028B50_TRAP_SPLIT                                         0x1FFFFFFF
6368b8e80941Smrg#define R_028B54_VGT_SHADER_STAGES_EN                                   0x028B54
6369b8e80941Smrg#define   S_028B54_LS_EN(x)                                           (((unsigned)(x) & 0x03) << 0)
6370b8e80941Smrg#define   G_028B54_LS_EN(x)                                           (((x) >> 0) & 0x03)
6371b8e80941Smrg#define   C_028B54_LS_EN                                              0xFFFFFFFC
6372b8e80941Smrg#define   S_028B54_HS_EN(x)                                           (((unsigned)(x) & 0x1) << 2)
6373b8e80941Smrg#define   G_028B54_HS_EN(x)                                           (((x) >> 2) & 0x1)
6374b8e80941Smrg#define   C_028B54_HS_EN                                              0xFFFFFFFB
6375b8e80941Smrg#define   S_028B54_ES_EN(x)                                           (((unsigned)(x) & 0x03) << 3)
6376b8e80941Smrg#define   G_028B54_ES_EN(x)                                           (((x) >> 3) & 0x03)
6377b8e80941Smrg#define   C_028B54_ES_EN                                              0xFFFFFFE7
6378b8e80941Smrg#define   S_028B54_GS_EN(x)                                           (((unsigned)(x) & 0x1) << 5)
6379b8e80941Smrg#define   G_028B54_GS_EN(x)                                           (((x) >> 5) & 0x1)
6380b8e80941Smrg#define   C_028B54_GS_EN                                              0xFFFFFFDF
6381b8e80941Smrg#define   S_028B54_VS_EN(x)                                           (((unsigned)(x) & 0x03) << 6)
6382b8e80941Smrg#define   G_028B54_VS_EN(x)                                           (((x) >> 6) & 0x03)
6383b8e80941Smrg#define   C_028B54_VS_EN                                              0xFFFFFF3F
6384b8e80941Smrg#define   S_028B54_DISPATCH_DRAW_EN(x)                                (((unsigned)(x) & 0x1) << 9)
6385b8e80941Smrg#define   G_028B54_DISPATCH_DRAW_EN(x)                                (((x) >> 9) & 0x1)
6386b8e80941Smrg#define   C_028B54_DISPATCH_DRAW_EN                                   0xFFFFFDFF
6387b8e80941Smrg#define   S_028B54_DIS_DEALLOC_ACCUM_0(x)                             (((unsigned)(x) & 0x1) << 10)
6388b8e80941Smrg#define   G_028B54_DIS_DEALLOC_ACCUM_0(x)                             (((x) >> 10) & 0x1)
6389b8e80941Smrg#define   C_028B54_DIS_DEALLOC_ACCUM_0                                0xFFFFFBFF
6390b8e80941Smrg#define   S_028B54_DIS_DEALLOC_ACCUM_1(x)                             (((unsigned)(x) & 0x1) << 11)
6391b8e80941Smrg#define   G_028B54_DIS_DEALLOC_ACCUM_1(x)                             (((x) >> 11) & 0x1)
6392b8e80941Smrg#define   C_028B54_DIS_DEALLOC_ACCUM_1                                0xFFFFF7FF
6393b8e80941Smrg#define   S_028B54_VS_WAVE_ID_EN(x)                                   (((unsigned)(x) & 0x1) << 12)
6394b8e80941Smrg#define   G_028B54_VS_WAVE_ID_EN(x)                                   (((x) >> 12) & 0x1)
6395b8e80941Smrg#define   C_028B54_VS_WAVE_ID_EN                                      0xFFFFEFFF
6396b8e80941Smrg#define   S_028B54_PRIMGEN_EN(x)                                      (((unsigned)(x) & 0x1) << 13)
6397b8e80941Smrg#define   G_028B54_PRIMGEN_EN(x)                                      (((x) >> 13) & 0x1)
6398b8e80941Smrg#define   C_028B54_PRIMGEN_EN                                         0xFFFFDFFF
6399b8e80941Smrg#define   S_028B54_ORDERED_ID_MODE(x)                                 (((unsigned)(x) & 0x1) << 14)
6400b8e80941Smrg#define   G_028B54_ORDERED_ID_MODE(x)                                 (((x) >> 14) & 0x1)
6401b8e80941Smrg#define   C_028B54_ORDERED_ID_MODE                                    0xFFFFBFFF
6402b8e80941Smrg#define   S_028B54_MAX_PRIMGRP_IN_WAVE(x)                             (((unsigned)(x) & 0x0F) << 15)
6403b8e80941Smrg#define   G_028B54_MAX_PRIMGRP_IN_WAVE(x)                             (((x) >> 15) & 0x0F)
6404b8e80941Smrg#define   C_028B54_MAX_PRIMGRP_IN_WAVE                                0xFFF87FFF
6405b8e80941Smrg#define   S_028B54_GS_FAST_LAUNCH(x)                                  (((unsigned)(x) & 0x1) << 19)
6406b8e80941Smrg#define   G_028B54_GS_FAST_LAUNCH(x)                                  (((x) >> 19) & 0x1)
6407b8e80941Smrg#define   C_028B54_GS_FAST_LAUNCH                                     0xFFF7FFFF
6408b8e80941Smrg#define R_028B58_VGT_LS_HS_CONFIG                                       0x028B58
6409b8e80941Smrg#define   S_028B58_NUM_PATCHES(x)                                     (((unsigned)(x) & 0xFF) << 0)
6410b8e80941Smrg#define   G_028B58_NUM_PATCHES(x)                                     (((x) >> 0) & 0xFF)
6411b8e80941Smrg#define   C_028B58_NUM_PATCHES                                        0xFFFFFF00
6412b8e80941Smrg#define   S_028B58_HS_NUM_INPUT_CP(x)                                 (((unsigned)(x) & 0x3F) << 8)
6413b8e80941Smrg#define   G_028B58_HS_NUM_INPUT_CP(x)                                 (((x) >> 8) & 0x3F)
6414b8e80941Smrg#define   C_028B58_HS_NUM_INPUT_CP                                    0xFFFFC0FF
6415b8e80941Smrg#define   S_028B58_HS_NUM_OUTPUT_CP(x)                                (((unsigned)(x) & 0x3F) << 14)
6416b8e80941Smrg#define   G_028B58_HS_NUM_OUTPUT_CP(x)                                (((x) >> 14) & 0x3F)
6417b8e80941Smrg#define   C_028B58_HS_NUM_OUTPUT_CP                                   0xFFF03FFF
6418b8e80941Smrg#define R_028B5C_VGT_GS_VERT_ITEMSIZE                                   0x028B5C
6419b8e80941Smrg#define   S_028B5C_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6420b8e80941Smrg#define   G_028B5C_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6421b8e80941Smrg#define   C_028B5C_ITEMSIZE                                           0xFFFF8000
6422b8e80941Smrg#define R_028B60_VGT_GS_VERT_ITEMSIZE_1                                 0x028B60
6423b8e80941Smrg#define   S_028B60_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6424b8e80941Smrg#define   G_028B60_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6425b8e80941Smrg#define   C_028B60_ITEMSIZE                                           0xFFFF8000
6426b8e80941Smrg#define R_028B64_VGT_GS_VERT_ITEMSIZE_2                                 0x028B64
6427b8e80941Smrg#define   S_028B64_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6428b8e80941Smrg#define   G_028B64_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6429b8e80941Smrg#define   C_028B64_ITEMSIZE                                           0xFFFF8000
6430b8e80941Smrg#define R_028B68_VGT_GS_VERT_ITEMSIZE_3                                 0x028B68
6431b8e80941Smrg#define   S_028B68_ITEMSIZE(x)                                        (((unsigned)(x) & 0x7FFF) << 0)
6432b8e80941Smrg#define   G_028B68_ITEMSIZE(x)                                        (((x) >> 0) & 0x7FFF)
6433b8e80941Smrg#define   C_028B68_ITEMSIZE                                           0xFFFF8000
6434b8e80941Smrg#define R_028B6C_VGT_TF_PARAM                                           0x028B6C
6435b8e80941Smrg#define   S_028B6C_TYPE(x)                                            (((unsigned)(x) & 0x03) << 0)
6436b8e80941Smrg#define   G_028B6C_TYPE(x)                                            (((x) >> 0) & 0x03)
6437b8e80941Smrg#define   C_028B6C_TYPE                                               0xFFFFFFFC
6438b8e80941Smrg#define   S_028B6C_PARTITIONING(x)                                    (((unsigned)(x) & 0x07) << 2)
6439b8e80941Smrg#define   G_028B6C_PARTITIONING(x)                                    (((x) >> 2) & 0x07)
6440b8e80941Smrg#define   C_028B6C_PARTITIONING                                       0xFFFFFFE3
6441b8e80941Smrg#define   S_028B6C_TOPOLOGY(x)                                        (((unsigned)(x) & 0x07) << 5)
6442b8e80941Smrg#define   G_028B6C_TOPOLOGY(x)                                        (((x) >> 5) & 0x07)
6443b8e80941Smrg#define   C_028B6C_TOPOLOGY                                           0xFFFFFF1F
6444b8e80941Smrg#define   S_028B6C_RESERVED_REDUC_AXIS(x)                             (((unsigned)(x) & 0x1) << 8)
6445b8e80941Smrg#define   G_028B6C_RESERVED_REDUC_AXIS(x)                             (((x) >> 8) & 0x1)
6446b8e80941Smrg#define   C_028B6C_RESERVED_REDUC_AXIS                                0xFFFFFEFF
6447b8e80941Smrg#define   S_028B6C_DEPRECATED(x)                                      (((unsigned)(x) & 0x1) << 9)
6448b8e80941Smrg#define   G_028B6C_DEPRECATED(x)                                      (((x) >> 9) & 0x1)
6449b8e80941Smrg#define   C_028B6C_DEPRECATED                                         0xFFFFFDFF
6450b8e80941Smrg#define   S_028B6C_DISABLE_DONUTS(x)                                  (((unsigned)(x) & 0x1) << 14)
6451b8e80941Smrg#define   G_028B6C_DISABLE_DONUTS(x)                                  (((x) >> 14) & 0x1)
6452b8e80941Smrg#define   C_028B6C_DISABLE_DONUTS                                     0xFFFFBFFF
6453b8e80941Smrg#define   S_028B6C_RDREQ_POLICY(x)                                    (((unsigned)(x) & 0x1) << 15)
6454b8e80941Smrg#define   G_028B6C_RDREQ_POLICY(x)                                    (((x) >> 15) & 0x1)
6455b8e80941Smrg#define   C_028B6C_RDREQ_POLICY                                       0xFFFF7FFF
6456b8e80941Smrg#define   S_028B6C_DISTRIBUTION_MODE(x)                               (((unsigned)(x) & 0x03) << 17)
6457b8e80941Smrg#define   G_028B6C_DISTRIBUTION_MODE(x)                               (((x) >> 17) & 0x03)
6458b8e80941Smrg#define   C_028B6C_DISTRIBUTION_MODE                                  0xFFF9FFFF
6459b8e80941Smrg#define R_028B70_DB_ALPHA_TO_MASK                                       0x028B70
6460b8e80941Smrg#define   S_028B70_ALPHA_TO_MASK_ENABLE(x)                            (((unsigned)(x) & 0x1) << 0)
6461b8e80941Smrg#define   G_028B70_ALPHA_TO_MASK_ENABLE(x)                            (((x) >> 0) & 0x1)
6462b8e80941Smrg#define   C_028B70_ALPHA_TO_MASK_ENABLE                               0xFFFFFFFE
6463b8e80941Smrg#define   S_028B70_ALPHA_TO_MASK_OFFSET0(x)                           (((unsigned)(x) & 0x03) << 8)
6464b8e80941Smrg#define   G_028B70_ALPHA_TO_MASK_OFFSET0(x)                           (((x) >> 8) & 0x03)
6465b8e80941Smrg#define   C_028B70_ALPHA_TO_MASK_OFFSET0                              0xFFFFFCFF
6466b8e80941Smrg#define   S_028B70_ALPHA_TO_MASK_OFFSET1(x)                           (((unsigned)(x) & 0x03) << 10)
6467b8e80941Smrg#define   G_028B70_ALPHA_TO_MASK_OFFSET1(x)                           (((x) >> 10) & 0x03)
6468b8e80941Smrg#define   C_028B70_ALPHA_TO_MASK_OFFSET1                              0xFFFFF3FF
6469b8e80941Smrg#define   S_028B70_ALPHA_TO_MASK_OFFSET2(x)                           (((unsigned)(x) & 0x03) << 12)
6470b8e80941Smrg#define   G_028B70_ALPHA_TO_MASK_OFFSET2(x)                           (((x) >> 12) & 0x03)
6471b8e80941Smrg#define   C_028B70_ALPHA_TO_MASK_OFFSET2                              0xFFFFCFFF
6472b8e80941Smrg#define   S_028B70_ALPHA_TO_MASK_OFFSET3(x)                           (((unsigned)(x) & 0x03) << 14)
6473b8e80941Smrg#define   G_028B70_ALPHA_TO_MASK_OFFSET3(x)                           (((x) >> 14) & 0x03)
6474b8e80941Smrg#define   C_028B70_ALPHA_TO_MASK_OFFSET3                              0xFFFF3FFF
6475b8e80941Smrg#define   S_028B70_OFFSET_ROUND(x)                                    (((unsigned)(x) & 0x1) << 16)
6476b8e80941Smrg#define   G_028B70_OFFSET_ROUND(x)                                    (((x) >> 16) & 0x1)
6477b8e80941Smrg#define   C_028B70_OFFSET_ROUND                                       0xFFFEFFFF
6478b8e80941Smrg#define R_028B74_VGT_DISPATCH_DRAW_INDEX                                0x028B74
6479b8e80941Smrg#define R_028B78_PA_SU_POLY_OFFSET_DB_FMT_CNTL                          0x028B78
6480b8e80941Smrg#define   S_028B78_POLY_OFFSET_NEG_NUM_DB_BITS(x)                     (((unsigned)(x) & 0xFF) << 0)
6481b8e80941Smrg#define   G_028B78_POLY_OFFSET_NEG_NUM_DB_BITS(x)                     (((x) >> 0) & 0xFF)
6482b8e80941Smrg#define   C_028B78_POLY_OFFSET_NEG_NUM_DB_BITS                        0xFFFFFF00
6483b8e80941Smrg#define   S_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT(x)                     (((unsigned)(x) & 0x1) << 8)
6484b8e80941Smrg#define   G_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT(x)                     (((x) >> 8) & 0x1)
6485b8e80941Smrg#define   C_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT                        0xFFFFFEFF
6486b8e80941Smrg#define R_028B7C_PA_SU_POLY_OFFSET_CLAMP                                0x028B7C
6487b8e80941Smrg#define R_028B80_PA_SU_POLY_OFFSET_FRONT_SCALE                          0x028B80
6488b8e80941Smrg#define R_028B84_PA_SU_POLY_OFFSET_FRONT_OFFSET                         0x028B84
6489b8e80941Smrg#define R_028B88_PA_SU_POLY_OFFSET_BACK_SCALE                           0x028B88
6490b8e80941Smrg#define R_028B8C_PA_SU_POLY_OFFSET_BACK_OFFSET                          0x028B8C
6491b8e80941Smrg#define R_028B90_VGT_GS_INSTANCE_CNT                                    0x028B90
6492b8e80941Smrg#define   S_028B90_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 0)
6493b8e80941Smrg#define   G_028B90_ENABLE(x)                                          (((x) >> 0) & 0x1)
6494b8e80941Smrg#define   C_028B90_ENABLE                                             0xFFFFFFFE
6495b8e80941Smrg#define   S_028B90_CNT(x)                                             (((unsigned)(x) & 0x7F) << 2)
6496b8e80941Smrg#define   G_028B90_CNT(x)                                             (((x) >> 2) & 0x7F)
6497b8e80941Smrg#define   C_028B90_CNT                                                0xFFFFFE03
6498b8e80941Smrg#define R_028B94_VGT_STRMOUT_CONFIG                                     0x028B94
6499b8e80941Smrg#define   S_028B94_STREAMOUT_0_EN(x)                                  (((unsigned)(x) & 0x1) << 0)
6500b8e80941Smrg#define   G_028B94_STREAMOUT_0_EN(x)                                  (((x) >> 0) & 0x1)
6501b8e80941Smrg#define   C_028B94_STREAMOUT_0_EN                                     0xFFFFFFFE
6502b8e80941Smrg#define   S_028B94_STREAMOUT_1_EN(x)                                  (((unsigned)(x) & 0x1) << 1)
6503b8e80941Smrg#define   G_028B94_STREAMOUT_1_EN(x)                                  (((x) >> 1) & 0x1)
6504b8e80941Smrg#define   C_028B94_STREAMOUT_1_EN                                     0xFFFFFFFD
6505b8e80941Smrg#define   S_028B94_STREAMOUT_2_EN(x)                                  (((unsigned)(x) & 0x1) << 2)
6506b8e80941Smrg#define   G_028B94_STREAMOUT_2_EN(x)                                  (((x) >> 2) & 0x1)
6507b8e80941Smrg#define   C_028B94_STREAMOUT_2_EN                                     0xFFFFFFFB
6508b8e80941Smrg#define   S_028B94_STREAMOUT_3_EN(x)                                  (((unsigned)(x) & 0x1) << 3)
6509b8e80941Smrg#define   G_028B94_STREAMOUT_3_EN(x)                                  (((x) >> 3) & 0x1)
6510b8e80941Smrg#define   C_028B94_STREAMOUT_3_EN                                     0xFFFFFFF7
6511b8e80941Smrg#define   S_028B94_RAST_STREAM(x)                                     (((unsigned)(x) & 0x07) << 4)
6512b8e80941Smrg#define   G_028B94_RAST_STREAM(x)                                     (((x) >> 4) & 0x07)
6513b8e80941Smrg#define   C_028B94_RAST_STREAM                                        0xFFFFFF8F
6514b8e80941Smrg#define   S_028B94_EN_PRIMS_NEEDED_CNT(x)                             (((unsigned)(x) & 0x1) << 7)
6515b8e80941Smrg#define   G_028B94_EN_PRIMS_NEEDED_CNT(x)                             (((x) >> 7) & 0x1)
6516b8e80941Smrg#define   C_028B94_EN_PRIMS_NEEDED_CNT                                0xFFFFFF7F
6517b8e80941Smrg#define   S_028B94_RAST_STREAM_MASK(x)                                (((unsigned)(x) & 0x0F) << 8)
6518b8e80941Smrg#define   G_028B94_RAST_STREAM_MASK(x)                                (((x) >> 8) & 0x0F)
6519b8e80941Smrg#define   C_028B94_RAST_STREAM_MASK                                   0xFFFFF0FF
6520b8e80941Smrg#define   S_028B94_USE_RAST_STREAM_MASK(x)                            (((unsigned)(x) & 0x1) << 31)
6521b8e80941Smrg#define   G_028B94_USE_RAST_STREAM_MASK(x)                            (((x) >> 31) & 0x1)
6522b8e80941Smrg#define   C_028B94_USE_RAST_STREAM_MASK                               0x7FFFFFFF
6523b8e80941Smrg#define R_028B98_VGT_STRMOUT_BUFFER_CONFIG                              0x028B98
6524b8e80941Smrg#define   S_028B98_STREAM_0_BUFFER_EN(x)                              (((unsigned)(x) & 0x0F) << 0)
6525b8e80941Smrg#define   G_028B98_STREAM_0_BUFFER_EN(x)                              (((x) >> 0) & 0x0F)
6526b8e80941Smrg#define   C_028B98_STREAM_0_BUFFER_EN                                 0xFFFFFFF0
6527b8e80941Smrg#define   S_028B98_STREAM_1_BUFFER_EN(x)                              (((unsigned)(x) & 0x0F) << 4)
6528b8e80941Smrg#define   G_028B98_STREAM_1_BUFFER_EN(x)                              (((x) >> 4) & 0x0F)
6529b8e80941Smrg#define   C_028B98_STREAM_1_BUFFER_EN                                 0xFFFFFF0F
6530b8e80941Smrg#define   S_028B98_STREAM_2_BUFFER_EN(x)                              (((unsigned)(x) & 0x0F) << 8)
6531b8e80941Smrg#define   G_028B98_STREAM_2_BUFFER_EN(x)                              (((x) >> 8) & 0x0F)
6532b8e80941Smrg#define   C_028B98_STREAM_2_BUFFER_EN                                 0xFFFFF0FF
6533b8e80941Smrg#define   S_028B98_STREAM_3_BUFFER_EN(x)                              (((unsigned)(x) & 0x0F) << 12)
6534b8e80941Smrg#define   G_028B98_STREAM_3_BUFFER_EN(x)                              (((x) >> 12) & 0x0F)
6535b8e80941Smrg#define   C_028B98_STREAM_3_BUFFER_EN                                 0xFFFF0FFF
6536b8e80941Smrg#define R_028B9C_VGT_DMA_EVENT_INITIATOR                                0x028B9C
6537b8e80941Smrg#define   S_028B9C_EVENT_TYPE(x)                                      (((unsigned)(x) & 0x3F) << 0)
6538b8e80941Smrg#define   G_028B9C_EVENT_TYPE(x)                                      (((x) >> 0) & 0x3F)
6539b8e80941Smrg#define   C_028B9C_EVENT_TYPE                                         0xFFFFFFC0
6540b8e80941Smrg#define   S_028B9C_ADDRESS_HI(x)                                      (((unsigned)(x) & 0x1FFFF) << 10)
6541b8e80941Smrg#define   G_028B9C_ADDRESS_HI(x)                                      (((x) >> 10) & 0x1FFFF)
6542b8e80941Smrg#define   C_028B9C_ADDRESS_HI                                         0xF80003FF
6543b8e80941Smrg#define   S_028B9C_EXTENDED_EVENT(x)                                  (((unsigned)(x) & 0x1) << 27)
6544b8e80941Smrg#define   G_028B9C_EXTENDED_EVENT(x)                                  (((x) >> 27) & 0x1)
6545b8e80941Smrg#define   C_028B9C_EXTENDED_EVENT                                     0xF7FFFFFF
6546b8e80941Smrg#define R_028BD4_PA_SC_CENTROID_PRIORITY_0                              0x028BD4
6547b8e80941Smrg#define   S_028BD4_DISTANCE_0(x)                                      (((unsigned)(x) & 0x0F) << 0)
6548b8e80941Smrg#define   G_028BD4_DISTANCE_0(x)                                      (((x) >> 0) & 0x0F)
6549b8e80941Smrg#define   C_028BD4_DISTANCE_0                                         0xFFFFFFF0
6550b8e80941Smrg#define   S_028BD4_DISTANCE_1(x)                                      (((unsigned)(x) & 0x0F) << 4)
6551b8e80941Smrg#define   G_028BD4_DISTANCE_1(x)                                      (((x) >> 4) & 0x0F)
6552b8e80941Smrg#define   C_028BD4_DISTANCE_1                                         0xFFFFFF0F
6553b8e80941Smrg#define   S_028BD4_DISTANCE_2(x)                                      (((unsigned)(x) & 0x0F) << 8)
6554b8e80941Smrg#define   G_028BD4_DISTANCE_2(x)                                      (((x) >> 8) & 0x0F)
6555b8e80941Smrg#define   C_028BD4_DISTANCE_2                                         0xFFFFF0FF
6556b8e80941Smrg#define   S_028BD4_DISTANCE_3(x)                                      (((unsigned)(x) & 0x0F) << 12)
6557b8e80941Smrg#define   G_028BD4_DISTANCE_3(x)                                      (((x) >> 12) & 0x0F)
6558b8e80941Smrg#define   C_028BD4_DISTANCE_3                                         0xFFFF0FFF
6559b8e80941Smrg#define   S_028BD4_DISTANCE_4(x)                                      (((unsigned)(x) & 0x0F) << 16)
6560b8e80941Smrg#define   G_028BD4_DISTANCE_4(x)                                      (((x) >> 16) & 0x0F)
6561b8e80941Smrg#define   C_028BD4_DISTANCE_4                                         0xFFF0FFFF
6562b8e80941Smrg#define   S_028BD4_DISTANCE_5(x)                                      (((unsigned)(x) & 0x0F) << 20)
6563b8e80941Smrg#define   G_028BD4_DISTANCE_5(x)                                      (((x) >> 20) & 0x0F)
6564b8e80941Smrg#define   C_028BD4_DISTANCE_5                                         0xFF0FFFFF
6565b8e80941Smrg#define   S_028BD4_DISTANCE_6(x)                                      (((unsigned)(x) & 0x0F) << 24)
6566b8e80941Smrg#define   G_028BD4_DISTANCE_6(x)                                      (((x) >> 24) & 0x0F)
6567b8e80941Smrg#define   C_028BD4_DISTANCE_6                                         0xF0FFFFFF
6568b8e80941Smrg#define   S_028BD4_DISTANCE_7(x)                                      (((unsigned)(x) & 0x0F) << 28)
6569b8e80941Smrg#define   G_028BD4_DISTANCE_7(x)                                      (((x) >> 28) & 0x0F)
6570b8e80941Smrg#define   C_028BD4_DISTANCE_7                                         0x0FFFFFFF
6571b8e80941Smrg#define R_028BD8_PA_SC_CENTROID_PRIORITY_1                              0x028BD8
6572b8e80941Smrg#define   S_028BD8_DISTANCE_8(x)                                      (((unsigned)(x) & 0x0F) << 0)
6573b8e80941Smrg#define   G_028BD8_DISTANCE_8(x)                                      (((x) >> 0) & 0x0F)
6574b8e80941Smrg#define   C_028BD8_DISTANCE_8                                         0xFFFFFFF0
6575b8e80941Smrg#define   S_028BD8_DISTANCE_9(x)                                      (((unsigned)(x) & 0x0F) << 4)
6576b8e80941Smrg#define   G_028BD8_DISTANCE_9(x)                                      (((x) >> 4) & 0x0F)
6577b8e80941Smrg#define   C_028BD8_DISTANCE_9                                         0xFFFFFF0F
6578b8e80941Smrg#define   S_028BD8_DISTANCE_10(x)                                     (((unsigned)(x) & 0x0F) << 8)
6579b8e80941Smrg#define   G_028BD8_DISTANCE_10(x)                                     (((x) >> 8) & 0x0F)
6580b8e80941Smrg#define   C_028BD8_DISTANCE_10                                        0xFFFFF0FF
6581b8e80941Smrg#define   S_028BD8_DISTANCE_11(x)                                     (((unsigned)(x) & 0x0F) << 12)
6582b8e80941Smrg#define   G_028BD8_DISTANCE_11(x)                                     (((x) >> 12) & 0x0F)
6583b8e80941Smrg#define   C_028BD8_DISTANCE_11                                        0xFFFF0FFF
6584b8e80941Smrg#define   S_028BD8_DISTANCE_12(x)                                     (((unsigned)(x) & 0x0F) << 16)
6585b8e80941Smrg#define   G_028BD8_DISTANCE_12(x)                                     (((x) >> 16) & 0x0F)
6586b8e80941Smrg#define   C_028BD8_DISTANCE_12                                        0xFFF0FFFF
6587b8e80941Smrg#define   S_028BD8_DISTANCE_13(x)                                     (((unsigned)(x) & 0x0F) << 20)
6588b8e80941Smrg#define   G_028BD8_DISTANCE_13(x)                                     (((x) >> 20) & 0x0F)
6589b8e80941Smrg#define   C_028BD8_DISTANCE_13                                        0xFF0FFFFF
6590b8e80941Smrg#define   S_028BD8_DISTANCE_14(x)                                     (((unsigned)(x) & 0x0F) << 24)
6591b8e80941Smrg#define   G_028BD8_DISTANCE_14(x)                                     (((x) >> 24) & 0x0F)
6592b8e80941Smrg#define   C_028BD8_DISTANCE_14                                        0xF0FFFFFF
6593b8e80941Smrg#define   S_028BD8_DISTANCE_15(x)                                     (((unsigned)(x) & 0x0F) << 28)
6594b8e80941Smrg#define   G_028BD8_DISTANCE_15(x)                                     (((x) >> 28) & 0x0F)
6595b8e80941Smrg#define   C_028BD8_DISTANCE_15                                        0x0FFFFFFF
6596b8e80941Smrg#define R_028BDC_PA_SC_LINE_CNTL                                        0x028BDC
6597b8e80941Smrg#define   S_028BDC_EXPAND_LINE_WIDTH(x)                               (((unsigned)(x) & 0x1) << 9)
6598b8e80941Smrg#define   G_028BDC_EXPAND_LINE_WIDTH(x)                               (((x) >> 9) & 0x1)
6599b8e80941Smrg#define   C_028BDC_EXPAND_LINE_WIDTH                                  0xFFFFFDFF
6600b8e80941Smrg#define   S_028BDC_LAST_PIXEL(x)                                      (((unsigned)(x) & 0x1) << 10)
6601b8e80941Smrg#define   G_028BDC_LAST_PIXEL(x)                                      (((x) >> 10) & 0x1)
6602b8e80941Smrg#define   C_028BDC_LAST_PIXEL                                         0xFFFFFBFF
6603b8e80941Smrg#define   S_028BDC_PERPENDICULAR_ENDCAP_ENA(x)                        (((unsigned)(x) & 0x1) << 11)
6604b8e80941Smrg#define   G_028BDC_PERPENDICULAR_ENDCAP_ENA(x)                        (((x) >> 11) & 0x1)
6605b8e80941Smrg#define   C_028BDC_PERPENDICULAR_ENDCAP_ENA                           0xFFFFF7FF
6606b8e80941Smrg#define   S_028BDC_DX10_DIAMOND_TEST_ENA(x)                           (((unsigned)(x) & 0x1) << 12)
6607b8e80941Smrg#define   G_028BDC_DX10_DIAMOND_TEST_ENA(x)                           (((x) >> 12) & 0x1)
6608b8e80941Smrg#define   C_028BDC_DX10_DIAMOND_TEST_ENA                              0xFFFFEFFF
6609b8e80941Smrg#define R_028BE0_PA_SC_AA_CONFIG                                        0x028BE0
6610b8e80941Smrg#define   S_028BE0_MSAA_NUM_SAMPLES(x)                                (((unsigned)(x) & 0x07) << 0)
6611b8e80941Smrg#define   G_028BE0_MSAA_NUM_SAMPLES(x)                                (((x) >> 0) & 0x07)
6612b8e80941Smrg#define   C_028BE0_MSAA_NUM_SAMPLES                                   0xFFFFFFF8
6613b8e80941Smrg#define   S_028BE0_AA_MASK_CENTROID_DTMN(x)                           (((unsigned)(x) & 0x1) << 4)
6614b8e80941Smrg#define   G_028BE0_AA_MASK_CENTROID_DTMN(x)                           (((x) >> 4) & 0x1)
6615b8e80941Smrg#define   C_028BE0_AA_MASK_CENTROID_DTMN                              0xFFFFFFEF
6616b8e80941Smrg#define   S_028BE0_MAX_SAMPLE_DIST(x)                                 (((unsigned)(x) & 0x0F) << 13)
6617b8e80941Smrg#define   G_028BE0_MAX_SAMPLE_DIST(x)                                 (((x) >> 13) & 0x0F)
6618b8e80941Smrg#define   C_028BE0_MAX_SAMPLE_DIST                                    0xFFFE1FFF
6619b8e80941Smrg#define   S_028BE0_MSAA_EXPOSED_SAMPLES(x)                            (((unsigned)(x) & 0x07) << 20)
6620b8e80941Smrg#define   G_028BE0_MSAA_EXPOSED_SAMPLES(x)                            (((x) >> 20) & 0x07)
6621b8e80941Smrg#define   C_028BE0_MSAA_EXPOSED_SAMPLES                               0xFF8FFFFF
6622b8e80941Smrg#define   S_028BE0_DETAIL_TO_EXPOSED_MODE(x)                          (((unsigned)(x) & 0x03) << 24)
6623b8e80941Smrg#define   G_028BE0_DETAIL_TO_EXPOSED_MODE(x)                          (((x) >> 24) & 0x03)
6624b8e80941Smrg#define   C_028BE0_DETAIL_TO_EXPOSED_MODE                             0xFCFFFFFF
6625b8e80941Smrg#define   S_028BE0_COVERAGE_TO_SHADER_SELECT(x)                       (((unsigned)(x) & 0x03) << 26)
6626b8e80941Smrg#define   G_028BE0_COVERAGE_TO_SHADER_SELECT(x)                       (((x) >> 26) & 0x03)
6627b8e80941Smrg#define   C_028BE0_COVERAGE_TO_SHADER_SELECT                          0xF3FFFFFF
6628b8e80941Smrg#define R_028BE4_PA_SU_VTX_CNTL                                         0x028BE4
6629b8e80941Smrg#define   S_028BE4_PIX_CENTER(x)                                      (((unsigned)(x) & 0x1) << 0)
6630b8e80941Smrg#define   G_028BE4_PIX_CENTER(x)                                      (((x) >> 0) & 0x1)
6631b8e80941Smrg#define   C_028BE4_PIX_CENTER                                         0xFFFFFFFE
6632b8e80941Smrg#define   S_028BE4_ROUND_MODE(x)                                      (((unsigned)(x) & 0x03) << 1)
6633b8e80941Smrg#define   G_028BE4_ROUND_MODE(x)                                      (((x) >> 1) & 0x03)
6634b8e80941Smrg#define   C_028BE4_ROUND_MODE                                         0xFFFFFFF9
6635b8e80941Smrg#define   S_028BE4_QUANT_MODE(x)                                      (((unsigned)(x) & 0x07) << 3)
6636b8e80941Smrg#define   G_028BE4_QUANT_MODE(x)                                      (((x) >> 3) & 0x07)
6637b8e80941Smrg#define   C_028BE4_QUANT_MODE                                         0xFFFFFFC7
6638b8e80941Smrg#define R_028BE8_PA_CL_GB_VERT_CLIP_ADJ                                 0x028BE8
6639b8e80941Smrg#define R_028BEC_PA_CL_GB_VERT_DISC_ADJ                                 0x028BEC
6640b8e80941Smrg#define R_028BF0_PA_CL_GB_HORZ_CLIP_ADJ                                 0x028BF0
6641b8e80941Smrg#define R_028BF4_PA_CL_GB_HORZ_DISC_ADJ                                 0x028BF4
6642b8e80941Smrg#define R_028BF8_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0                      0x028BF8
6643b8e80941Smrg#define   S_028BF8_S0_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6644b8e80941Smrg#define   G_028BF8_S0_X(x)                                            (((x) >> 0) & 0x0F)
6645b8e80941Smrg#define   C_028BF8_S0_X                                               0xFFFFFFF0
6646b8e80941Smrg#define   S_028BF8_S0_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6647b8e80941Smrg#define   G_028BF8_S0_Y(x)                                            (((x) >> 4) & 0x0F)
6648b8e80941Smrg#define   C_028BF8_S0_Y                                               0xFFFFFF0F
6649b8e80941Smrg#define   S_028BF8_S1_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6650b8e80941Smrg#define   G_028BF8_S1_X(x)                                            (((x) >> 8) & 0x0F)
6651b8e80941Smrg#define   C_028BF8_S1_X                                               0xFFFFF0FF
6652b8e80941Smrg#define   S_028BF8_S1_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6653b8e80941Smrg#define   G_028BF8_S1_Y(x)                                            (((x) >> 12) & 0x0F)
6654b8e80941Smrg#define   C_028BF8_S1_Y                                               0xFFFF0FFF
6655b8e80941Smrg#define   S_028BF8_S2_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6656b8e80941Smrg#define   G_028BF8_S2_X(x)                                            (((x) >> 16) & 0x0F)
6657b8e80941Smrg#define   C_028BF8_S2_X                                               0xFFF0FFFF
6658b8e80941Smrg#define   S_028BF8_S2_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6659b8e80941Smrg#define   G_028BF8_S2_Y(x)                                            (((x) >> 20) & 0x0F)
6660b8e80941Smrg#define   C_028BF8_S2_Y                                               0xFF0FFFFF
6661b8e80941Smrg#define   S_028BF8_S3_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6662b8e80941Smrg#define   G_028BF8_S3_X(x)                                            (((x) >> 24) & 0x0F)
6663b8e80941Smrg#define   C_028BF8_S3_X                                               0xF0FFFFFF
6664b8e80941Smrg#define   S_028BF8_S3_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6665b8e80941Smrg#define   G_028BF8_S3_Y(x)                                            (((x) >> 28) & 0x0F)
6666b8e80941Smrg#define   C_028BF8_S3_Y                                               0x0FFFFFFF
6667b8e80941Smrg#define R_028BFC_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_1                      0x028BFC
6668b8e80941Smrg#define   S_028BFC_S4_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6669b8e80941Smrg#define   G_028BFC_S4_X(x)                                            (((x) >> 0) & 0x0F)
6670b8e80941Smrg#define   C_028BFC_S4_X                                               0xFFFFFFF0
6671b8e80941Smrg#define   S_028BFC_S4_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6672b8e80941Smrg#define   G_028BFC_S4_Y(x)                                            (((x) >> 4) & 0x0F)
6673b8e80941Smrg#define   C_028BFC_S4_Y                                               0xFFFFFF0F
6674b8e80941Smrg#define   S_028BFC_S5_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6675b8e80941Smrg#define   G_028BFC_S5_X(x)                                            (((x) >> 8) & 0x0F)
6676b8e80941Smrg#define   C_028BFC_S5_X                                               0xFFFFF0FF
6677b8e80941Smrg#define   S_028BFC_S5_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6678b8e80941Smrg#define   G_028BFC_S5_Y(x)                                            (((x) >> 12) & 0x0F)
6679b8e80941Smrg#define   C_028BFC_S5_Y                                               0xFFFF0FFF
6680b8e80941Smrg#define   S_028BFC_S6_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6681b8e80941Smrg#define   G_028BFC_S6_X(x)                                            (((x) >> 16) & 0x0F)
6682b8e80941Smrg#define   C_028BFC_S6_X                                               0xFFF0FFFF
6683b8e80941Smrg#define   S_028BFC_S6_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6684b8e80941Smrg#define   G_028BFC_S6_Y(x)                                            (((x) >> 20) & 0x0F)
6685b8e80941Smrg#define   C_028BFC_S6_Y                                               0xFF0FFFFF
6686b8e80941Smrg#define   S_028BFC_S7_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6687b8e80941Smrg#define   G_028BFC_S7_X(x)                                            (((x) >> 24) & 0x0F)
6688b8e80941Smrg#define   C_028BFC_S7_X                                               0xF0FFFFFF
6689b8e80941Smrg#define   S_028BFC_S7_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6690b8e80941Smrg#define   G_028BFC_S7_Y(x)                                            (((x) >> 28) & 0x0F)
6691b8e80941Smrg#define   C_028BFC_S7_Y                                               0x0FFFFFFF
6692b8e80941Smrg#define R_028C00_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_2                      0x028C00
6693b8e80941Smrg#define   S_028C00_S8_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6694b8e80941Smrg#define   G_028C00_S8_X(x)                                            (((x) >> 0) & 0x0F)
6695b8e80941Smrg#define   C_028C00_S8_X                                               0xFFFFFFF0
6696b8e80941Smrg#define   S_028C00_S8_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6697b8e80941Smrg#define   G_028C00_S8_Y(x)                                            (((x) >> 4) & 0x0F)
6698b8e80941Smrg#define   C_028C00_S8_Y                                               0xFFFFFF0F
6699b8e80941Smrg#define   S_028C00_S9_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6700b8e80941Smrg#define   G_028C00_S9_X(x)                                            (((x) >> 8) & 0x0F)
6701b8e80941Smrg#define   C_028C00_S9_X                                               0xFFFFF0FF
6702b8e80941Smrg#define   S_028C00_S9_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6703b8e80941Smrg#define   G_028C00_S9_Y(x)                                            (((x) >> 12) & 0x0F)
6704b8e80941Smrg#define   C_028C00_S9_Y                                               0xFFFF0FFF
6705b8e80941Smrg#define   S_028C00_S10_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6706b8e80941Smrg#define   G_028C00_S10_X(x)                                           (((x) >> 16) & 0x0F)
6707b8e80941Smrg#define   C_028C00_S10_X                                              0xFFF0FFFF
6708b8e80941Smrg#define   S_028C00_S10_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6709b8e80941Smrg#define   G_028C00_S10_Y(x)                                           (((x) >> 20) & 0x0F)
6710b8e80941Smrg#define   C_028C00_S10_Y                                              0xFF0FFFFF
6711b8e80941Smrg#define   S_028C00_S11_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6712b8e80941Smrg#define   G_028C00_S11_X(x)                                           (((x) >> 24) & 0x0F)
6713b8e80941Smrg#define   C_028C00_S11_X                                              0xF0FFFFFF
6714b8e80941Smrg#define   S_028C00_S11_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6715b8e80941Smrg#define   G_028C00_S11_Y(x)                                           (((x) >> 28) & 0x0F)
6716b8e80941Smrg#define   C_028C00_S11_Y                                              0x0FFFFFFF
6717b8e80941Smrg#define R_028C04_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_3                      0x028C04
6718b8e80941Smrg#define   S_028C04_S12_X(x)                                           (((unsigned)(x) & 0x0F) << 0)
6719b8e80941Smrg#define   G_028C04_S12_X(x)                                           (((x) >> 0) & 0x0F)
6720b8e80941Smrg#define   C_028C04_S12_X                                              0xFFFFFFF0
6721b8e80941Smrg#define   S_028C04_S12_Y(x)                                           (((unsigned)(x) & 0x0F) << 4)
6722b8e80941Smrg#define   G_028C04_S12_Y(x)                                           (((x) >> 4) & 0x0F)
6723b8e80941Smrg#define   C_028C04_S12_Y                                              0xFFFFFF0F
6724b8e80941Smrg#define   S_028C04_S13_X(x)                                           (((unsigned)(x) & 0x0F) << 8)
6725b8e80941Smrg#define   G_028C04_S13_X(x)                                           (((x) >> 8) & 0x0F)
6726b8e80941Smrg#define   C_028C04_S13_X                                              0xFFFFF0FF
6727b8e80941Smrg#define   S_028C04_S13_Y(x)                                           (((unsigned)(x) & 0x0F) << 12)
6728b8e80941Smrg#define   G_028C04_S13_Y(x)                                           (((x) >> 12) & 0x0F)
6729b8e80941Smrg#define   C_028C04_S13_Y                                              0xFFFF0FFF
6730b8e80941Smrg#define   S_028C04_S14_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6731b8e80941Smrg#define   G_028C04_S14_X(x)                                           (((x) >> 16) & 0x0F)
6732b8e80941Smrg#define   C_028C04_S14_X                                              0xFFF0FFFF
6733b8e80941Smrg#define   S_028C04_S14_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6734b8e80941Smrg#define   G_028C04_S14_Y(x)                                           (((x) >> 20) & 0x0F)
6735b8e80941Smrg#define   C_028C04_S14_Y                                              0xFF0FFFFF
6736b8e80941Smrg#define   S_028C04_S15_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6737b8e80941Smrg#define   G_028C04_S15_X(x)                                           (((x) >> 24) & 0x0F)
6738b8e80941Smrg#define   C_028C04_S15_X                                              0xF0FFFFFF
6739b8e80941Smrg#define   S_028C04_S15_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6740b8e80941Smrg#define   G_028C04_S15_Y(x)                                           (((x) >> 28) & 0x0F)
6741b8e80941Smrg#define   C_028C04_S15_Y                                              0x0FFFFFFF
6742b8e80941Smrg#define R_028C08_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_0                      0x028C08
6743b8e80941Smrg#define   S_028C08_S0_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6744b8e80941Smrg#define   G_028C08_S0_X(x)                                            (((x) >> 0) & 0x0F)
6745b8e80941Smrg#define   C_028C08_S0_X                                               0xFFFFFFF0
6746b8e80941Smrg#define   S_028C08_S0_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6747b8e80941Smrg#define   G_028C08_S0_Y(x)                                            (((x) >> 4) & 0x0F)
6748b8e80941Smrg#define   C_028C08_S0_Y                                               0xFFFFFF0F
6749b8e80941Smrg#define   S_028C08_S1_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6750b8e80941Smrg#define   G_028C08_S1_X(x)                                            (((x) >> 8) & 0x0F)
6751b8e80941Smrg#define   C_028C08_S1_X                                               0xFFFFF0FF
6752b8e80941Smrg#define   S_028C08_S1_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6753b8e80941Smrg#define   G_028C08_S1_Y(x)                                            (((x) >> 12) & 0x0F)
6754b8e80941Smrg#define   C_028C08_S1_Y                                               0xFFFF0FFF
6755b8e80941Smrg#define   S_028C08_S2_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6756b8e80941Smrg#define   G_028C08_S2_X(x)                                            (((x) >> 16) & 0x0F)
6757b8e80941Smrg#define   C_028C08_S2_X                                               0xFFF0FFFF
6758b8e80941Smrg#define   S_028C08_S2_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6759b8e80941Smrg#define   G_028C08_S2_Y(x)                                            (((x) >> 20) & 0x0F)
6760b8e80941Smrg#define   C_028C08_S2_Y                                               0xFF0FFFFF
6761b8e80941Smrg#define   S_028C08_S3_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6762b8e80941Smrg#define   G_028C08_S3_X(x)                                            (((x) >> 24) & 0x0F)
6763b8e80941Smrg#define   C_028C08_S3_X                                               0xF0FFFFFF
6764b8e80941Smrg#define   S_028C08_S3_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6765b8e80941Smrg#define   G_028C08_S3_Y(x)                                            (((x) >> 28) & 0x0F)
6766b8e80941Smrg#define   C_028C08_S3_Y                                               0x0FFFFFFF
6767b8e80941Smrg#define R_028C0C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_1                      0x028C0C
6768b8e80941Smrg#define   S_028C0C_S4_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6769b8e80941Smrg#define   G_028C0C_S4_X(x)                                            (((x) >> 0) & 0x0F)
6770b8e80941Smrg#define   C_028C0C_S4_X                                               0xFFFFFFF0
6771b8e80941Smrg#define   S_028C0C_S4_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6772b8e80941Smrg#define   G_028C0C_S4_Y(x)                                            (((x) >> 4) & 0x0F)
6773b8e80941Smrg#define   C_028C0C_S4_Y                                               0xFFFFFF0F
6774b8e80941Smrg#define   S_028C0C_S5_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6775b8e80941Smrg#define   G_028C0C_S5_X(x)                                            (((x) >> 8) & 0x0F)
6776b8e80941Smrg#define   C_028C0C_S5_X                                               0xFFFFF0FF
6777b8e80941Smrg#define   S_028C0C_S5_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6778b8e80941Smrg#define   G_028C0C_S5_Y(x)                                            (((x) >> 12) & 0x0F)
6779b8e80941Smrg#define   C_028C0C_S5_Y                                               0xFFFF0FFF
6780b8e80941Smrg#define   S_028C0C_S6_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6781b8e80941Smrg#define   G_028C0C_S6_X(x)                                            (((x) >> 16) & 0x0F)
6782b8e80941Smrg#define   C_028C0C_S6_X                                               0xFFF0FFFF
6783b8e80941Smrg#define   S_028C0C_S6_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6784b8e80941Smrg#define   G_028C0C_S6_Y(x)                                            (((x) >> 20) & 0x0F)
6785b8e80941Smrg#define   C_028C0C_S6_Y                                               0xFF0FFFFF
6786b8e80941Smrg#define   S_028C0C_S7_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6787b8e80941Smrg#define   G_028C0C_S7_X(x)                                            (((x) >> 24) & 0x0F)
6788b8e80941Smrg#define   C_028C0C_S7_X                                               0xF0FFFFFF
6789b8e80941Smrg#define   S_028C0C_S7_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6790b8e80941Smrg#define   G_028C0C_S7_Y(x)                                            (((x) >> 28) & 0x0F)
6791b8e80941Smrg#define   C_028C0C_S7_Y                                               0x0FFFFFFF
6792b8e80941Smrg#define R_028C10_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_2                      0x028C10
6793b8e80941Smrg#define   S_028C10_S8_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6794b8e80941Smrg#define   G_028C10_S8_X(x)                                            (((x) >> 0) & 0x0F)
6795b8e80941Smrg#define   C_028C10_S8_X                                               0xFFFFFFF0
6796b8e80941Smrg#define   S_028C10_S8_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6797b8e80941Smrg#define   G_028C10_S8_Y(x)                                            (((x) >> 4) & 0x0F)
6798b8e80941Smrg#define   C_028C10_S8_Y                                               0xFFFFFF0F
6799b8e80941Smrg#define   S_028C10_S9_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6800b8e80941Smrg#define   G_028C10_S9_X(x)                                            (((x) >> 8) & 0x0F)
6801b8e80941Smrg#define   C_028C10_S9_X                                               0xFFFFF0FF
6802b8e80941Smrg#define   S_028C10_S9_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6803b8e80941Smrg#define   G_028C10_S9_Y(x)                                            (((x) >> 12) & 0x0F)
6804b8e80941Smrg#define   C_028C10_S9_Y                                               0xFFFF0FFF
6805b8e80941Smrg#define   S_028C10_S10_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6806b8e80941Smrg#define   G_028C10_S10_X(x)                                           (((x) >> 16) & 0x0F)
6807b8e80941Smrg#define   C_028C10_S10_X                                              0xFFF0FFFF
6808b8e80941Smrg#define   S_028C10_S10_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6809b8e80941Smrg#define   G_028C10_S10_Y(x)                                           (((x) >> 20) & 0x0F)
6810b8e80941Smrg#define   C_028C10_S10_Y                                              0xFF0FFFFF
6811b8e80941Smrg#define   S_028C10_S11_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6812b8e80941Smrg#define   G_028C10_S11_X(x)                                           (((x) >> 24) & 0x0F)
6813b8e80941Smrg#define   C_028C10_S11_X                                              0xF0FFFFFF
6814b8e80941Smrg#define   S_028C10_S11_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6815b8e80941Smrg#define   G_028C10_S11_Y(x)                                           (((x) >> 28) & 0x0F)
6816b8e80941Smrg#define   C_028C10_S11_Y                                              0x0FFFFFFF
6817b8e80941Smrg#define R_028C14_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_3                      0x028C14
6818b8e80941Smrg#define   S_028C14_S12_X(x)                                           (((unsigned)(x) & 0x0F) << 0)
6819b8e80941Smrg#define   G_028C14_S12_X(x)                                           (((x) >> 0) & 0x0F)
6820b8e80941Smrg#define   C_028C14_S12_X                                              0xFFFFFFF0
6821b8e80941Smrg#define   S_028C14_S12_Y(x)                                           (((unsigned)(x) & 0x0F) << 4)
6822b8e80941Smrg#define   G_028C14_S12_Y(x)                                           (((x) >> 4) & 0x0F)
6823b8e80941Smrg#define   C_028C14_S12_Y                                              0xFFFFFF0F
6824b8e80941Smrg#define   S_028C14_S13_X(x)                                           (((unsigned)(x) & 0x0F) << 8)
6825b8e80941Smrg#define   G_028C14_S13_X(x)                                           (((x) >> 8) & 0x0F)
6826b8e80941Smrg#define   C_028C14_S13_X                                              0xFFFFF0FF
6827b8e80941Smrg#define   S_028C14_S13_Y(x)                                           (((unsigned)(x) & 0x0F) << 12)
6828b8e80941Smrg#define   G_028C14_S13_Y(x)                                           (((x) >> 12) & 0x0F)
6829b8e80941Smrg#define   C_028C14_S13_Y                                              0xFFFF0FFF
6830b8e80941Smrg#define   S_028C14_S14_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6831b8e80941Smrg#define   G_028C14_S14_X(x)                                           (((x) >> 16) & 0x0F)
6832b8e80941Smrg#define   C_028C14_S14_X                                              0xFFF0FFFF
6833b8e80941Smrg#define   S_028C14_S14_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6834b8e80941Smrg#define   G_028C14_S14_Y(x)                                           (((x) >> 20) & 0x0F)
6835b8e80941Smrg#define   C_028C14_S14_Y                                              0xFF0FFFFF
6836b8e80941Smrg#define   S_028C14_S15_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6837b8e80941Smrg#define   G_028C14_S15_X(x)                                           (((x) >> 24) & 0x0F)
6838b8e80941Smrg#define   C_028C14_S15_X                                              0xF0FFFFFF
6839b8e80941Smrg#define   S_028C14_S15_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6840b8e80941Smrg#define   G_028C14_S15_Y(x)                                           (((x) >> 28) & 0x0F)
6841b8e80941Smrg#define   C_028C14_S15_Y                                              0x0FFFFFFF
6842b8e80941Smrg#define R_028C18_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_0                      0x028C18
6843b8e80941Smrg#define   S_028C18_S0_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6844b8e80941Smrg#define   G_028C18_S0_X(x)                                            (((x) >> 0) & 0x0F)
6845b8e80941Smrg#define   C_028C18_S0_X                                               0xFFFFFFF0
6846b8e80941Smrg#define   S_028C18_S0_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6847b8e80941Smrg#define   G_028C18_S0_Y(x)                                            (((x) >> 4) & 0x0F)
6848b8e80941Smrg#define   C_028C18_S0_Y                                               0xFFFFFF0F
6849b8e80941Smrg#define   S_028C18_S1_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6850b8e80941Smrg#define   G_028C18_S1_X(x)                                            (((x) >> 8) & 0x0F)
6851b8e80941Smrg#define   C_028C18_S1_X                                               0xFFFFF0FF
6852b8e80941Smrg#define   S_028C18_S1_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6853b8e80941Smrg#define   G_028C18_S1_Y(x)                                            (((x) >> 12) & 0x0F)
6854b8e80941Smrg#define   C_028C18_S1_Y                                               0xFFFF0FFF
6855b8e80941Smrg#define   S_028C18_S2_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6856b8e80941Smrg#define   G_028C18_S2_X(x)                                            (((x) >> 16) & 0x0F)
6857b8e80941Smrg#define   C_028C18_S2_X                                               0xFFF0FFFF
6858b8e80941Smrg#define   S_028C18_S2_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6859b8e80941Smrg#define   G_028C18_S2_Y(x)                                            (((x) >> 20) & 0x0F)
6860b8e80941Smrg#define   C_028C18_S2_Y                                               0xFF0FFFFF
6861b8e80941Smrg#define   S_028C18_S3_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6862b8e80941Smrg#define   G_028C18_S3_X(x)                                            (((x) >> 24) & 0x0F)
6863b8e80941Smrg#define   C_028C18_S3_X                                               0xF0FFFFFF
6864b8e80941Smrg#define   S_028C18_S3_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6865b8e80941Smrg#define   G_028C18_S3_Y(x)                                            (((x) >> 28) & 0x0F)
6866b8e80941Smrg#define   C_028C18_S3_Y                                               0x0FFFFFFF
6867b8e80941Smrg#define R_028C1C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_1                      0x028C1C
6868b8e80941Smrg#define   S_028C1C_S4_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6869b8e80941Smrg#define   G_028C1C_S4_X(x)                                            (((x) >> 0) & 0x0F)
6870b8e80941Smrg#define   C_028C1C_S4_X                                               0xFFFFFFF0
6871b8e80941Smrg#define   S_028C1C_S4_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6872b8e80941Smrg#define   G_028C1C_S4_Y(x)                                            (((x) >> 4) & 0x0F)
6873b8e80941Smrg#define   C_028C1C_S4_Y                                               0xFFFFFF0F
6874b8e80941Smrg#define   S_028C1C_S5_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6875b8e80941Smrg#define   G_028C1C_S5_X(x)                                            (((x) >> 8) & 0x0F)
6876b8e80941Smrg#define   C_028C1C_S5_X                                               0xFFFFF0FF
6877b8e80941Smrg#define   S_028C1C_S5_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6878b8e80941Smrg#define   G_028C1C_S5_Y(x)                                            (((x) >> 12) & 0x0F)
6879b8e80941Smrg#define   C_028C1C_S5_Y                                               0xFFFF0FFF
6880b8e80941Smrg#define   S_028C1C_S6_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6881b8e80941Smrg#define   G_028C1C_S6_X(x)                                            (((x) >> 16) & 0x0F)
6882b8e80941Smrg#define   C_028C1C_S6_X                                               0xFFF0FFFF
6883b8e80941Smrg#define   S_028C1C_S6_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6884b8e80941Smrg#define   G_028C1C_S6_Y(x)                                            (((x) >> 20) & 0x0F)
6885b8e80941Smrg#define   C_028C1C_S6_Y                                               0xFF0FFFFF
6886b8e80941Smrg#define   S_028C1C_S7_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6887b8e80941Smrg#define   G_028C1C_S7_X(x)                                            (((x) >> 24) & 0x0F)
6888b8e80941Smrg#define   C_028C1C_S7_X                                               0xF0FFFFFF
6889b8e80941Smrg#define   S_028C1C_S7_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6890b8e80941Smrg#define   G_028C1C_S7_Y(x)                                            (((x) >> 28) & 0x0F)
6891b8e80941Smrg#define   C_028C1C_S7_Y                                               0x0FFFFFFF
6892b8e80941Smrg#define R_028C20_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_2                      0x028C20
6893b8e80941Smrg#define   S_028C20_S8_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6894b8e80941Smrg#define   G_028C20_S8_X(x)                                            (((x) >> 0) & 0x0F)
6895b8e80941Smrg#define   C_028C20_S8_X                                               0xFFFFFFF0
6896b8e80941Smrg#define   S_028C20_S8_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6897b8e80941Smrg#define   G_028C20_S8_Y(x)                                            (((x) >> 4) & 0x0F)
6898b8e80941Smrg#define   C_028C20_S8_Y                                               0xFFFFFF0F
6899b8e80941Smrg#define   S_028C20_S9_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6900b8e80941Smrg#define   G_028C20_S9_X(x)                                            (((x) >> 8) & 0x0F)
6901b8e80941Smrg#define   C_028C20_S9_X                                               0xFFFFF0FF
6902b8e80941Smrg#define   S_028C20_S9_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6903b8e80941Smrg#define   G_028C20_S9_Y(x)                                            (((x) >> 12) & 0x0F)
6904b8e80941Smrg#define   C_028C20_S9_Y                                               0xFFFF0FFF
6905b8e80941Smrg#define   S_028C20_S10_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6906b8e80941Smrg#define   G_028C20_S10_X(x)                                           (((x) >> 16) & 0x0F)
6907b8e80941Smrg#define   C_028C20_S10_X                                              0xFFF0FFFF
6908b8e80941Smrg#define   S_028C20_S10_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6909b8e80941Smrg#define   G_028C20_S10_Y(x)                                           (((x) >> 20) & 0x0F)
6910b8e80941Smrg#define   C_028C20_S10_Y                                              0xFF0FFFFF
6911b8e80941Smrg#define   S_028C20_S11_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6912b8e80941Smrg#define   G_028C20_S11_X(x)                                           (((x) >> 24) & 0x0F)
6913b8e80941Smrg#define   C_028C20_S11_X                                              0xF0FFFFFF
6914b8e80941Smrg#define   S_028C20_S11_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6915b8e80941Smrg#define   G_028C20_S11_Y(x)                                           (((x) >> 28) & 0x0F)
6916b8e80941Smrg#define   C_028C20_S11_Y                                              0x0FFFFFFF
6917b8e80941Smrg#define R_028C24_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_3                      0x028C24
6918b8e80941Smrg#define   S_028C24_S12_X(x)                                           (((unsigned)(x) & 0x0F) << 0)
6919b8e80941Smrg#define   G_028C24_S12_X(x)                                           (((x) >> 0) & 0x0F)
6920b8e80941Smrg#define   C_028C24_S12_X                                              0xFFFFFFF0
6921b8e80941Smrg#define   S_028C24_S12_Y(x)                                           (((unsigned)(x) & 0x0F) << 4)
6922b8e80941Smrg#define   G_028C24_S12_Y(x)                                           (((x) >> 4) & 0x0F)
6923b8e80941Smrg#define   C_028C24_S12_Y                                              0xFFFFFF0F
6924b8e80941Smrg#define   S_028C24_S13_X(x)                                           (((unsigned)(x) & 0x0F) << 8)
6925b8e80941Smrg#define   G_028C24_S13_X(x)                                           (((x) >> 8) & 0x0F)
6926b8e80941Smrg#define   C_028C24_S13_X                                              0xFFFFF0FF
6927b8e80941Smrg#define   S_028C24_S13_Y(x)                                           (((unsigned)(x) & 0x0F) << 12)
6928b8e80941Smrg#define   G_028C24_S13_Y(x)                                           (((x) >> 12) & 0x0F)
6929b8e80941Smrg#define   C_028C24_S13_Y                                              0xFFFF0FFF
6930b8e80941Smrg#define   S_028C24_S14_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
6931b8e80941Smrg#define   G_028C24_S14_X(x)                                           (((x) >> 16) & 0x0F)
6932b8e80941Smrg#define   C_028C24_S14_X                                              0xFFF0FFFF
6933b8e80941Smrg#define   S_028C24_S14_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
6934b8e80941Smrg#define   G_028C24_S14_Y(x)                                           (((x) >> 20) & 0x0F)
6935b8e80941Smrg#define   C_028C24_S14_Y                                              0xFF0FFFFF
6936b8e80941Smrg#define   S_028C24_S15_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
6937b8e80941Smrg#define   G_028C24_S15_X(x)                                           (((x) >> 24) & 0x0F)
6938b8e80941Smrg#define   C_028C24_S15_X                                              0xF0FFFFFF
6939b8e80941Smrg#define   S_028C24_S15_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
6940b8e80941Smrg#define   G_028C24_S15_Y(x)                                           (((x) >> 28) & 0x0F)
6941b8e80941Smrg#define   C_028C24_S15_Y                                              0x0FFFFFFF
6942b8e80941Smrg#define R_028C28_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_0                      0x028C28
6943b8e80941Smrg#define   S_028C28_S0_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6944b8e80941Smrg#define   G_028C28_S0_X(x)                                            (((x) >> 0) & 0x0F)
6945b8e80941Smrg#define   C_028C28_S0_X                                               0xFFFFFFF0
6946b8e80941Smrg#define   S_028C28_S0_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6947b8e80941Smrg#define   G_028C28_S0_Y(x)                                            (((x) >> 4) & 0x0F)
6948b8e80941Smrg#define   C_028C28_S0_Y                                               0xFFFFFF0F
6949b8e80941Smrg#define   S_028C28_S1_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6950b8e80941Smrg#define   G_028C28_S1_X(x)                                            (((x) >> 8) & 0x0F)
6951b8e80941Smrg#define   C_028C28_S1_X                                               0xFFFFF0FF
6952b8e80941Smrg#define   S_028C28_S1_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6953b8e80941Smrg#define   G_028C28_S1_Y(x)                                            (((x) >> 12) & 0x0F)
6954b8e80941Smrg#define   C_028C28_S1_Y                                               0xFFFF0FFF
6955b8e80941Smrg#define   S_028C28_S2_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6956b8e80941Smrg#define   G_028C28_S2_X(x)                                            (((x) >> 16) & 0x0F)
6957b8e80941Smrg#define   C_028C28_S2_X                                               0xFFF0FFFF
6958b8e80941Smrg#define   S_028C28_S2_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6959b8e80941Smrg#define   G_028C28_S2_Y(x)                                            (((x) >> 20) & 0x0F)
6960b8e80941Smrg#define   C_028C28_S2_Y                                               0xFF0FFFFF
6961b8e80941Smrg#define   S_028C28_S3_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6962b8e80941Smrg#define   G_028C28_S3_X(x)                                            (((x) >> 24) & 0x0F)
6963b8e80941Smrg#define   C_028C28_S3_X                                               0xF0FFFFFF
6964b8e80941Smrg#define   S_028C28_S3_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6965b8e80941Smrg#define   G_028C28_S3_Y(x)                                            (((x) >> 28) & 0x0F)
6966b8e80941Smrg#define   C_028C28_S3_Y                                               0x0FFFFFFF
6967b8e80941Smrg#define R_028C2C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_1                      0x028C2C
6968b8e80941Smrg#define   S_028C2C_S4_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6969b8e80941Smrg#define   G_028C2C_S4_X(x)                                            (((x) >> 0) & 0x0F)
6970b8e80941Smrg#define   C_028C2C_S4_X                                               0xFFFFFFF0
6971b8e80941Smrg#define   S_028C2C_S4_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6972b8e80941Smrg#define   G_028C2C_S4_Y(x)                                            (((x) >> 4) & 0x0F)
6973b8e80941Smrg#define   C_028C2C_S4_Y                                               0xFFFFFF0F
6974b8e80941Smrg#define   S_028C2C_S5_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
6975b8e80941Smrg#define   G_028C2C_S5_X(x)                                            (((x) >> 8) & 0x0F)
6976b8e80941Smrg#define   C_028C2C_S5_X                                               0xFFFFF0FF
6977b8e80941Smrg#define   S_028C2C_S5_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
6978b8e80941Smrg#define   G_028C2C_S5_Y(x)                                            (((x) >> 12) & 0x0F)
6979b8e80941Smrg#define   C_028C2C_S5_Y                                               0xFFFF0FFF
6980b8e80941Smrg#define   S_028C2C_S6_X(x)                                            (((unsigned)(x) & 0x0F) << 16)
6981b8e80941Smrg#define   G_028C2C_S6_X(x)                                            (((x) >> 16) & 0x0F)
6982b8e80941Smrg#define   C_028C2C_S6_X                                               0xFFF0FFFF
6983b8e80941Smrg#define   S_028C2C_S6_Y(x)                                            (((unsigned)(x) & 0x0F) << 20)
6984b8e80941Smrg#define   G_028C2C_S6_Y(x)                                            (((x) >> 20) & 0x0F)
6985b8e80941Smrg#define   C_028C2C_S6_Y                                               0xFF0FFFFF
6986b8e80941Smrg#define   S_028C2C_S7_X(x)                                            (((unsigned)(x) & 0x0F) << 24)
6987b8e80941Smrg#define   G_028C2C_S7_X(x)                                            (((x) >> 24) & 0x0F)
6988b8e80941Smrg#define   C_028C2C_S7_X                                               0xF0FFFFFF
6989b8e80941Smrg#define   S_028C2C_S7_Y(x)                                            (((unsigned)(x) & 0x0F) << 28)
6990b8e80941Smrg#define   G_028C2C_S7_Y(x)                                            (((x) >> 28) & 0x0F)
6991b8e80941Smrg#define   C_028C2C_S7_Y                                               0x0FFFFFFF
6992b8e80941Smrg#define R_028C30_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_2                      0x028C30
6993b8e80941Smrg#define   S_028C30_S8_X(x)                                            (((unsigned)(x) & 0x0F) << 0)
6994b8e80941Smrg#define   G_028C30_S8_X(x)                                            (((x) >> 0) & 0x0F)
6995b8e80941Smrg#define   C_028C30_S8_X                                               0xFFFFFFF0
6996b8e80941Smrg#define   S_028C30_S8_Y(x)                                            (((unsigned)(x) & 0x0F) << 4)
6997b8e80941Smrg#define   G_028C30_S8_Y(x)                                            (((x) >> 4) & 0x0F)
6998b8e80941Smrg#define   C_028C30_S8_Y                                               0xFFFFFF0F
6999b8e80941Smrg#define   S_028C30_S9_X(x)                                            (((unsigned)(x) & 0x0F) << 8)
7000b8e80941Smrg#define   G_028C30_S9_X(x)                                            (((x) >> 8) & 0x0F)
7001b8e80941Smrg#define   C_028C30_S9_X                                               0xFFFFF0FF
7002b8e80941Smrg#define   S_028C30_S9_Y(x)                                            (((unsigned)(x) & 0x0F) << 12)
7003b8e80941Smrg#define   G_028C30_S9_Y(x)                                            (((x) >> 12) & 0x0F)
7004b8e80941Smrg#define   C_028C30_S9_Y                                               0xFFFF0FFF
7005b8e80941Smrg#define   S_028C30_S10_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
7006b8e80941Smrg#define   G_028C30_S10_X(x)                                           (((x) >> 16) & 0x0F)
7007b8e80941Smrg#define   C_028C30_S10_X                                              0xFFF0FFFF
7008b8e80941Smrg#define   S_028C30_S10_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
7009b8e80941Smrg#define   G_028C30_S10_Y(x)                                           (((x) >> 20) & 0x0F)
7010b8e80941Smrg#define   C_028C30_S10_Y                                              0xFF0FFFFF
7011b8e80941Smrg#define   S_028C30_S11_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
7012b8e80941Smrg#define   G_028C30_S11_X(x)                                           (((x) >> 24) & 0x0F)
7013b8e80941Smrg#define   C_028C30_S11_X                                              0xF0FFFFFF
7014b8e80941Smrg#define   S_028C30_S11_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
7015b8e80941Smrg#define   G_028C30_S11_Y(x)                                           (((x) >> 28) & 0x0F)
7016b8e80941Smrg#define   C_028C30_S11_Y                                              0x0FFFFFFF
7017b8e80941Smrg#define R_028C34_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_3                      0x028C34
7018b8e80941Smrg#define   S_028C34_S12_X(x)                                           (((unsigned)(x) & 0x0F) << 0)
7019b8e80941Smrg#define   G_028C34_S12_X(x)                                           (((x) >> 0) & 0x0F)
7020b8e80941Smrg#define   C_028C34_S12_X                                              0xFFFFFFF0
7021b8e80941Smrg#define   S_028C34_S12_Y(x)                                           (((unsigned)(x) & 0x0F) << 4)
7022b8e80941Smrg#define   G_028C34_S12_Y(x)                                           (((x) >> 4) & 0x0F)
7023b8e80941Smrg#define   C_028C34_S12_Y                                              0xFFFFFF0F
7024b8e80941Smrg#define   S_028C34_S13_X(x)                                           (((unsigned)(x) & 0x0F) << 8)
7025b8e80941Smrg#define   G_028C34_S13_X(x)                                           (((x) >> 8) & 0x0F)
7026b8e80941Smrg#define   C_028C34_S13_X                                              0xFFFFF0FF
7027b8e80941Smrg#define   S_028C34_S13_Y(x)                                           (((unsigned)(x) & 0x0F) << 12)
7028b8e80941Smrg#define   G_028C34_S13_Y(x)                                           (((x) >> 12) & 0x0F)
7029b8e80941Smrg#define   C_028C34_S13_Y                                              0xFFFF0FFF
7030b8e80941Smrg#define   S_028C34_S14_X(x)                                           (((unsigned)(x) & 0x0F) << 16)
7031b8e80941Smrg#define   G_028C34_S14_X(x)                                           (((x) >> 16) & 0x0F)
7032b8e80941Smrg#define   C_028C34_S14_X                                              0xFFF0FFFF
7033b8e80941Smrg#define   S_028C34_S14_Y(x)                                           (((unsigned)(x) & 0x0F) << 20)
7034b8e80941Smrg#define   G_028C34_S14_Y(x)                                           (((x) >> 20) & 0x0F)
7035b8e80941Smrg#define   C_028C34_S14_Y                                              0xFF0FFFFF
7036b8e80941Smrg#define   S_028C34_S15_X(x)                                           (((unsigned)(x) & 0x0F) << 24)
7037b8e80941Smrg#define   G_028C34_S15_X(x)                                           (((x) >> 24) & 0x0F)
7038b8e80941Smrg#define   C_028C34_S15_X                                              0xF0FFFFFF
7039b8e80941Smrg#define   S_028C34_S15_Y(x)                                           (((unsigned)(x) & 0x0F) << 28)
7040b8e80941Smrg#define   G_028C34_S15_Y(x)                                           (((x) >> 28) & 0x0F)
7041b8e80941Smrg#define   C_028C34_S15_Y                                              0x0FFFFFFF
7042b8e80941Smrg#define R_028C38_PA_SC_AA_MASK_X0Y0_X1Y0                                0x028C38
7043b8e80941Smrg#define   S_028C38_AA_MASK_X0Y0(x)                                    (((unsigned)(x) & 0xFFFF) << 0)
7044b8e80941Smrg#define   G_028C38_AA_MASK_X0Y0(x)                                    (((x) >> 0) & 0xFFFF)
7045b8e80941Smrg#define   C_028C38_AA_MASK_X0Y0                                       0xFFFF0000
7046b8e80941Smrg#define   S_028C38_AA_MASK_X1Y0(x)                                    (((unsigned)(x) & 0xFFFF) << 16)
7047b8e80941Smrg#define   G_028C38_AA_MASK_X1Y0(x)                                    (((x) >> 16) & 0xFFFF)
7048b8e80941Smrg#define   C_028C38_AA_MASK_X1Y0                                       0x0000FFFF
7049b8e80941Smrg#define R_028C3C_PA_SC_AA_MASK_X0Y1_X1Y1                                0x028C3C
7050b8e80941Smrg#define   S_028C3C_AA_MASK_X0Y1(x)                                    (((unsigned)(x) & 0xFFFF) << 0)
7051b8e80941Smrg#define   G_028C3C_AA_MASK_X0Y1(x)                                    (((x) >> 0) & 0xFFFF)
7052b8e80941Smrg#define   C_028C3C_AA_MASK_X0Y1                                       0xFFFF0000
7053b8e80941Smrg#define   S_028C3C_AA_MASK_X1Y1(x)                                    (((unsigned)(x) & 0xFFFF) << 16)
7054b8e80941Smrg#define   G_028C3C_AA_MASK_X1Y1(x)                                    (((x) >> 16) & 0xFFFF)
7055b8e80941Smrg#define   C_028C3C_AA_MASK_X1Y1                                       0x0000FFFF
7056b8e80941Smrg#define R_028C40_PA_SC_SHADER_CONTROL                                   0x028C40
7057b8e80941Smrg#define   S_028C40_REALIGN_DQUADS_AFTER_N_WAVES(x)                    (((unsigned)(x) & 0x03) << 0)
7058b8e80941Smrg#define   G_028C40_REALIGN_DQUADS_AFTER_N_WAVES(x)                    (((x) >> 0) & 0x03)
7059b8e80941Smrg#define   C_028C40_REALIGN_DQUADS_AFTER_N_WAVES                       0xFFFFFFFC
7060b8e80941Smrg#define   S_028C40_LOAD_COLLISION_WAVEID(x)                           (((unsigned)(x) & 0x1) << 2)
7061b8e80941Smrg#define   G_028C40_LOAD_COLLISION_WAVEID(x)                           (((x) >> 2) & 0x1)
7062b8e80941Smrg#define   C_028C40_LOAD_COLLISION_WAVEID                              0xFFFFFFFB
7063b8e80941Smrg#define   S_028C40_LOAD_INTRAWAVE_COLLISION(x)                        (((unsigned)(x) & 0x1) << 3)
7064b8e80941Smrg#define   G_028C40_LOAD_INTRAWAVE_COLLISION(x)                        (((x) >> 3) & 0x1)
7065b8e80941Smrg#define   C_028C40_LOAD_INTRAWAVE_COLLISION                           0xFFFFFFF7
7066b8e80941Smrg#define R_028C44_PA_SC_BINNER_CNTL_0                                    0x028C44
7067b8e80941Smrg#define   S_028C44_BINNING_MODE(x)                                    (((unsigned)(x) & 0x03) << 0)
7068b8e80941Smrg#define   G_028C44_BINNING_MODE(x)                                    (((x) >> 0) & 0x03)
7069b8e80941Smrg#define   C_028C44_BINNING_MODE                                       0xFFFFFFFC
7070b8e80941Smrg#define     V_028C44_BINNING_ALLOWED					0
7071b8e80941Smrg#define     V_028C44_FORCE_BINNING_ON					1
7072b8e80941Smrg#define     V_028C44_DISABLE_BINNING_USE_NEW_SC				2
7073b8e80941Smrg#define     V_028C44_DISABLE_BINNING_USE_LEGACY_SC			3
7074b8e80941Smrg#define   S_028C44_BIN_SIZE_X(x)                                      (((unsigned)(x) & 0x1) << 2)
7075b8e80941Smrg#define   G_028C44_BIN_SIZE_X(x)                                      (((x) >> 2) & 0x1)
7076b8e80941Smrg#define   C_028C44_BIN_SIZE_X                                         0xFFFFFFFB
7077b8e80941Smrg#define   S_028C44_BIN_SIZE_Y(x)                                      (((unsigned)(x) & 0x1) << 3)
7078b8e80941Smrg#define   G_028C44_BIN_SIZE_Y(x)                                      (((x) >> 3) & 0x1)
7079b8e80941Smrg#define   C_028C44_BIN_SIZE_Y                                         0xFFFFFFF7
7080b8e80941Smrg#define   S_028C44_BIN_SIZE_X_EXTEND(x)                               (((unsigned)(x) & 0x07) << 4)
7081b8e80941Smrg#define   G_028C44_BIN_SIZE_X_EXTEND(x)                               (((x) >> 4) & 0x07)
7082b8e80941Smrg#define   C_028C44_BIN_SIZE_X_EXTEND                                  0xFFFFFF8F
7083b8e80941Smrg#define   S_028C44_BIN_SIZE_Y_EXTEND(x)                               (((unsigned)(x) & 0x07) << 7)
7084b8e80941Smrg#define   G_028C44_BIN_SIZE_Y_EXTEND(x)                               (((x) >> 7) & 0x07)
7085b8e80941Smrg#define   C_028C44_BIN_SIZE_Y_EXTEND                                  0xFFFFFC7F
7086b8e80941Smrg#define   S_028C44_CONTEXT_STATES_PER_BIN(x)                          (((unsigned)(x) & 0x07) << 10)
7087b8e80941Smrg#define   G_028C44_CONTEXT_STATES_PER_BIN(x)                          (((x) >> 10) & 0x07)
7088b8e80941Smrg#define   C_028C44_CONTEXT_STATES_PER_BIN                             0xFFFFE3FF
7089b8e80941Smrg#define   S_028C44_PERSISTENT_STATES_PER_BIN(x)                       (((unsigned)(x) & 0x1F) << 13)
7090b8e80941Smrg#define   G_028C44_PERSISTENT_STATES_PER_BIN(x)                       (((x) >> 13) & 0x1F)
7091b8e80941Smrg#define   C_028C44_PERSISTENT_STATES_PER_BIN                          0xFFFC1FFF
7092b8e80941Smrg#define   S_028C44_DISABLE_START_OF_PRIM(x)                           (((unsigned)(x) & 0x1) << 18)
7093b8e80941Smrg#define   G_028C44_DISABLE_START_OF_PRIM(x)                           (((x) >> 18) & 0x1)
7094b8e80941Smrg#define   C_028C44_DISABLE_START_OF_PRIM                              0xFFFBFFFF
7095b8e80941Smrg#define   S_028C44_FPOVS_PER_BATCH(x)                                 (((unsigned)(x) & 0xFF) << 19)
7096b8e80941Smrg#define   G_028C44_FPOVS_PER_BATCH(x)                                 (((x) >> 19) & 0xFF)
7097b8e80941Smrg#define   C_028C44_FPOVS_PER_BATCH                                    0xF807FFFF
7098b8e80941Smrg#define   S_028C44_OPTIMAL_BIN_SELECTION(x)                           (((unsigned)(x) & 0x1) << 27)
7099b8e80941Smrg#define   G_028C44_OPTIMAL_BIN_SELECTION(x)                           (((x) >> 27) & 0x1)
7100b8e80941Smrg#define   C_028C44_OPTIMAL_BIN_SELECTION                              0xF7FFFFFF
7101b8e80941Smrg#define R_028C48_PA_SC_BINNER_CNTL_1                                    0x028C48
7102b8e80941Smrg#define   S_028C48_MAX_ALLOC_COUNT(x)                                 (((unsigned)(x) & 0xFFFF) << 0)
7103b8e80941Smrg#define   G_028C48_MAX_ALLOC_COUNT(x)                                 (((x) >> 0) & 0xFFFF)
7104b8e80941Smrg#define   C_028C48_MAX_ALLOC_COUNT                                    0xFFFF0000
7105b8e80941Smrg#define   S_028C48_MAX_PRIM_PER_BATCH(x)                              (((unsigned)(x) & 0xFFFF) << 16)
7106b8e80941Smrg#define   G_028C48_MAX_PRIM_PER_BATCH(x)                              (((x) >> 16) & 0xFFFF)
7107b8e80941Smrg#define   C_028C48_MAX_PRIM_PER_BATCH                                 0x0000FFFF
7108b8e80941Smrg#define R_028C4C_PA_SC_CONSERVATIVE_RASTERIZATION_CNTL                  0x028C4C
7109b8e80941Smrg#define   S_028C4C_OVER_RAST_ENABLE(x)                                (((unsigned)(x) & 0x1) << 0)
7110b8e80941Smrg#define   G_028C4C_OVER_RAST_ENABLE(x)                                (((x) >> 0) & 0x1)
7111b8e80941Smrg#define   C_028C4C_OVER_RAST_ENABLE                                   0xFFFFFFFE
7112b8e80941Smrg#define   S_028C4C_OVER_RAST_SAMPLE_SELECT(x)                         (((unsigned)(x) & 0x0F) << 1)
7113b8e80941Smrg#define   G_028C4C_OVER_RAST_SAMPLE_SELECT(x)                         (((x) >> 1) & 0x0F)
7114b8e80941Smrg#define   C_028C4C_OVER_RAST_SAMPLE_SELECT                            0xFFFFFFE1
7115b8e80941Smrg#define   S_028C4C_UNDER_RAST_ENABLE(x)                               (((unsigned)(x) & 0x1) << 5)
7116b8e80941Smrg#define   G_028C4C_UNDER_RAST_ENABLE(x)                               (((x) >> 5) & 0x1)
7117b8e80941Smrg#define   C_028C4C_UNDER_RAST_ENABLE                                  0xFFFFFFDF
7118b8e80941Smrg#define   S_028C4C_UNDER_RAST_SAMPLE_SELECT(x)                        (((unsigned)(x) & 0x0F) << 6)
7119b8e80941Smrg#define   G_028C4C_UNDER_RAST_SAMPLE_SELECT(x)                        (((x) >> 6) & 0x0F)
7120b8e80941Smrg#define   C_028C4C_UNDER_RAST_SAMPLE_SELECT                           0xFFFFFC3F
7121b8e80941Smrg#define   S_028C4C_PBB_UNCERTAINTY_REGION_ENABLE(x)                   (((unsigned)(x) & 0x1) << 10)
7122b8e80941Smrg#define   G_028C4C_PBB_UNCERTAINTY_REGION_ENABLE(x)                   (((x) >> 10) & 0x1)
7123b8e80941Smrg#define   C_028C4C_PBB_UNCERTAINTY_REGION_ENABLE                      0xFFFFFBFF
7124b8e80941Smrg#define   S_028C4C_ZMM_TRI_EXTENT(x)                                  (((unsigned)(x) & 0x1) << 11)
7125b8e80941Smrg#define   G_028C4C_ZMM_TRI_EXTENT(x)                                  (((x) >> 11) & 0x1)
7126b8e80941Smrg#define   C_028C4C_ZMM_TRI_EXTENT                                     0xFFFFF7FF
7127b8e80941Smrg#define   S_028C4C_ZMM_TRI_OFFSET(x)                                  (((unsigned)(x) & 0x1) << 12)
7128b8e80941Smrg#define   G_028C4C_ZMM_TRI_OFFSET(x)                                  (((x) >> 12) & 0x1)
7129b8e80941Smrg#define   C_028C4C_ZMM_TRI_OFFSET                                     0xFFFFEFFF
7130b8e80941Smrg#define   S_028C4C_OVERRIDE_OVER_RAST_INNER_TO_NORMAL(x)              (((unsigned)(x) & 0x1) << 13)
7131b8e80941Smrg#define   G_028C4C_OVERRIDE_OVER_RAST_INNER_TO_NORMAL(x)              (((x) >> 13) & 0x1)
7132b8e80941Smrg#define   C_028C4C_OVERRIDE_OVER_RAST_INNER_TO_NORMAL                 0xFFFFDFFF
7133b8e80941Smrg#define   S_028C4C_OVERRIDE_UNDER_RAST_INNER_TO_NORMAL(x)             (((unsigned)(x) & 0x1) << 14)
7134b8e80941Smrg#define   G_028C4C_OVERRIDE_UNDER_RAST_INNER_TO_NORMAL(x)             (((x) >> 14) & 0x1)
7135b8e80941Smrg#define   C_028C4C_OVERRIDE_UNDER_RAST_INNER_TO_NORMAL                0xFFFFBFFF
7136b8e80941Smrg#define   S_028C4C_DEGENERATE_OVERRIDE_INNER_TO_NORMAL_DISABLE(x)     (((unsigned)(x) & 0x1) << 15)
7137b8e80941Smrg#define   G_028C4C_DEGENERATE_OVERRIDE_INNER_TO_NORMAL_DISABLE(x)     (((x) >> 15) & 0x1)
7138b8e80941Smrg#define   C_028C4C_DEGENERATE_OVERRIDE_INNER_TO_NORMAL_DISABLE        0xFFFF7FFF
7139b8e80941Smrg#define   S_028C4C_UNCERTAINTY_REGION_MODE(x)                         (((unsigned)(x) & 0x03) << 16)
7140b8e80941Smrg#define   G_028C4C_UNCERTAINTY_REGION_MODE(x)                         (((x) >> 16) & 0x03)
7141b8e80941Smrg#define   C_028C4C_UNCERTAINTY_REGION_MODE                            0xFFFCFFFF
7142b8e80941Smrg#define   S_028C4C_OUTER_UNCERTAINTY_EDGERULE_OVERRIDE(x)             (((unsigned)(x) & 0x1) << 18)
7143b8e80941Smrg#define   G_028C4C_OUTER_UNCERTAINTY_EDGERULE_OVERRIDE(x)             (((x) >> 18) & 0x1)
7144b8e80941Smrg#define   C_028C4C_OUTER_UNCERTAINTY_EDGERULE_OVERRIDE                0xFFFBFFFF
7145b8e80941Smrg#define   S_028C4C_INNER_UNCERTAINTY_EDGERULE_OVERRIDE(x)             (((unsigned)(x) & 0x1) << 19)
7146b8e80941Smrg#define   G_028C4C_INNER_UNCERTAINTY_EDGERULE_OVERRIDE(x)             (((x) >> 19) & 0x1)
7147b8e80941Smrg#define   C_028C4C_INNER_UNCERTAINTY_EDGERULE_OVERRIDE                0xFFF7FFFF
7148b8e80941Smrg#define   S_028C4C_NULL_SQUAD_AA_MASK_ENABLE(x)                       (((unsigned)(x) & 0x1) << 20)
7149b8e80941Smrg#define   G_028C4C_NULL_SQUAD_AA_MASK_ENABLE(x)                       (((x) >> 20) & 0x1)
7150b8e80941Smrg#define   C_028C4C_NULL_SQUAD_AA_MASK_ENABLE                          0xFFEFFFFF
7151b8e80941Smrg#define   S_028C4C_COVERAGE_AA_MASK_ENABLE(x)                         (((unsigned)(x) & 0x1) << 21)
7152b8e80941Smrg#define   G_028C4C_COVERAGE_AA_MASK_ENABLE(x)                         (((x) >> 21) & 0x1)
7153b8e80941Smrg#define   C_028C4C_COVERAGE_AA_MASK_ENABLE                            0xFFDFFFFF
7154b8e80941Smrg#define   S_028C4C_PREZ_AA_MASK_ENABLE(x)                             (((unsigned)(x) & 0x1) << 22)
7155b8e80941Smrg#define   G_028C4C_PREZ_AA_MASK_ENABLE(x)                             (((x) >> 22) & 0x1)
7156b8e80941Smrg#define   C_028C4C_PREZ_AA_MASK_ENABLE                                0xFFBFFFFF
7157b8e80941Smrg#define   S_028C4C_POSTZ_AA_MASK_ENABLE(x)                            (((unsigned)(x) & 0x1) << 23)
7158b8e80941Smrg#define   G_028C4C_POSTZ_AA_MASK_ENABLE(x)                            (((x) >> 23) & 0x1)
7159b8e80941Smrg#define   C_028C4C_POSTZ_AA_MASK_ENABLE                               0xFF7FFFFF
7160b8e80941Smrg#define   S_028C4C_CENTROID_SAMPLE_OVERRIDE(x)                        (((unsigned)(x) & 0x1) << 24)
7161b8e80941Smrg#define   G_028C4C_CENTROID_SAMPLE_OVERRIDE(x)                        (((x) >> 24) & 0x1)
7162b8e80941Smrg#define   C_028C4C_CENTROID_SAMPLE_OVERRIDE                           0xFEFFFFFF
7163b8e80941Smrg#define R_028C50_PA_SC_NGG_MODE_CNTL                                    0x028C50
7164b8e80941Smrg#define   S_028C50_MAX_DEALLOCS_IN_WAVE(x)                            (((unsigned)(x) & 0x7FF) << 0)
7165b8e80941Smrg#define   G_028C50_MAX_DEALLOCS_IN_WAVE(x)                            (((x) >> 0) & 0x7FF)
7166b8e80941Smrg#define   C_028C50_MAX_DEALLOCS_IN_WAVE                               0xFFFFF800
7167b8e80941Smrg#define R_028C58_VGT_VERTEX_REUSE_BLOCK_CNTL                            0x028C58
7168b8e80941Smrg#define   S_028C58_VTX_REUSE_DEPTH(x)                                 (((unsigned)(x) & 0xFF) << 0)
7169b8e80941Smrg#define   G_028C58_VTX_REUSE_DEPTH(x)                                 (((x) >> 0) & 0xFF)
7170b8e80941Smrg#define   C_028C58_VTX_REUSE_DEPTH                                    0xFFFFFF00
7171b8e80941Smrg#define R_028C5C_VGT_OUT_DEALLOC_CNTL                                   0x028C5C
7172b8e80941Smrg#define   S_028C5C_DEALLOC_DIST(x)                                    (((unsigned)(x) & 0x7F) << 0)
7173b8e80941Smrg#define   G_028C5C_DEALLOC_DIST(x)                                    (((x) >> 0) & 0x7F)
7174b8e80941Smrg#define   C_028C5C_DEALLOC_DIST                                       0xFFFFFF80
7175b8e80941Smrg#define R_028C60_CB_COLOR0_BASE                                         0x028C60
7176b8e80941Smrg#define R_028C64_CB_COLOR0_BASE_EXT                                     0x028C64
7177b8e80941Smrg#define   S_028C64_BASE_256B(x)                                       (((unsigned)(x) & 0xFF) << 0)
7178b8e80941Smrg#define   G_028C64_BASE_256B(x)                                       (((x) >> 0) & 0xFF)
7179b8e80941Smrg#define   C_028C64_BASE_256B                                          0xFFFFFF00
7180b8e80941Smrg#define R_028C68_CB_COLOR0_ATTRIB2                                      0x028C68
7181b8e80941Smrg#define   S_028C68_MIP0_HEIGHT(x)                                     (((unsigned)(x) & 0x3FFF) << 0)
7182b8e80941Smrg#define   G_028C68_MIP0_HEIGHT(x)                                     (((x) >> 0) & 0x3FFF)
7183b8e80941Smrg#define   C_028C68_MIP0_HEIGHT                                        0xFFFFC000
7184b8e80941Smrg#define   S_028C68_MIP0_WIDTH(x)                                      (((unsigned)(x) & 0x3FFF) << 14)
7185b8e80941Smrg#define   G_028C68_MIP0_WIDTH(x)                                      (((x) >> 14) & 0x3FFF)
7186b8e80941Smrg#define   C_028C68_MIP0_WIDTH                                         0xF0003FFF
7187b8e80941Smrg#define   S_028C68_MAX_MIP(x)                                         (((unsigned)(x) & 0x0F) << 28)
7188b8e80941Smrg#define   G_028C68_MAX_MIP(x)                                         (((x) >> 28) & 0x0F)
7189b8e80941Smrg#define   C_028C68_MAX_MIP                                            0x0FFFFFFF
7190b8e80941Smrg#define R_028C6C_CB_COLOR0_VIEW                                         0x028C6C
7191b8e80941Smrg#define   S_028C6C_SLICE_START(x)                                     (((unsigned)(x) & 0x7FF) << 0)
7192b8e80941Smrg#define   G_028C6C_SLICE_START(x)                                     (((x) >> 0) & 0x7FF)
7193b8e80941Smrg#define   C_028C6C_SLICE_START                                        0xFFFFF800
7194b8e80941Smrg#define   S_028C6C_SLICE_MAX(x)                                       (((unsigned)(x) & 0x7FF) << 13)
7195b8e80941Smrg#define   G_028C6C_SLICE_MAX(x)                                       (((x) >> 13) & 0x7FF)
7196b8e80941Smrg#define   C_028C6C_SLICE_MAX                                          0xFF001FFF
7197b8e80941Smrg#define   S_028C6C_MIP_LEVEL(x)                                       (((unsigned)(x) & 0x0F) << 24)
7198b8e80941Smrg#define   G_028C6C_MIP_LEVEL(x)                                       (((x) >> 24) & 0x0F)
7199b8e80941Smrg#define   C_028C6C_MIP_LEVEL                                          0xF0FFFFFF
7200b8e80941Smrg#define R_028C70_CB_COLOR0_INFO                                         0x028C70
7201b8e80941Smrg#define   S_028C70_ENDIAN(x)                                          (((unsigned)(x) & 0x03) << 0)
7202b8e80941Smrg#define   G_028C70_ENDIAN(x)                                          (((x) >> 0) & 0x03)
7203b8e80941Smrg#define   C_028C70_ENDIAN                                             0xFFFFFFFC
7204b8e80941Smrg#define   S_028C70_FORMAT(x)                                          (((unsigned)(x) & 0x1F) << 2)
7205b8e80941Smrg#define   G_028C70_FORMAT(x)                                          (((x) >> 2) & 0x1F)
7206b8e80941Smrg#define   C_028C70_FORMAT                                             0xFFFFFF83
7207b8e80941Smrg#define   S_028C70_NUMBER_TYPE(x)                                     (((unsigned)(x) & 0x07) << 8)
7208b8e80941Smrg#define   G_028C70_NUMBER_TYPE(x)                                     (((x) >> 8) & 0x07)
7209b8e80941Smrg#define   C_028C70_NUMBER_TYPE                                        0xFFFFF8FF
7210b8e80941Smrg#define   S_028C70_COMP_SWAP(x)                                       (((unsigned)(x) & 0x03) << 11)
7211b8e80941Smrg#define   G_028C70_COMP_SWAP(x)                                       (((x) >> 11) & 0x03)
7212b8e80941Smrg#define   C_028C70_COMP_SWAP                                          0xFFFFE7FF
7213b8e80941Smrg#define   S_028C70_FAST_CLEAR(x)                                      (((unsigned)(x) & 0x1) << 13)
7214b8e80941Smrg#define   G_028C70_FAST_CLEAR(x)                                      (((x) >> 13) & 0x1)
7215b8e80941Smrg#define   C_028C70_FAST_CLEAR                                         0xFFFFDFFF
7216b8e80941Smrg#define   S_028C70_COMPRESSION(x)                                     (((unsigned)(x) & 0x1) << 14)
7217b8e80941Smrg#define   G_028C70_COMPRESSION(x)                                     (((x) >> 14) & 0x1)
7218b8e80941Smrg#define   C_028C70_COMPRESSION                                        0xFFFFBFFF
7219b8e80941Smrg#define   S_028C70_BLEND_CLAMP(x)                                     (((unsigned)(x) & 0x1) << 15)
7220b8e80941Smrg#define   G_028C70_BLEND_CLAMP(x)                                     (((x) >> 15) & 0x1)
7221b8e80941Smrg#define   C_028C70_BLEND_CLAMP                                        0xFFFF7FFF
7222b8e80941Smrg#define   S_028C70_BLEND_BYPASS(x)                                    (((unsigned)(x) & 0x1) << 16)
7223b8e80941Smrg#define   G_028C70_BLEND_BYPASS(x)                                    (((x) >> 16) & 0x1)
7224b8e80941Smrg#define   C_028C70_BLEND_BYPASS                                       0xFFFEFFFF
7225b8e80941Smrg#define   S_028C70_SIMPLE_FLOAT(x)                                    (((unsigned)(x) & 0x1) << 17)
7226b8e80941Smrg#define   G_028C70_SIMPLE_FLOAT(x)                                    (((x) >> 17) & 0x1)
7227b8e80941Smrg#define   C_028C70_SIMPLE_FLOAT                                       0xFFFDFFFF
7228b8e80941Smrg#define   S_028C70_ROUND_MODE(x)                                      (((unsigned)(x) & 0x1) << 18)
7229b8e80941Smrg#define   G_028C70_ROUND_MODE(x)                                      (((x) >> 18) & 0x1)
7230b8e80941Smrg#define   C_028C70_ROUND_MODE                                         0xFFFBFFFF
7231b8e80941Smrg#define   S_028C70_BLEND_OPT_DONT_RD_DST(x)                           (((unsigned)(x) & 0x07) << 20)
7232b8e80941Smrg#define   G_028C70_BLEND_OPT_DONT_RD_DST(x)                           (((x) >> 20) & 0x07)
7233b8e80941Smrg#define   C_028C70_BLEND_OPT_DONT_RD_DST                              0xFF8FFFFF
7234b8e80941Smrg#define   S_028C70_BLEND_OPT_DISCARD_PIXEL(x)                         (((unsigned)(x) & 0x07) << 23)
7235b8e80941Smrg#define   G_028C70_BLEND_OPT_DISCARD_PIXEL(x)                         (((x) >> 23) & 0x07)
7236b8e80941Smrg#define   C_028C70_BLEND_OPT_DISCARD_PIXEL                            0xFC7FFFFF
7237b8e80941Smrg#define   S_028C70_FMASK_COMPRESSION_DISABLE(x)                       (((unsigned)(x) & 0x1) << 26)
7238b8e80941Smrg#define   G_028C70_FMASK_COMPRESSION_DISABLE(x)                       (((x) >> 26) & 0x1)
7239b8e80941Smrg#define   C_028C70_FMASK_COMPRESSION_DISABLE                          0xFBFFFFFF
7240b8e80941Smrg#define   S_028C70_FMASK_COMPRESS_1FRAG_ONLY(x)                       (((unsigned)(x) & 0x1) << 27)
7241b8e80941Smrg#define   G_028C70_FMASK_COMPRESS_1FRAG_ONLY(x)                       (((x) >> 27) & 0x1)
7242b8e80941Smrg#define   C_028C70_FMASK_COMPRESS_1FRAG_ONLY                          0xF7FFFFFF
7243b8e80941Smrg#define   S_028C70_DCC_ENABLE(x)                                      (((unsigned)(x) & 0x1) << 28)
7244b8e80941Smrg#define   G_028C70_DCC_ENABLE(x)                                      (((x) >> 28) & 0x1)
7245b8e80941Smrg#define   C_028C70_DCC_ENABLE                                         0xEFFFFFFF
7246b8e80941Smrg#define   S_028C70_CMASK_ADDR_TYPE(x)                                 (((unsigned)(x) & 0x03) << 29)
7247b8e80941Smrg#define   G_028C70_CMASK_ADDR_TYPE(x)                                 (((x) >> 29) & 0x03)
7248b8e80941Smrg#define   C_028C70_CMASK_ADDR_TYPE                                    0x9FFFFFFF
7249b8e80941Smrg#define R_028C74_CB_COLOR0_ATTRIB                                       0x028C74
7250b8e80941Smrg#define   S_028C74_MIP0_DEPTH(x)                                      (((unsigned)(x) & 0x7FF) << 0)
7251b8e80941Smrg#define   G_028C74_MIP0_DEPTH(x)                                      (((x) >> 0) & 0x7FF)
7252b8e80941Smrg#define   C_028C74_MIP0_DEPTH                                         0xFFFFF800
7253b8e80941Smrg#define   S_028C74_META_LINEAR(x)                                     (((unsigned)(x) & 0x1) << 11)
7254b8e80941Smrg#define   G_028C74_META_LINEAR(x)                                     (((x) >> 11) & 0x1)
7255b8e80941Smrg#define   C_028C74_META_LINEAR                                        0xFFFFF7FF
7256b8e80941Smrg#define   S_028C74_NUM_SAMPLES(x)                                     (((unsigned)(x) & 0x07) << 12)
7257b8e80941Smrg#define   G_028C74_NUM_SAMPLES(x)                                     (((x) >> 12) & 0x07)
7258b8e80941Smrg#define   C_028C74_NUM_SAMPLES                                        0xFFFF8FFF
7259b8e80941Smrg#define   S_028C74_NUM_FRAGMENTS(x)                                   (((unsigned)(x) & 0x03) << 15)
7260b8e80941Smrg#define   G_028C74_NUM_FRAGMENTS(x)                                   (((x) >> 15) & 0x03)
7261b8e80941Smrg#define   C_028C74_NUM_FRAGMENTS                                      0xFFFE7FFF
7262b8e80941Smrg#define   S_028C74_FORCE_DST_ALPHA_1(x)                               (((unsigned)(x) & 0x1) << 17)
7263b8e80941Smrg#define   G_028C74_FORCE_DST_ALPHA_1(x)                               (((x) >> 17) & 0x1)
7264b8e80941Smrg#define   C_028C74_FORCE_DST_ALPHA_1                                  0xFFFDFFFF
7265b8e80941Smrg#define   S_028C74_COLOR_SW_MODE(x)                                   (((unsigned)(x) & 0x1F) << 18)
7266b8e80941Smrg#define   G_028C74_COLOR_SW_MODE(x)                                   (((x) >> 18) & 0x1F)
7267b8e80941Smrg#define   C_028C74_COLOR_SW_MODE                                      0xFF83FFFF
7268b8e80941Smrg#define   S_028C74_FMASK_SW_MODE(x)                                   (((unsigned)(x) & 0x1F) << 23)
7269b8e80941Smrg#define   G_028C74_FMASK_SW_MODE(x)                                   (((x) >> 23) & 0x1F)
7270b8e80941Smrg#define   C_028C74_FMASK_SW_MODE                                      0xF07FFFFF
7271b8e80941Smrg#define   S_028C74_RESOURCE_TYPE(x)                                   (((unsigned)(x) & 0x03) << 28)
7272b8e80941Smrg#define   G_028C74_RESOURCE_TYPE(x)                                   (((x) >> 28) & 0x03)
7273b8e80941Smrg#define   C_028C74_RESOURCE_TYPE                                      0xCFFFFFFF
7274b8e80941Smrg#define     V_028C74_1D                                             0
7275b8e80941Smrg#define     V_028C74_2D                                             1
7276b8e80941Smrg#define     V_028C74_3D                                             2
7277b8e80941Smrg#define     V_028C74_RESERVED                                       3
7278b8e80941Smrg#define   S_028C74_RB_ALIGNED(x)                                      (((unsigned)(x) & 0x1) << 30)
7279b8e80941Smrg#define   G_028C74_RB_ALIGNED(x)                                      (((x) >> 30) & 0x1)
7280b8e80941Smrg#define   C_028C74_RB_ALIGNED                                         0xBFFFFFFF
7281b8e80941Smrg#define   S_028C74_PIPE_ALIGNED(x)                                    (((unsigned)(x) & 0x1) << 31)
7282b8e80941Smrg#define   G_028C74_PIPE_ALIGNED(x)                                    (((x) >> 31) & 0x1)
7283b8e80941Smrg#define   C_028C74_PIPE_ALIGNED                                       0x7FFFFFFF
7284b8e80941Smrg#define R_028C78_CB_COLOR0_DCC_CONTROL                                  0x028C78
7285b8e80941Smrg#define   S_028C78_OVERWRITE_COMBINER_DISABLE(x)                      (((unsigned)(x) & 0x1) << 0)
7286b8e80941Smrg#define   G_028C78_OVERWRITE_COMBINER_DISABLE(x)                      (((x) >> 0) & 0x1)
7287b8e80941Smrg#define   C_028C78_OVERWRITE_COMBINER_DISABLE                         0xFFFFFFFE
7288b8e80941Smrg#define   S_028C78_KEY_CLEAR_ENABLE(x)                                (((unsigned)(x) & 0x1) << 1)
7289b8e80941Smrg#define   G_028C78_KEY_CLEAR_ENABLE(x)                                (((x) >> 1) & 0x1)
7290b8e80941Smrg#define   C_028C78_KEY_CLEAR_ENABLE                                   0xFFFFFFFD
7291b8e80941Smrg#define   S_028C78_MAX_UNCOMPRESSED_BLOCK_SIZE(x)                     (((unsigned)(x) & 0x03) << 2)
7292b8e80941Smrg#define   G_028C78_MAX_UNCOMPRESSED_BLOCK_SIZE(x)                     (((x) >> 2) & 0x03)
7293b8e80941Smrg#define   C_028C78_MAX_UNCOMPRESSED_BLOCK_SIZE                        0xFFFFFFF3
7294b8e80941Smrg#define   S_028C78_MIN_COMPRESSED_BLOCK_SIZE(x)                       (((unsigned)(x) & 0x1) << 4)
7295b8e80941Smrg#define   G_028C78_MIN_COMPRESSED_BLOCK_SIZE(x)                       (((x) >> 4) & 0x1)
7296b8e80941Smrg#define   C_028C78_MIN_COMPRESSED_BLOCK_SIZE                          0xFFFFFFEF
7297b8e80941Smrg#define   S_028C78_MAX_COMPRESSED_BLOCK_SIZE(x)                       (((unsigned)(x) & 0x03) << 5)
7298b8e80941Smrg#define   G_028C78_MAX_COMPRESSED_BLOCK_SIZE(x)                       (((x) >> 5) & 0x03)
7299b8e80941Smrg#define   C_028C78_MAX_COMPRESSED_BLOCK_SIZE                          0xFFFFFF9F
7300b8e80941Smrg#define   S_028C78_COLOR_TRANSFORM(x)                                 (((unsigned)(x) & 0x03) << 7)
7301b8e80941Smrg#define   G_028C78_COLOR_TRANSFORM(x)                                 (((x) >> 7) & 0x03)
7302b8e80941Smrg#define   C_028C78_COLOR_TRANSFORM                                    0xFFFFFE7F
7303b8e80941Smrg#define   S_028C78_INDEPENDENT_64B_BLOCKS(x)                          (((unsigned)(x) & 0x1) << 9)
7304b8e80941Smrg#define   G_028C78_INDEPENDENT_64B_BLOCKS(x)                          (((x) >> 9) & 0x1)
7305b8e80941Smrg#define   C_028C78_INDEPENDENT_64B_BLOCKS                             0xFFFFFDFF
7306b8e80941Smrg#define   S_028C78_LOSSY_RGB_PRECISION(x)                             (((unsigned)(x) & 0x0F) << 10)
7307b8e80941Smrg#define   G_028C78_LOSSY_RGB_PRECISION(x)                             (((x) >> 10) & 0x0F)
7308b8e80941Smrg#define   C_028C78_LOSSY_RGB_PRECISION                                0xFFFFC3FF
7309b8e80941Smrg#define   S_028C78_LOSSY_ALPHA_PRECISION(x)                           (((unsigned)(x) & 0x0F) << 14)
7310b8e80941Smrg#define   G_028C78_LOSSY_ALPHA_PRECISION(x)                           (((x) >> 14) & 0x0F)
7311b8e80941Smrg#define   C_028C78_LOSSY_ALPHA_PRECISION                              0xFFFC3FFF
7312b8e80941Smrg#define R_028C7C_CB_COLOR0_CMASK                                        0x028C7C
7313b8e80941Smrg#define R_028C80_CB_COLOR0_CMASK_BASE_EXT                               0x028C80
7314b8e80941Smrg#define   S_028C80_BASE_256B(x)                                       (((unsigned)(x) & 0xFF) << 0)
7315b8e80941Smrg#define   G_028C80_BASE_256B(x)                                       (((x) >> 0) & 0xFF)
7316b8e80941Smrg#define   C_028C80_BASE_256B                                          0xFFFFFF00
7317b8e80941Smrg#define R_028C84_CB_COLOR0_FMASK                                        0x028C84
7318b8e80941Smrg#define R_028C88_CB_COLOR0_FMASK_BASE_EXT                               0x028C88
7319b8e80941Smrg#define   S_028C88_BASE_256B(x)                                       (((unsigned)(x) & 0xFF) << 0)
7320b8e80941Smrg#define   G_028C88_BASE_256B(x)                                       (((x) >> 0) & 0xFF)
7321b8e80941Smrg#define   C_028C88_BASE_256B                                          0xFFFFFF00
7322b8e80941Smrg#define R_028C8C_CB_COLOR0_CLEAR_WORD0                                  0x028C8C
7323b8e80941Smrg#define R_028C90_CB_COLOR0_CLEAR_WORD1                                  0x028C90
7324b8e80941Smrg#define R_028C94_CB_COLOR0_DCC_BASE                                     0x028C94
7325b8e80941Smrg#define R_028C98_CB_COLOR0_DCC_BASE_EXT                                 0x028C98
7326b8e80941Smrg#define   S_028C98_BASE_256B(x)                                       (((unsigned)(x) & 0xFF) << 0)
7327b8e80941Smrg#define   G_028C98_BASE_256B(x)                                       (((x) >> 0) & 0xFF)
7328b8e80941Smrg#define   C_028C98_BASE_256B                                          0xFFFFFF00
7329b8e80941Smrg#define R_028C9C_CB_COLOR1_BASE                                         0x028C9C
7330b8e80941Smrg#define R_028CA0_CB_COLOR1_BASE_EXT                                     0x028CA0
7331b8e80941Smrg#define R_028CA4_CB_COLOR1_ATTRIB2                                      0x028CA4
7332b8e80941Smrg#define R_028CA8_CB_COLOR1_VIEW                                         0x028CA8
7333b8e80941Smrg#define R_028CAC_CB_COLOR1_INFO                                         0x028CAC
7334b8e80941Smrg#define R_028CB0_CB_COLOR1_ATTRIB                                       0x028CB0
7335b8e80941Smrg#define R_028CB4_CB_COLOR1_DCC_CONTROL                                  0x028CB4
7336b8e80941Smrg#define R_028CB8_CB_COLOR1_CMASK                                        0x028CB8
7337b8e80941Smrg#define R_028CBC_CB_COLOR1_CMASK_BASE_EXT                               0x028CBC
7338b8e80941Smrg#define R_028CC0_CB_COLOR1_FMASK                                        0x028CC0
7339b8e80941Smrg#define R_028CC4_CB_COLOR1_FMASK_BASE_EXT                               0x028CC4
7340b8e80941Smrg#define R_028CC8_CB_COLOR1_CLEAR_WORD0                                  0x028CC8
7341b8e80941Smrg#define R_028CCC_CB_COLOR1_CLEAR_WORD1                                  0x028CCC
7342b8e80941Smrg#define R_028CD0_CB_COLOR1_DCC_BASE                                     0x028CD0
7343b8e80941Smrg#define R_028CD4_CB_COLOR1_DCC_BASE_EXT                                 0x028CD4
7344b8e80941Smrg#define R_028CD8_CB_COLOR2_BASE                                         0x028CD8
7345b8e80941Smrg#define R_028CDC_CB_COLOR2_BASE_EXT                                     0x028CDC
7346b8e80941Smrg#define R_028CE0_CB_COLOR2_ATTRIB2                                      0x028CE0
7347b8e80941Smrg#define R_028CE4_CB_COLOR2_VIEW                                         0x028CE4
7348b8e80941Smrg#define R_028CE8_CB_COLOR2_INFO                                         0x028CE8
7349b8e80941Smrg#define R_028CEC_CB_COLOR2_ATTRIB                                       0x028CEC
7350b8e80941Smrg#define R_028CF0_CB_COLOR2_DCC_CONTROL                                  0x028CF0
7351b8e80941Smrg#define R_028CF4_CB_COLOR2_CMASK                                        0x028CF4
7352b8e80941Smrg#define R_028CF8_CB_COLOR2_CMASK_BASE_EXT                               0x028CF8
7353b8e80941Smrg#define R_028CFC_CB_COLOR2_FMASK                                        0x028CFC
7354b8e80941Smrg#define R_028D00_CB_COLOR2_FMASK_BASE_EXT                               0x028D00
7355b8e80941Smrg#define R_028D04_CB_COLOR2_CLEAR_WORD0                                  0x028D04
7356b8e80941Smrg#define R_028D08_CB_COLOR2_CLEAR_WORD1                                  0x028D08
7357b8e80941Smrg#define R_028D0C_CB_COLOR2_DCC_BASE                                     0x028D0C
7358b8e80941Smrg#define R_028D10_CB_COLOR2_DCC_BASE_EXT                                 0x028D10
7359b8e80941Smrg#define R_028D14_CB_COLOR3_BASE                                         0x028D14
7360b8e80941Smrg#define R_028D18_CB_COLOR3_BASE_EXT                                     0x028D18
7361b8e80941Smrg#define R_028D1C_CB_COLOR3_ATTRIB2                                      0x028D1C
7362b8e80941Smrg#define R_028D20_CB_COLOR3_VIEW                                         0x028D20
7363b8e80941Smrg#define R_028D24_CB_COLOR3_INFO                                         0x028D24
7364b8e80941Smrg#define R_028D28_CB_COLOR3_ATTRIB                                       0x028D28
7365b8e80941Smrg#define R_028D2C_CB_COLOR3_DCC_CONTROL                                  0x028D2C
7366b8e80941Smrg#define R_028D30_CB_COLOR3_CMASK                                        0x028D30
7367b8e80941Smrg#define R_028D34_CB_COLOR3_CMASK_BASE_EXT                               0x028D34
7368b8e80941Smrg#define R_028D38_CB_COLOR3_FMASK                                        0x028D38
7369b8e80941Smrg#define R_028D3C_CB_COLOR3_FMASK_BASE_EXT                               0x028D3C
7370b8e80941Smrg#define R_028D40_CB_COLOR3_CLEAR_WORD0                                  0x028D40
7371b8e80941Smrg#define R_028D44_CB_COLOR3_CLEAR_WORD1                                  0x028D44
7372b8e80941Smrg#define R_028D48_CB_COLOR3_DCC_BASE                                     0x028D48
7373b8e80941Smrg#define R_028D4C_CB_COLOR3_DCC_BASE_EXT                                 0x028D4C
7374b8e80941Smrg#define R_028D50_CB_COLOR4_BASE                                         0x028D50
7375b8e80941Smrg#define R_028D54_CB_COLOR4_BASE_EXT                                     0x028D54
7376b8e80941Smrg#define R_028D58_CB_COLOR4_ATTRIB2                                      0x028D58
7377b8e80941Smrg#define R_028D5C_CB_COLOR4_VIEW                                         0x028D5C
7378b8e80941Smrg#define R_028D60_CB_COLOR4_INFO                                         0x028D60
7379b8e80941Smrg#define R_028D64_CB_COLOR4_ATTRIB                                       0x028D64
7380b8e80941Smrg#define R_028D68_CB_COLOR4_DCC_CONTROL                                  0x028D68
7381b8e80941Smrg#define R_028D6C_CB_COLOR4_CMASK                                        0x028D6C
7382b8e80941Smrg#define R_028D70_CB_COLOR4_CMASK_BASE_EXT                               0x028D70
7383b8e80941Smrg#define R_028D74_CB_COLOR4_FMASK                                        0x028D74
7384b8e80941Smrg#define R_028D78_CB_COLOR4_FMASK_BASE_EXT                               0x028D78
7385b8e80941Smrg#define R_028D7C_CB_COLOR4_CLEAR_WORD0                                  0x028D7C
7386b8e80941Smrg#define R_028D80_CB_COLOR4_CLEAR_WORD1                                  0x028D80
7387b8e80941Smrg#define R_028D84_CB_COLOR4_DCC_BASE                                     0x028D84
7388b8e80941Smrg#define R_028D88_CB_COLOR4_DCC_BASE_EXT                                 0x028D88
7389b8e80941Smrg#define R_028D8C_CB_COLOR5_BASE                                         0x028D8C
7390b8e80941Smrg#define R_028D90_CB_COLOR5_BASE_EXT                                     0x028D90
7391b8e80941Smrg#define R_028D94_CB_COLOR5_ATTRIB2                                      0x028D94
7392b8e80941Smrg#define R_028D98_CB_COLOR5_VIEW                                         0x028D98
7393b8e80941Smrg#define R_028D9C_CB_COLOR5_INFO                                         0x028D9C
7394b8e80941Smrg#define R_028DA0_CB_COLOR5_ATTRIB                                       0x028DA0
7395b8e80941Smrg#define R_028DA4_CB_COLOR5_DCC_CONTROL                                  0x028DA4
7396b8e80941Smrg#define R_028DA8_CB_COLOR5_CMASK                                        0x028DA8
7397b8e80941Smrg#define R_028DAC_CB_COLOR5_CMASK_BASE_EXT                               0x028DAC
7398b8e80941Smrg#define R_028DB0_CB_COLOR5_FMASK                                        0x028DB0
7399b8e80941Smrg#define R_028DB4_CB_COLOR5_FMASK_BASE_EXT                               0x028DB4
7400b8e80941Smrg#define R_028DB8_CB_COLOR5_CLEAR_WORD0                                  0x028DB8
7401b8e80941Smrg#define R_028DBC_CB_COLOR5_CLEAR_WORD1                                  0x028DBC
7402b8e80941Smrg#define R_028DC0_CB_COLOR5_DCC_BASE                                     0x028DC0
7403b8e80941Smrg#define R_028DC4_CB_COLOR5_DCC_BASE_EXT                                 0x028DC4
7404b8e80941Smrg#define R_028DC8_CB_COLOR6_BASE                                         0x028DC8
7405b8e80941Smrg#define R_028DCC_CB_COLOR6_BASE_EXT                                     0x028DCC
7406b8e80941Smrg#define R_028DD0_CB_COLOR6_ATTRIB2                                      0x028DD0
7407b8e80941Smrg#define R_028DD4_CB_COLOR6_VIEW                                         0x028DD4
7408b8e80941Smrg#define R_028DD8_CB_COLOR6_INFO                                         0x028DD8
7409b8e80941Smrg#define R_028DDC_CB_COLOR6_ATTRIB                                       0x028DDC
7410b8e80941Smrg#define R_028DE0_CB_COLOR6_DCC_CONTROL                                  0x028DE0
7411b8e80941Smrg#define R_028DE4_CB_COLOR6_CMASK                                        0x028DE4
7412b8e80941Smrg#define R_028DE8_CB_COLOR6_CMASK_BASE_EXT                               0x028DE8
7413b8e80941Smrg#define R_028DEC_CB_COLOR6_FMASK                                        0x028DEC
7414b8e80941Smrg#define R_028DF0_CB_COLOR6_FMASK_BASE_EXT                               0x028DF0
7415b8e80941Smrg#define R_028DF4_CB_COLOR6_CLEAR_WORD0                                  0x028DF4
7416b8e80941Smrg#define R_028DF8_CB_COLOR6_CLEAR_WORD1                                  0x028DF8
7417b8e80941Smrg#define R_028DFC_CB_COLOR6_DCC_BASE                                     0x028DFC
7418b8e80941Smrg#define R_028E00_CB_COLOR6_DCC_BASE_EXT                                 0x028E00
7419b8e80941Smrg#define R_028E04_CB_COLOR7_BASE                                         0x028E04
7420b8e80941Smrg#define R_028E08_CB_COLOR7_BASE_EXT                                     0x028E08
7421b8e80941Smrg#define R_028E0C_CB_COLOR7_ATTRIB2                                      0x028E0C
7422b8e80941Smrg#define R_028E10_CB_COLOR7_VIEW                                         0x028E10
7423b8e80941Smrg#define R_028E14_CB_COLOR7_INFO                                         0x028E14
7424b8e80941Smrg#define R_028E18_CB_COLOR7_ATTRIB                                       0x028E18
7425b8e80941Smrg#define R_028E1C_CB_COLOR7_DCC_CONTROL                                  0x028E1C
7426b8e80941Smrg#define R_028E20_CB_COLOR7_CMASK                                        0x028E20
7427b8e80941Smrg#define R_028E24_CB_COLOR7_CMASK_BASE_EXT                               0x028E24
7428b8e80941Smrg#define R_028E28_CB_COLOR7_FMASK                                        0x028E28
7429b8e80941Smrg#define R_028E2C_CB_COLOR7_FMASK_BASE_EXT                               0x028E2C
7430b8e80941Smrg#define R_028E30_CB_COLOR7_CLEAR_WORD0                                  0x028E30
7431b8e80941Smrg#define R_028E34_CB_COLOR7_CLEAR_WORD1                                  0x028E34
7432b8e80941Smrg#define R_028E38_CB_COLOR7_DCC_BASE                                     0x028E38
7433b8e80941Smrg#define R_028E3C_CB_COLOR7_DCC_BASE_EXT                                 0x028E3C
7434b8e80941Smrg
7435b8e80941Smrg#endif /* GFX9D_H */
7436