3 /*****************************************************************************/
8 * AA : AntiAliasing? (MSAA?)
17 * CONFIG : CONFIGuration
22 * GS : Geometry Shader ?
23 * HI : HIgh ("high 32 bits of a 64 bits word)
25 * IB : Indirect Buffer
28 * INTERP : INTERPolator
29 * LO : LOw ("low 32 bits" of a 64 bits word)
32 * PA : Primitive Assembler
40 * SPI : Shader Processor Interpolator
42 * TE : Transform Engine
46 * VGT : Vertex Grouper Tesselator
49 * VTE : Vertex TEsselator?
52 /*****************************************************************************/
55 reg_blk_cfg
= 1, /* only 1 unlike ctxs */
57 reg_blk_ctx
= 3 /* there are N (depends on GFX) ctxs */
63 * low 32KiB, use PKT0:
64 * 0x00000000-0x00007ffff byte ofts
65 * 0x00000000-0x00001ffff w ofts
66 * hi 32KiB, use PKT3 with the right SET_* opcode
67 * 0x00008000-0x0000fffff byte ofts
68 * 0x00002000-0x00003ffff w ofts
70 u64 reg_blk_w_ofts
[] = {
72 /*-------------------------------------------------------------------*/
73 [reg_blk_cfg
] = 0x0000000000002000,
74 [reg_blk_sh
] = 0x0000000000002c00,
75 [reg_blk_ctx
] = 0x000000000000a000,
84 /* may add a gfx blk version mask, gfx6 for now */
85 struct reg_desc reg_descs
[] = {
91 /*-------------------------------------------------------------------*/
95 "SPI_SHADER_PGM_LO_PS"
100 "SPI_SHADER_PGM_HI_PS"
105 "SPI_SHADER_PGM_RSRC1_PS"
110 "SPI_SHADER_PGM_RSRC2_PS"
115 "SPI_SHADER_USER_DATA_PS_2"
120 "SPI_SHADER_USER_DATA_PS_3"
125 "SPI_SHADER_PGM_LO_VS"
130 "SPI_SHADER_PGM_HI_VS"
135 "SPI_SHADER_PGM_RSRC1_VS"
140 "SPI_SHADER_PGM_RSRC2_VS"
145 "SPI_SHADER_USER_DATA_VS_2"
150 "SPI_SHADER_USER_DATA_VS_3"
155 "SPI_SHADER_USER_DATA_VS_4"
160 "SPI_SHADER_USER_DATA_VS_5"
165 "SPI_SHADER_USER_DATA_VS_6"
170 "SPI_SHADER_USER_DATA_VS_7"
172 /*-------------------------------------------------------------------*/
186 "DB_RENDER_OVERRIDE2"
201 "PA_SC_WINDOW_SCISSOR_BR"
211 "PA_SC_CLIPRECT_RULE"
221 "PA_SC_VPORT_SCISSOR_0_TL"
226 "PA_SC_VPORT_SCISSOR_0_BR"
251 "PA_CL_VPORT_XOFFSET"
261 "PA_CL_VPORT_YOFFSET"
271 "PA_CL_VPORT_ZOFFSET"
276 "SPI_PS_INPUT_CNTL_0"
296 "SPI_INTERP_CONTROL_0"
316 "SPI_SHADER_POS_FORMAT"
321 "SPI_SHADER_Z_FORMAT"
326 "SPI_SHADER_COL_FORMAT"
411 "PA_SU_PRIM_FILTER_CNTL"
431 "VGT_GS_OUT_PRIM_TYPE"
441 "VGT_MULTI_PRIM_IB_RESET_EN"
456 "VGT_SHADER_STAGES_EN"
466 "PA_SC_CENTROID_PRIORITY_0"
471 "PA_SC_CENTROID_PRIORITY_1"
491 "PA_CL_GB_VERT_CLIP_ADJ"
496 "PA_CL_GB_VERT_DISC_ADJ"
501 "PA_CL_GB_HORZ_CLIP_ADJ"
506 "PA_CL_GB_HORZ_DISC_ADJ"
511 "PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0"
516 "PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_0"
521 "PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_0"
526 "PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_0"
531 "PA_SC_AA_MASK_X0Y0_X1Y0"
536 "PA_SC_AA_MASK_X0Y1_X1Y1"
541 "PA_SC_CONSERVATIVE_RASTERIZATION_CNTL"
576 "CB_COLOR0_DCC_CONTROL"
586 "CB_COLOR0_CMASK_SLICE"
596 "CB_COLOR0_FMASK_SLICE"