Lines Matching refs:val
1172 static inline uint32_t A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR() argument
1174 …return ((val) << A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHA… in A2XX_MH_MMU_CONFIG_RB_W_CLNT_BEHAVIOR()
1178 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR() argument
1180 …return ((val) << A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHA… in A2XX_MH_MMU_CONFIG_CP_W_CLNT_BEHAVIOR()
1184 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR() argument
1186 …return ((val) << A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BE… in A2XX_MH_MMU_CONFIG_CP_R0_CLNT_BEHAVIOR()
1190 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR() argument
1192 …return ((val) << A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BE… in A2XX_MH_MMU_CONFIG_CP_R1_CLNT_BEHAVIOR()
1196 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR() argument
1198 …return ((val) << A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BE… in A2XX_MH_MMU_CONFIG_CP_R2_CLNT_BEHAVIOR()
1202 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR() argument
1204 …return ((val) << A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BE… in A2XX_MH_MMU_CONFIG_CP_R3_CLNT_BEHAVIOR()
1208 static inline uint32_t A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR() argument
1210 …return ((val) << A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BE… in A2XX_MH_MMU_CONFIG_CP_R4_CLNT_BEHAVIOR()
1214 static inline uint32_t A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR() argument
1216 …return ((val) << A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_… in A2XX_MH_MMU_CONFIG_VGT_R0_CLNT_BEHAVIOR()
1220 static inline uint32_t A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR() argument
1222 …return ((val) << A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_… in A2XX_MH_MMU_CONFIG_VGT_R1_CLNT_BEHAVIOR()
1226 static inline uint32_t A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR() argument
1228 …return ((val) << A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHA… in A2XX_MH_MMU_CONFIG_TC_R_CLNT_BEHAVIOR()
1232 static inline uint32_t A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR(enum adreno_mmu_clnt_beh val) in A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR() argument
1234 …return ((val) << A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR__SHIFT) & A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHA… in A2XX_MH_MMU_CONFIG_PA_W_CLNT_BEHAVIOR()
1240 static inline uint32_t A2XX_MH_MMU_VA_RANGE_NUM_64KB_REGIONS(uint32_t val) in A2XX_MH_MMU_VA_RANGE_NUM_64KB_REGIONS() argument
1242 …return ((val) << A2XX_MH_MMU_VA_RANGE_NUM_64KB_REGIONS__SHIFT) & A2XX_MH_MMU_VA_RANGE_NUM_64KB_REG… in A2XX_MH_MMU_VA_RANGE_NUM_64KB_REGIONS()
1246 static inline uint32_t A2XX_MH_MMU_VA_RANGE_VA_BASE(uint32_t val) in A2XX_MH_MMU_VA_RANGE_VA_BASE() argument
1248 return ((val) << A2XX_MH_MMU_VA_RANGE_VA_BASE__SHIFT) & A2XX_MH_MMU_VA_RANGE_VA_BASE__MASK; in A2XX_MH_MMU_VA_RANGE_VA_BASE()
1357 static inline uint32_t A2XX_CP_PERFMON_CNTL_PERF_MODE_CNT(enum perf_mode_cnt val) in A2XX_CP_PERFMON_CNTL_PERF_MODE_CNT() argument
1359 …return ((val) << A2XX_CP_PERFMON_CNTL_PERF_MODE_CNT__SHIFT) & A2XX_CP_PERFMON_CNTL_PERF_MODE_CNT__… in A2XX_CP_PERFMON_CNTL_PERF_MODE_CNT()
1371 static inline uint32_t A2XX_RBBM_STATUS_CMDFIFO_AVAIL(uint32_t val) in A2XX_RBBM_STATUS_CMDFIFO_AVAIL() argument
1373 return ((val) << A2XX_RBBM_STATUS_CMDFIFO_AVAIL__SHIFT) & A2XX_RBBM_STATUS_CMDFIFO_AVAIL__MASK; in A2XX_RBBM_STATUS_CMDFIFO_AVAIL()
1398 static inline uint32_t A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT(uint32_t val) in A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT() argument
1400 …return ((val) << A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT__SHIFT) & A2XX_MH_ARBITER_CONFIG_SAME_PAGE… in A2XX_MH_ARBITER_CONFIG_SAME_PAGE_LIMIT()
1408 static inline uint32_t A2XX_MH_ARBITER_CONFIG_PAGE_SIZE(uint32_t val) in A2XX_MH_ARBITER_CONFIG_PAGE_SIZE() argument
1410 return ((val) << A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__SHIFT) & A2XX_MH_ARBITER_CONFIG_PAGE_SIZE__MASK; in A2XX_MH_ARBITER_CONFIG_PAGE_SIZE()
1417 static inline uint32_t A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT(uint32_t val) in A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT() argument
1419 …return ((val) << A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT__SHIFT) & A2XX_MH_ARBITER_CONFIG_IN_FLIGHT… in A2XX_MH_ARBITER_CONFIG_IN_FLIGHT_LIMIT()
1443 static inline uint32_t A2XX_A220_VSC_BIN_SIZE_WIDTH(uint32_t val) in A2XX_A220_VSC_BIN_SIZE_WIDTH() argument
1445 return ((val >> 5) << A2XX_A220_VSC_BIN_SIZE_WIDTH__SHIFT) & A2XX_A220_VSC_BIN_SIZE_WIDTH__MASK; in A2XX_A220_VSC_BIN_SIZE_WIDTH()
1449 static inline uint32_t A2XX_A220_VSC_BIN_SIZE_HEIGHT(uint32_t val) in A2XX_A220_VSC_BIN_SIZE_HEIGHT() argument
1451 return ((val >> 5) << A2XX_A220_VSC_BIN_SIZE_HEIGHT__SHIFT) & A2XX_A220_VSC_BIN_SIZE_HEIGHT__MASK; in A2XX_A220_VSC_BIN_SIZE_HEIGHT()
1479 static inline uint32_t A2XX_PA_SU_FACE_DATA_BASE_ADDR(uint32_t val) in A2XX_PA_SU_FACE_DATA_BASE_ADDR() argument
1481 return ((val) << A2XX_PA_SU_FACE_DATA_BASE_ADDR__SHIFT) & A2XX_PA_SU_FACE_DATA_BASE_ADDR__MASK; in A2XX_PA_SU_FACE_DATA_BASE_ADDR()
1488 static inline uint32_t A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_PIX(uint32_t val) in A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_PIX() argument
1490 …return ((val) << A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_PIX__SHIFT) & A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_PIX… in A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_PIX()
1494 static inline uint32_t A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_VTX(uint32_t val) in A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_VTX() argument
1496 …return ((val) << A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_VTX__SHIFT) & A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_VTX… in A2XX_SQ_GPR_MANAGEMENT_REG_SIZE_VTX()
1504 static inline uint32_t A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_PIX(uint32_t val) in A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_PIX() argument
1506 …return ((val) << A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_PIX__SHIFT) & A2XX_SQ_INST_STORE_MANAGMENT… in A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_PIX()
1510 static inline uint32_t A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_VTX(uint32_t val) in A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_VTX() argument
1512 …return ((val) << A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_VTX__SHIFT) & A2XX_SQ_INST_STORE_MANAGMENT… in A2XX_SQ_INST_STORE_MANAGMENT_INST_BASE_VTX()
1572 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT(uint32_t val) in A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT() argument
1574 …return ((val) << A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT__SHIFT) & A2XX_RB_BC_CONTROL_ACCUM_TIMEOU… in A2XX_RB_BC_CONTROL_ACCUM_TIMEOUT_SELECT()
1583 static inline uint32_t A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT(uint32_t val) in A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT() argument
1585 …return ((val) << A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT__SHIFT) & A2XX_RB_BC_CONTROL_AZ_THROTTLE_COU… in A2XX_RB_BC_CONTROL_AZ_THROTTLE_COUNT()
1593 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK(uint32_t val) in A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK() argument
1595 …return ((val) << A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK__SHIFT) & A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK… in A2XX_RB_BC_CONTROL_ACCUM_ALLOC_MASK()
1600 static inline uint32_t A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT(uint32_t val) in A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT() argument
1602 …return ((val) << A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT__SHIFT) & A2XX_RB_BC_CONTROL_ACCUM_DATA_… in A2XX_RB_BC_CONTROL_ACCUM_DATA_FIFO_LIMIT()
1606 static inline uint32_t A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT(uint32_t val) in A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT() argument
1608 …return ((val) << A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT__SHIFT) & A2XX_RB_BC_CONTROL_MEM_EXP… in A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT()
1623 static inline uint32_t A2XX_RB_SURFACE_INFO_SURFACE_PITCH(uint32_t val) in A2XX_RB_SURFACE_INFO_SURFACE_PITCH() argument
1625 …return ((val) << A2XX_RB_SURFACE_INFO_SURFACE_PITCH__SHIFT) & A2XX_RB_SURFACE_INFO_SURFACE_PITCH__… in A2XX_RB_SURFACE_INFO_SURFACE_PITCH()
1629 static inline uint32_t A2XX_RB_SURFACE_INFO_MSAA_SAMPLES(uint32_t val) in A2XX_RB_SURFACE_INFO_MSAA_SAMPLES() argument
1631 …return ((val) << A2XX_RB_SURFACE_INFO_MSAA_SAMPLES__SHIFT) & A2XX_RB_SURFACE_INFO_MSAA_SAMPLES__MA… in A2XX_RB_SURFACE_INFO_MSAA_SAMPLES()
1637 static inline uint32_t A2XX_RB_COLOR_INFO_FORMAT(enum a2xx_colorformatx val) in A2XX_RB_COLOR_INFO_FORMAT() argument
1639 return ((val) << A2XX_RB_COLOR_INFO_FORMAT__SHIFT) & A2XX_RB_COLOR_INFO_FORMAT__MASK; in A2XX_RB_COLOR_INFO_FORMAT()
1643 static inline uint32_t A2XX_RB_COLOR_INFO_ROUND_MODE(uint32_t val) in A2XX_RB_COLOR_INFO_ROUND_MODE() argument
1645 return ((val) << A2XX_RB_COLOR_INFO_ROUND_MODE__SHIFT) & A2XX_RB_COLOR_INFO_ROUND_MODE__MASK; in A2XX_RB_COLOR_INFO_ROUND_MODE()
1650 static inline uint32_t A2XX_RB_COLOR_INFO_ENDIAN(uint32_t val) in A2XX_RB_COLOR_INFO_ENDIAN() argument
1652 return ((val) << A2XX_RB_COLOR_INFO_ENDIAN__SHIFT) & A2XX_RB_COLOR_INFO_ENDIAN__MASK; in A2XX_RB_COLOR_INFO_ENDIAN()
1656 static inline uint32_t A2XX_RB_COLOR_INFO_SWAP(uint32_t val) in A2XX_RB_COLOR_INFO_SWAP() argument
1658 return ((val) << A2XX_RB_COLOR_INFO_SWAP__SHIFT) & A2XX_RB_COLOR_INFO_SWAP__MASK; in A2XX_RB_COLOR_INFO_SWAP()
1662 static inline uint32_t A2XX_RB_COLOR_INFO_BASE(uint32_t val) in A2XX_RB_COLOR_INFO_BASE() argument
1664 return ((val >> 12) << A2XX_RB_COLOR_INFO_BASE__SHIFT) & A2XX_RB_COLOR_INFO_BASE__MASK; in A2XX_RB_COLOR_INFO_BASE()
1670 static inline uint32_t A2XX_RB_DEPTH_INFO_DEPTH_FORMAT(enum adreno_rb_depth_format val) in A2XX_RB_DEPTH_INFO_DEPTH_FORMAT() argument
1672 return ((val) << A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT) & A2XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK; in A2XX_RB_DEPTH_INFO_DEPTH_FORMAT()
1676 static inline uint32_t A2XX_RB_DEPTH_INFO_DEPTH_BASE(uint32_t val) in A2XX_RB_DEPTH_INFO_DEPTH_BASE() argument
1678 return ((val >> 12) << A2XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT) & A2XX_RB_DEPTH_INFO_DEPTH_BASE__MASK; in A2XX_RB_DEPTH_INFO_DEPTH_BASE()
1689 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_TL_X(uint32_t val) in A2XX_PA_SC_SCREEN_SCISSOR_TL_X() argument
1691 return ((val) << A2XX_PA_SC_SCREEN_SCISSOR_TL_X__SHIFT) & A2XX_PA_SC_SCREEN_SCISSOR_TL_X__MASK; in A2XX_PA_SC_SCREEN_SCISSOR_TL_X()
1695 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_TL_Y(uint32_t val) in A2XX_PA_SC_SCREEN_SCISSOR_TL_Y() argument
1697 return ((val) << A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__SHIFT) & A2XX_PA_SC_SCREEN_SCISSOR_TL_Y__MASK; in A2XX_PA_SC_SCREEN_SCISSOR_TL_Y()
1704 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_BR_X(uint32_t val) in A2XX_PA_SC_SCREEN_SCISSOR_BR_X() argument
1706 return ((val) << A2XX_PA_SC_SCREEN_SCISSOR_BR_X__SHIFT) & A2XX_PA_SC_SCREEN_SCISSOR_BR_X__MASK; in A2XX_PA_SC_SCREEN_SCISSOR_BR_X()
1710 static inline uint32_t A2XX_PA_SC_SCREEN_SCISSOR_BR_Y(uint32_t val) in A2XX_PA_SC_SCREEN_SCISSOR_BR_Y() argument
1712 return ((val) << A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__SHIFT) & A2XX_PA_SC_SCREEN_SCISSOR_BR_Y__MASK; in A2XX_PA_SC_SCREEN_SCISSOR_BR_Y()
1718 static inline uint32_t A2XX_PA_SC_WINDOW_OFFSET_X(int32_t val) in A2XX_PA_SC_WINDOW_OFFSET_X() argument
1720 return ((val) << A2XX_PA_SC_WINDOW_OFFSET_X__SHIFT) & A2XX_PA_SC_WINDOW_OFFSET_X__MASK; in A2XX_PA_SC_WINDOW_OFFSET_X()
1724 static inline uint32_t A2XX_PA_SC_WINDOW_OFFSET_Y(int32_t val) in A2XX_PA_SC_WINDOW_OFFSET_Y() argument
1726 return ((val) << A2XX_PA_SC_WINDOW_OFFSET_Y__SHIFT) & A2XX_PA_SC_WINDOW_OFFSET_Y__MASK; in A2XX_PA_SC_WINDOW_OFFSET_Y()
1734 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_TL_X(uint32_t val) in A2XX_PA_SC_WINDOW_SCISSOR_TL_X() argument
1736 return ((val) << A2XX_PA_SC_WINDOW_SCISSOR_TL_X__SHIFT) & A2XX_PA_SC_WINDOW_SCISSOR_TL_X__MASK; in A2XX_PA_SC_WINDOW_SCISSOR_TL_X()
1740 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_TL_Y(uint32_t val) in A2XX_PA_SC_WINDOW_SCISSOR_TL_Y() argument
1742 return ((val) << A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__SHIFT) & A2XX_PA_SC_WINDOW_SCISSOR_TL_Y__MASK; in A2XX_PA_SC_WINDOW_SCISSOR_TL_Y()
1749 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_BR_X(uint32_t val) in A2XX_PA_SC_WINDOW_SCISSOR_BR_X() argument
1751 return ((val) << A2XX_PA_SC_WINDOW_SCISSOR_BR_X__SHIFT) & A2XX_PA_SC_WINDOW_SCISSOR_BR_X__MASK; in A2XX_PA_SC_WINDOW_SCISSOR_BR_X()
1755 static inline uint32_t A2XX_PA_SC_WINDOW_SCISSOR_BR_Y(uint32_t val) in A2XX_PA_SC_WINDOW_SCISSOR_BR_Y() argument
1757 return ((val) << A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__SHIFT) & A2XX_PA_SC_WINDOW_SCISSOR_BR_Y__MASK; in A2XX_PA_SC_WINDOW_SCISSOR_BR_Y()
1787 static inline uint32_t A2XX_RB_FOG_COLOR_FOG_RED(uint32_t val) in A2XX_RB_FOG_COLOR_FOG_RED() argument
1789 return ((val) << A2XX_RB_FOG_COLOR_FOG_RED__SHIFT) & A2XX_RB_FOG_COLOR_FOG_RED__MASK; in A2XX_RB_FOG_COLOR_FOG_RED()
1793 static inline uint32_t A2XX_RB_FOG_COLOR_FOG_GREEN(uint32_t val) in A2XX_RB_FOG_COLOR_FOG_GREEN() argument
1795 return ((val) << A2XX_RB_FOG_COLOR_FOG_GREEN__SHIFT) & A2XX_RB_FOG_COLOR_FOG_GREEN__MASK; in A2XX_RB_FOG_COLOR_FOG_GREEN()
1799 static inline uint32_t A2XX_RB_FOG_COLOR_FOG_BLUE(uint32_t val) in A2XX_RB_FOG_COLOR_FOG_BLUE() argument
1801 return ((val) << A2XX_RB_FOG_COLOR_FOG_BLUE__SHIFT) & A2XX_RB_FOG_COLOR_FOG_BLUE__MASK; in A2XX_RB_FOG_COLOR_FOG_BLUE()
1807 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILREF(uint32_t val) in A2XX_RB_STENCILREFMASK_BF_STENCILREF() argument
1809 …return ((val) << A2XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT) & A2XX_RB_STENCILREFMASK_BF_STENCILR… in A2XX_RB_STENCILREFMASK_BF_STENCILREF()
1813 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILMASK(uint32_t val) in A2XX_RB_STENCILREFMASK_BF_STENCILMASK() argument
1815 …return ((val) << A2XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT) & A2XX_RB_STENCILREFMASK_BF_STENCIL… in A2XX_RB_STENCILREFMASK_BF_STENCILMASK()
1819 static inline uint32_t A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK(uint32_t val) in A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK() argument
1821 …return ((val) << A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT) & A2XX_RB_STENCILREFMASK_BF_ST… in A2XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK()
1827 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILREF(uint32_t val) in A2XX_RB_STENCILREFMASK_STENCILREF() argument
1829 …return ((val) << A2XX_RB_STENCILREFMASK_STENCILREF__SHIFT) & A2XX_RB_STENCILREFMASK_STENCILREF__MA… in A2XX_RB_STENCILREFMASK_STENCILREF()
1833 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILMASK(uint32_t val) in A2XX_RB_STENCILREFMASK_STENCILMASK() argument
1835 …return ((val) << A2XX_RB_STENCILREFMASK_STENCILMASK__SHIFT) & A2XX_RB_STENCILREFMASK_STENCILMASK__… in A2XX_RB_STENCILREFMASK_STENCILMASK()
1839 static inline uint32_t A2XX_RB_STENCILREFMASK_STENCILWRITEMASK(uint32_t val) in A2XX_RB_STENCILREFMASK_STENCILWRITEMASK() argument
1841 …return ((val) << A2XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT) & A2XX_RB_STENCILREFMASK_STENCILW… in A2XX_RB_STENCILREFMASK_STENCILWRITEMASK()
1849 static inline uint32_t A2XX_PA_CL_VPORT_XSCALE(float val) in A2XX_PA_CL_VPORT_XSCALE() argument
1851 return ((fui(val)) << A2XX_PA_CL_VPORT_XSCALE__SHIFT) & A2XX_PA_CL_VPORT_XSCALE__MASK; in A2XX_PA_CL_VPORT_XSCALE()
1857 static inline uint32_t A2XX_PA_CL_VPORT_XOFFSET(float val) in A2XX_PA_CL_VPORT_XOFFSET() argument
1859 return ((fui(val)) << A2XX_PA_CL_VPORT_XOFFSET__SHIFT) & A2XX_PA_CL_VPORT_XOFFSET__MASK; in A2XX_PA_CL_VPORT_XOFFSET()
1865 static inline uint32_t A2XX_PA_CL_VPORT_YSCALE(float val) in A2XX_PA_CL_VPORT_YSCALE() argument
1867 return ((fui(val)) << A2XX_PA_CL_VPORT_YSCALE__SHIFT) & A2XX_PA_CL_VPORT_YSCALE__MASK; in A2XX_PA_CL_VPORT_YSCALE()
1873 static inline uint32_t A2XX_PA_CL_VPORT_YOFFSET(float val) in A2XX_PA_CL_VPORT_YOFFSET() argument
1875 return ((fui(val)) << A2XX_PA_CL_VPORT_YOFFSET__SHIFT) & A2XX_PA_CL_VPORT_YOFFSET__MASK; in A2XX_PA_CL_VPORT_YOFFSET()
1881 static inline uint32_t A2XX_PA_CL_VPORT_ZSCALE(float val) in A2XX_PA_CL_VPORT_ZSCALE() argument
1883 return ((fui(val)) << A2XX_PA_CL_VPORT_ZSCALE__SHIFT) & A2XX_PA_CL_VPORT_ZSCALE__MASK; in A2XX_PA_CL_VPORT_ZSCALE()
1889 static inline uint32_t A2XX_PA_CL_VPORT_ZOFFSET(float val) in A2XX_PA_CL_VPORT_ZOFFSET() argument
1891 return ((fui(val)) << A2XX_PA_CL_VPORT_ZOFFSET__SHIFT) & A2XX_PA_CL_VPORT_ZOFFSET__MASK; in A2XX_PA_CL_VPORT_ZOFFSET()
1897 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_REGS(uint32_t val) in A2XX_SQ_PROGRAM_CNTL_VS_REGS() argument
1899 return ((val) << A2XX_SQ_PROGRAM_CNTL_VS_REGS__SHIFT) & A2XX_SQ_PROGRAM_CNTL_VS_REGS__MASK; in A2XX_SQ_PROGRAM_CNTL_VS_REGS()
1903 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_PS_REGS(uint32_t val) in A2XX_SQ_PROGRAM_CNTL_PS_REGS() argument
1905 return ((val) << A2XX_SQ_PROGRAM_CNTL_PS_REGS__SHIFT) & A2XX_SQ_PROGRAM_CNTL_PS_REGS__MASK; in A2XX_SQ_PROGRAM_CNTL_PS_REGS()
1913 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT(uint32_t val) in A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT() argument
1915 …return ((val) << A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT__SHIFT) & A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COU… in A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_COUNT()
1919 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE(enum a2xx_sq_ps_vtx_mode val) in A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE() argument
1921 …return ((val) << A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE__SHIFT) & A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE… in A2XX_SQ_PROGRAM_CNTL_VS_EXPORT_MODE()
1925 static inline uint32_t A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE(uint32_t val) in A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE() argument
1927 …return ((val) << A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE__SHIFT) & A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE… in A2XX_SQ_PROGRAM_CNTL_PS_EXPORT_MODE()
1936 static inline uint32_t A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL(enum a2xx_sq_sample_cntl val) in A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL() argument
1938 …return ((val) << A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL__SHIFT) & A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL… in A2XX_SQ_CONTEXT_MISC_SC_SAMPLE_CNTL()
1942 static inline uint32_t A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS(uint32_t val) in A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS() argument
1944 …return ((val) << A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__SHIFT) & A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS__… in A2XX_SQ_CONTEXT_MISC_PARAM_GEN_POS()
1953 static inline uint32_t A2XX_SQ_INTERPOLATOR_CNTL_PARAM_SHADE(uint32_t val) in A2XX_SQ_INTERPOLATOR_CNTL_PARAM_SHADE() argument
1955 …return ((val) << A2XX_SQ_INTERPOLATOR_CNTL_PARAM_SHADE__SHIFT) & A2XX_SQ_INTERPOLATOR_CNTL_PARAM_S… in A2XX_SQ_INTERPOLATOR_CNTL_PARAM_SHADE()
1959 static inline uint32_t A2XX_SQ_INTERPOLATOR_CNTL_SAMPLING_PATTERN(uint32_t val) in A2XX_SQ_INTERPOLATOR_CNTL_SAMPLING_PATTERN() argument
1961 …return ((val) << A2XX_SQ_INTERPOLATOR_CNTL_SAMPLING_PATTERN__SHIFT) & A2XX_SQ_INTERPOLATOR_CNTL_SA… in A2XX_SQ_INTERPOLATOR_CNTL_SAMPLING_PATTERN()
1967 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_0(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_0() argument
1969 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_0__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_0__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_0()
1973 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_1(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_1() argument
1975 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_1__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_1__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_1()
1979 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_2(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_2() argument
1981 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_2__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_2__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_2()
1985 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_3(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_3() argument
1987 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_3__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_3__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_3()
1991 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_4(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_4() argument
1993 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_4__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_4__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_4()
1997 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_5(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_5() argument
1999 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_5__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_5__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_5()
2003 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_6(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_6() argument
2005 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_6__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_6__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_6()
2009 static inline uint32_t A2XX_SQ_WRAPPING_0_PARAM_WRAP_7(uint32_t val) in A2XX_SQ_WRAPPING_0_PARAM_WRAP_7() argument
2011 return ((val) << A2XX_SQ_WRAPPING_0_PARAM_WRAP_7__SHIFT) & A2XX_SQ_WRAPPING_0_PARAM_WRAP_7__MASK; in A2XX_SQ_WRAPPING_0_PARAM_WRAP_7()
2017 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_8(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_8() argument
2019 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_8__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_8__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_8()
2023 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_9(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_9() argument
2025 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_9__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_9__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_9()
2029 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_10(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_10() argument
2031 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_10__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_10__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_10()
2035 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_11(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_11() argument
2037 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_11__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_11__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_11()
2041 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_12(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_12() argument
2043 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_12__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_12__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_12()
2047 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_13(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_13() argument
2049 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_13__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_13__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_13()
2053 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_14(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_14() argument
2055 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_14__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_14__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_14()
2059 static inline uint32_t A2XX_SQ_WRAPPING_1_PARAM_WRAP_15(uint32_t val) in A2XX_SQ_WRAPPING_1_PARAM_WRAP_15() argument
2061 return ((val) << A2XX_SQ_WRAPPING_1_PARAM_WRAP_15__SHIFT) & A2XX_SQ_WRAPPING_1_PARAM_WRAP_15__MASK; in A2XX_SQ_WRAPPING_1_PARAM_WRAP_15()
2067 static inline uint32_t A2XX_SQ_PS_PROGRAM_BASE(uint32_t val) in A2XX_SQ_PS_PROGRAM_BASE() argument
2069 return ((val) << A2XX_SQ_PS_PROGRAM_BASE__SHIFT) & A2XX_SQ_PS_PROGRAM_BASE__MASK; in A2XX_SQ_PS_PROGRAM_BASE()
2073 static inline uint32_t A2XX_SQ_PS_PROGRAM_SIZE(uint32_t val) in A2XX_SQ_PS_PROGRAM_SIZE() argument
2075 return ((val) << A2XX_SQ_PS_PROGRAM_SIZE__SHIFT) & A2XX_SQ_PS_PROGRAM_SIZE__MASK; in A2XX_SQ_PS_PROGRAM_SIZE()
2081 static inline uint32_t A2XX_SQ_VS_PROGRAM_BASE(uint32_t val) in A2XX_SQ_VS_PROGRAM_BASE() argument
2083 return ((val) << A2XX_SQ_VS_PROGRAM_BASE__SHIFT) & A2XX_SQ_VS_PROGRAM_BASE__MASK; in A2XX_SQ_VS_PROGRAM_BASE()
2087 static inline uint32_t A2XX_SQ_VS_PROGRAM_SIZE(uint32_t val) in A2XX_SQ_VS_PROGRAM_SIZE() argument
2089 return ((val) << A2XX_SQ_VS_PROGRAM_SIZE__SHIFT) & A2XX_SQ_VS_PROGRAM_SIZE__MASK; in A2XX_SQ_VS_PROGRAM_SIZE()
2097 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE(enum pc_di_primtype val) in A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE() argument
2099 …return ((val) << A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__SHIFT) & A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE__MA… in A2XX_VGT_DRAW_INITIATOR_PRIM_TYPE()
2103 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT(enum pc_di_src_sel val) in A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT() argument
2105 …return ((val) << A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT__SHIFT) & A2XX_VGT_DRAW_INITIATOR_SOURCE_SE… in A2XX_VGT_DRAW_INITIATOR_SOURCE_SELECT()
2109 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_VIS_CULL(enum pc_di_vis_cull_mode val) in A2XX_VGT_DRAW_INITIATOR_VIS_CULL() argument
2111 return ((val) << A2XX_VGT_DRAW_INITIATOR_VIS_CULL__SHIFT) & A2XX_VGT_DRAW_INITIATOR_VIS_CULL__MASK; in A2XX_VGT_DRAW_INITIATOR_VIS_CULL()
2115 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE(enum pc_di_index_size val) in A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE() argument
2117 …return ((val) << A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__SHIFT) & A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE__… in A2XX_VGT_DRAW_INITIATOR_INDEX_SIZE()
2124 static inline uint32_t A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES(uint32_t val) in A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES() argument
2126 …return ((val) << A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES__SHIFT) & A2XX_VGT_DRAW_INITIATOR_NUM_INSTA… in A2XX_VGT_DRAW_INITIATOR_NUM_INSTANCES()
2138 static inline uint32_t A2XX_RB_DEPTHCONTROL_ZFUNC(enum adreno_compare_func val) in A2XX_RB_DEPTHCONTROL_ZFUNC() argument
2140 return ((val) << A2XX_RB_DEPTHCONTROL_ZFUNC__SHIFT) & A2XX_RB_DEPTHCONTROL_ZFUNC__MASK; in A2XX_RB_DEPTHCONTROL_ZFUNC()
2145 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFUNC(enum adreno_compare_func val) in A2XX_RB_DEPTHCONTROL_STENCILFUNC() argument
2147 return ((val) << A2XX_RB_DEPTHCONTROL_STENCILFUNC__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILFUNC__MASK; in A2XX_RB_DEPTHCONTROL_STENCILFUNC()
2151 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFAIL(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILFAIL() argument
2153 return ((val) << A2XX_RB_DEPTHCONTROL_STENCILFAIL__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILFAIL__MASK; in A2XX_RB_DEPTHCONTROL_STENCILFAIL()
2157 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZPASS(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILZPASS() argument
2159 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILZPASS__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILZPASS__MA… in A2XX_RB_DEPTHCONTROL_STENCILZPASS()
2163 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZFAIL(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILZFAIL() argument
2165 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILZFAIL__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILZFAIL__MA… in A2XX_RB_DEPTHCONTROL_STENCILZFAIL()
2169 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF(enum adreno_compare_func val) in A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF() argument
2171 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF… in A2XX_RB_DEPTHCONTROL_STENCILFUNC_BF()
2175 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF() argument
2177 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF… in A2XX_RB_DEPTHCONTROL_STENCILFAIL_BF()
2181 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF() argument
2183 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILZPASS_… in A2XX_RB_DEPTHCONTROL_STENCILZPASS_BF()
2187 static inline uint32_t A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF(enum adreno_stencil_op val) in A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF() argument
2189 …return ((val) << A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF__SHIFT) & A2XX_RB_DEPTHCONTROL_STENCILZFAIL_… in A2XX_RB_DEPTHCONTROL_STENCILZFAIL_BF()
2195 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND(enum adreno_rb_blend_factor val) in A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND() argument
2197 …return ((val) << A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND__SHIFT) & A2XX_RB_BLEND_CONTROL_COLOR_SRCBLE… in A2XX_RB_BLEND_CONTROL_COLOR_SRCBLEND()
2201 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN(enum a2xx_rb_blend_opcode val) in A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN() argument
2203 …return ((val) << A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN__SHIFT) & A2XX_RB_BLEND_CONTROL_COLOR_COMB_F… in A2XX_RB_BLEND_CONTROL_COLOR_COMB_FCN()
2207 static inline uint32_t A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND(enum adreno_rb_blend_factor val) in A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND() argument
2209 …return ((val) << A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND__SHIFT) & A2XX_RB_BLEND_CONTROL_COLOR_DESTB… in A2XX_RB_BLEND_CONTROL_COLOR_DESTBLEND()
2213 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND(enum adreno_rb_blend_factor val) in A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND() argument
2215 …return ((val) << A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND__SHIFT) & A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLE… in A2XX_RB_BLEND_CONTROL_ALPHA_SRCBLEND()
2219 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN(enum a2xx_rb_blend_opcode val) in A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN() argument
2221 …return ((val) << A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN__SHIFT) & A2XX_RB_BLEND_CONTROL_ALPHA_COMB_F… in A2XX_RB_BLEND_CONTROL_ALPHA_COMB_FCN()
2225 static inline uint32_t A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND(enum adreno_rb_blend_factor val) in A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND() argument
2227 …return ((val) << A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND__SHIFT) & A2XX_RB_BLEND_CONTROL_ALPHA_DESTB… in A2XX_RB_BLEND_CONTROL_ALPHA_DESTBLEND()
2235 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_FUNC(enum adreno_compare_func val) in A2XX_RB_COLORCONTROL_ALPHA_FUNC() argument
2237 return ((val) << A2XX_RB_COLORCONTROL_ALPHA_FUNC__SHIFT) & A2XX_RB_COLORCONTROL_ALPHA_FUNC__MASK; in A2XX_RB_COLORCONTROL_ALPHA_FUNC()
2246 static inline uint32_t A2XX_RB_COLORCONTROL_ROP_CODE(uint32_t val) in A2XX_RB_COLORCONTROL_ROP_CODE() argument
2248 return ((val) << A2XX_RB_COLORCONTROL_ROP_CODE__SHIFT) & A2XX_RB_COLORCONTROL_ROP_CODE__MASK; in A2XX_RB_COLORCONTROL_ROP_CODE()
2252 static inline uint32_t A2XX_RB_COLORCONTROL_DITHER_MODE(enum adreno_rb_dither_mode val) in A2XX_RB_COLORCONTROL_DITHER_MODE() argument
2254 return ((val) << A2XX_RB_COLORCONTROL_DITHER_MODE__SHIFT) & A2XX_RB_COLORCONTROL_DITHER_MODE__MASK; in A2XX_RB_COLORCONTROL_DITHER_MODE()
2258 static inline uint32_t A2XX_RB_COLORCONTROL_DITHER_TYPE(enum a2xx_rb_dither_type val) in A2XX_RB_COLORCONTROL_DITHER_TYPE() argument
2260 return ((val) << A2XX_RB_COLORCONTROL_DITHER_TYPE__SHIFT) & A2XX_RB_COLORCONTROL_DITHER_TYPE__MASK; in A2XX_RB_COLORCONTROL_DITHER_TYPE()
2265 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0(uint32_t val) in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0() argument
2267 …return ((val) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0__SHIFT) & A2XX_RB_COLORCONTROL_ALPHA_T… in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET0()
2271 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1(uint32_t val) in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1() argument
2273 …return ((val) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1__SHIFT) & A2XX_RB_COLORCONTROL_ALPHA_T… in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET1()
2277 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2(uint32_t val) in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2() argument
2279 …return ((val) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2__SHIFT) & A2XX_RB_COLORCONTROL_ALPHA_T… in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET2()
2283 static inline uint32_t A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3(uint32_t val) in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3() argument
2285 …return ((val) << A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3__SHIFT) & A2XX_RB_COLORCONTROL_ALPHA_T… in A2XX_RB_COLORCONTROL_ALPHA_TO_MASK_OFFSET3()
2291 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN() argument
2293 …return ((val) << A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN__… in A2XX_VGT_CURRENT_BIN_ID_MAX_COLUMN()
2297 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_ROW(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MAX_ROW() argument
2299 return ((val) << A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MAX_ROW__MASK; in A2XX_VGT_CURRENT_BIN_ID_MAX_ROW()
2303 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK() argument
2305 …return ((val) << A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MAX… in A2XX_VGT_CURRENT_BIN_ID_MAX_GUARD_BAND_MASK()
2313 static inline uint32_t A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF(enum a2xx_dx_clip_space val) in A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF() argument
2315 …return ((val) << A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF__SHIFT) & A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPA… in A2XX_PA_CL_CLIP_CNTL_DX_CLIP_SPACE_DEF()
2329 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_POLYMODE(enum a2xx_pa_su_sc_polymode val) in A2XX_PA_SU_SC_MODE_CNTL_POLYMODE() argument
2331 return ((val) << A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__SHIFT) & A2XX_PA_SU_SC_MODE_CNTL_POLYMODE__MASK; in A2XX_PA_SU_SC_MODE_CNTL_POLYMODE()
2335 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE(enum adreno_pa_su_sc_draw val) in A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE() argument
2337 …return ((val) << A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE__SHIFT) & A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE… in A2XX_PA_SU_SC_MODE_CNTL_FRONT_PTYPE()
2341 static inline uint32_t A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE(enum adreno_pa_su_sc_draw val) in A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE() argument
2343 …return ((val) << A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__SHIFT) & A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE__… in A2XX_PA_SU_SC_MODE_CNTL_BACK_PTYPE()
2377 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN() argument
2379 …return ((val) << A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN__… in A2XX_VGT_CURRENT_BIN_ID_MIN_COLUMN()
2383 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_ROW(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MIN_ROW() argument
2385 return ((val) << A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MIN_ROW__MASK; in A2XX_VGT_CURRENT_BIN_ID_MIN_ROW()
2389 static inline uint32_t A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK(uint32_t val) in A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK() argument
2391 …return ((val) << A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK__SHIFT) & A2XX_VGT_CURRENT_BIN_ID_MIN… in A2XX_VGT_CURRENT_BIN_ID_MIN_GUARD_BAND_MASK()
2397 static inline uint32_t A2XX_RB_MODECONTROL_EDRAM_MODE(enum a2xx_rb_edram_mode val) in A2XX_RB_MODECONTROL_EDRAM_MODE() argument
2399 return ((val) << A2XX_RB_MODECONTROL_EDRAM_MODE__SHIFT) & A2XX_RB_MODECONTROL_EDRAM_MODE__MASK; in A2XX_RB_MODECONTROL_EDRAM_MODE()
2409 static inline uint32_t A2XX_CLEAR_COLOR_RED(uint32_t val) in A2XX_CLEAR_COLOR_RED() argument
2411 return ((val) << A2XX_CLEAR_COLOR_RED__SHIFT) & A2XX_CLEAR_COLOR_RED__MASK; in A2XX_CLEAR_COLOR_RED()
2415 static inline uint32_t A2XX_CLEAR_COLOR_GREEN(uint32_t val) in A2XX_CLEAR_COLOR_GREEN() argument
2417 return ((val) << A2XX_CLEAR_COLOR_GREEN__SHIFT) & A2XX_CLEAR_COLOR_GREEN__MASK; in A2XX_CLEAR_COLOR_GREEN()
2421 static inline uint32_t A2XX_CLEAR_COLOR_BLUE(uint32_t val) in A2XX_CLEAR_COLOR_BLUE() argument
2423 return ((val) << A2XX_CLEAR_COLOR_BLUE__SHIFT) & A2XX_CLEAR_COLOR_BLUE__MASK; in A2XX_CLEAR_COLOR_BLUE()
2427 static inline uint32_t A2XX_CLEAR_COLOR_ALPHA(uint32_t val) in A2XX_CLEAR_COLOR_ALPHA() argument
2429 return ((val) << A2XX_CLEAR_COLOR_ALPHA__SHIFT) & A2XX_CLEAR_COLOR_ALPHA__MASK; in A2XX_CLEAR_COLOR_ALPHA()
2437 static inline uint32_t A2XX_PA_SU_POINT_SIZE_HEIGHT(float val) in A2XX_PA_SU_POINT_SIZE_HEIGHT() argument
2439 …return ((((uint32_t)(val * 16.0))) << A2XX_PA_SU_POINT_SIZE_HEIGHT__SHIFT) & A2XX_PA_SU_POINT_SIZE… in A2XX_PA_SU_POINT_SIZE_HEIGHT()
2443 static inline uint32_t A2XX_PA_SU_POINT_SIZE_WIDTH(float val) in A2XX_PA_SU_POINT_SIZE_WIDTH() argument
2445 …return ((((uint32_t)(val * 16.0))) << A2XX_PA_SU_POINT_SIZE_WIDTH__SHIFT) & A2XX_PA_SU_POINT_SIZE_… in A2XX_PA_SU_POINT_SIZE_WIDTH()
2451 static inline uint32_t A2XX_PA_SU_POINT_MINMAX_MIN(float val) in A2XX_PA_SU_POINT_MINMAX_MIN() argument
2453 …return ((((uint32_t)(val * 16.0))) << A2XX_PA_SU_POINT_MINMAX_MIN__SHIFT) & A2XX_PA_SU_POINT_MINMA… in A2XX_PA_SU_POINT_MINMAX_MIN()
2457 static inline uint32_t A2XX_PA_SU_POINT_MINMAX_MAX(float val) in A2XX_PA_SU_POINT_MINMAX_MAX() argument
2459 …return ((((uint32_t)(val * 16.0))) << A2XX_PA_SU_POINT_MINMAX_MAX__SHIFT) & A2XX_PA_SU_POINT_MINMA… in A2XX_PA_SU_POINT_MINMAX_MAX()
2465 static inline uint32_t A2XX_PA_SU_LINE_CNTL_WIDTH(float val) in A2XX_PA_SU_LINE_CNTL_WIDTH() argument
2467 …return ((((uint32_t)(val * 16.0))) << A2XX_PA_SU_LINE_CNTL_WIDTH__SHIFT) & A2XX_PA_SU_LINE_CNTL_WI… in A2XX_PA_SU_LINE_CNTL_WIDTH()
2473 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN(uint32_t val) in A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN() argument
2475 …return ((val) << A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN__SHIFT) & A2XX_PA_SC_LINE_STIPPLE_LINE_PATTE… in A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN()
2479 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT(uint32_t val) in A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT() argument
2481 …return ((val) << A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT__SHIFT) & A2XX_PA_SC_LINE_STIPPLE_REPEAT_COU… in A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT()
2485 …ic inline uint32_t A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER(enum a2xx_pa_sc_pattern_bit_order val) in A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER() argument
2487 …return ((val) << A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER__SHIFT) & A2XX_PA_SC_LINE_STIPPLE_PATTE… in A2XX_PA_SC_LINE_STIPPLE_PATTERN_BIT_ORDER()
2491 static inline uint32_t A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL(enum a2xx_pa_sc_auto_reset_cntl val) in A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL() argument
2493 …return ((val) << A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL__SHIFT) & A2XX_PA_SC_LINE_STIPPLE_AUTO_RE… in A2XX_PA_SC_LINE_STIPPLE_AUTO_RESET_CNTL()
2500 static inline uint32_t A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID(uint32_t val) in A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID() argument
2502 …return ((val) << A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID__SHIFT) & A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID__MA… in A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID()
2511 static inline uint32_t A2XX_PA_SC_LINE_CNTL_BRES_CNTL(uint32_t val) in A2XX_PA_SC_LINE_CNTL_BRES_CNTL() argument
2513 return ((val) << A2XX_PA_SC_LINE_CNTL_BRES_CNTL__SHIFT) & A2XX_PA_SC_LINE_CNTL_BRES_CNTL__MASK; in A2XX_PA_SC_LINE_CNTL_BRES_CNTL()
2522 static inline uint32_t A2XX_PA_SC_AA_CONFIG_MSAA_NUM_SAMPLES(uint32_t val) in A2XX_PA_SC_AA_CONFIG_MSAA_NUM_SAMPLES() argument
2524 …return ((val) << A2XX_PA_SC_AA_CONFIG_MSAA_NUM_SAMPLES__SHIFT) & A2XX_PA_SC_AA_CONFIG_MSAA_NUM_SAM… in A2XX_PA_SC_AA_CONFIG_MSAA_NUM_SAMPLES()
2528 static inline uint32_t A2XX_PA_SC_AA_CONFIG_MAX_SAMPLE_DIST(uint32_t val) in A2XX_PA_SC_AA_CONFIG_MAX_SAMPLE_DIST() argument
2530 …return ((val) << A2XX_PA_SC_AA_CONFIG_MAX_SAMPLE_DIST__SHIFT) & A2XX_PA_SC_AA_CONFIG_MAX_SAMPLE_DI… in A2XX_PA_SC_AA_CONFIG_MAX_SAMPLE_DIST()
2536 static inline uint32_t A2XX_PA_SU_VTX_CNTL_PIX_CENTER(enum a2xx_pa_pixcenter val) in A2XX_PA_SU_VTX_CNTL_PIX_CENTER() argument
2538 return ((val) << A2XX_PA_SU_VTX_CNTL_PIX_CENTER__SHIFT) & A2XX_PA_SU_VTX_CNTL_PIX_CENTER__MASK; in A2XX_PA_SU_VTX_CNTL_PIX_CENTER()
2542 static inline uint32_t A2XX_PA_SU_VTX_CNTL_ROUND_MODE(enum a2xx_pa_roundmode val) in A2XX_PA_SU_VTX_CNTL_ROUND_MODE() argument
2544 return ((val) << A2XX_PA_SU_VTX_CNTL_ROUND_MODE__SHIFT) & A2XX_PA_SU_VTX_CNTL_ROUND_MODE__MASK; in A2XX_PA_SU_VTX_CNTL_ROUND_MODE()
2548 static inline uint32_t A2XX_PA_SU_VTX_CNTL_QUANT_MODE(enum a2xx_pa_quantmode val) in A2XX_PA_SU_VTX_CNTL_QUANT_MODE() argument
2550 return ((val) << A2XX_PA_SU_VTX_CNTL_QUANT_MODE__SHIFT) & A2XX_PA_SU_VTX_CNTL_QUANT_MODE__MASK; in A2XX_PA_SU_VTX_CNTL_QUANT_MODE()
2556 static inline uint32_t A2XX_PA_CL_GB_VERT_CLIP_ADJ(float val) in A2XX_PA_CL_GB_VERT_CLIP_ADJ() argument
2558 return ((fui(val)) << A2XX_PA_CL_GB_VERT_CLIP_ADJ__SHIFT) & A2XX_PA_CL_GB_VERT_CLIP_ADJ__MASK; in A2XX_PA_CL_GB_VERT_CLIP_ADJ()
2564 static inline uint32_t A2XX_PA_CL_GB_VERT_DISC_ADJ(float val) in A2XX_PA_CL_GB_VERT_DISC_ADJ() argument
2566 return ((fui(val)) << A2XX_PA_CL_GB_VERT_DISC_ADJ__SHIFT) & A2XX_PA_CL_GB_VERT_DISC_ADJ__MASK; in A2XX_PA_CL_GB_VERT_DISC_ADJ()
2572 static inline uint32_t A2XX_PA_CL_GB_HORZ_CLIP_ADJ(float val) in A2XX_PA_CL_GB_HORZ_CLIP_ADJ() argument
2574 return ((fui(val)) << A2XX_PA_CL_GB_HORZ_CLIP_ADJ__SHIFT) & A2XX_PA_CL_GB_HORZ_CLIP_ADJ__MASK; in A2XX_PA_CL_GB_HORZ_CLIP_ADJ()
2580 static inline uint32_t A2XX_PA_CL_GB_HORZ_DISC_ADJ(float val) in A2XX_PA_CL_GB_HORZ_DISC_ADJ() argument
2582 return ((fui(val)) << A2XX_PA_CL_GB_HORZ_DISC_ADJ__SHIFT) & A2XX_PA_CL_GB_HORZ_DISC_ADJ__MASK; in A2XX_PA_CL_GB_HORZ_DISC_ADJ()
2588 static inline uint32_t A2XX_SQ_VS_CONST_BASE(uint32_t val) in A2XX_SQ_VS_CONST_BASE() argument
2590 return ((val) << A2XX_SQ_VS_CONST_BASE__SHIFT) & A2XX_SQ_VS_CONST_BASE__MASK; in A2XX_SQ_VS_CONST_BASE()
2594 static inline uint32_t A2XX_SQ_VS_CONST_SIZE(uint32_t val) in A2XX_SQ_VS_CONST_SIZE() argument
2596 return ((val) << A2XX_SQ_VS_CONST_SIZE__SHIFT) & A2XX_SQ_VS_CONST_SIZE__MASK; in A2XX_SQ_VS_CONST_SIZE()
2602 static inline uint32_t A2XX_SQ_PS_CONST_BASE(uint32_t val) in A2XX_SQ_PS_CONST_BASE() argument
2604 return ((val) << A2XX_SQ_PS_CONST_BASE__SHIFT) & A2XX_SQ_PS_CONST_BASE__MASK; in A2XX_SQ_PS_CONST_BASE()
2608 static inline uint32_t A2XX_SQ_PS_CONST_SIZE(uint32_t val) in A2XX_SQ_PS_CONST_SIZE() argument
2610 return ((val) << A2XX_SQ_PS_CONST_SIZE__SHIFT) & A2XX_SQ_PS_CONST_SIZE__MASK; in A2XX_SQ_PS_CONST_SIZE()
2622 static inline uint32_t A2XX_VGT_VERTEX_REUSE_BLOCK_CNTL_VTX_REUSE_DEPTH(uint32_t val) in A2XX_VGT_VERTEX_REUSE_BLOCK_CNTL_VTX_REUSE_DEPTH() argument
2624 …return ((val) << A2XX_VGT_VERTEX_REUSE_BLOCK_CNTL_VTX_REUSE_DEPTH__SHIFT) & A2XX_VGT_VERTEX_REUSE_… in A2XX_VGT_VERTEX_REUSE_BLOCK_CNTL_VTX_REUSE_DEPTH()
2630 static inline uint32_t A2XX_VGT_OUT_DEALLOC_CNTL_DEALLOC_DIST(uint32_t val) in A2XX_VGT_OUT_DEALLOC_CNTL_DEALLOC_DIST() argument
2632 …return ((val) << A2XX_VGT_OUT_DEALLOC_CNTL_DEALLOC_DIST__SHIFT) & A2XX_VGT_OUT_DEALLOC_CNTL_DEALLO… in A2XX_VGT_OUT_DEALLOC_CNTL_DEALLOC_DIST()
2638 static inline uint32_t A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT(enum a2xx_rb_copy_sample_select val) in A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT() argument
2640 …return ((val) << A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT__SHIFT) & A2XX_RB_COPY_CONTROL_COPY_SAMPL… in A2XX_RB_COPY_CONTROL_COPY_SAMPLE_SELECT()
2645 static inline uint32_t A2XX_RB_COPY_CONTROL_CLEAR_MASK(uint32_t val) in A2XX_RB_COPY_CONTROL_CLEAR_MASK() argument
2647 return ((val) << A2XX_RB_COPY_CONTROL_CLEAR_MASK__SHIFT) & A2XX_RB_COPY_CONTROL_CLEAR_MASK__MASK; in A2XX_RB_COPY_CONTROL_CLEAR_MASK()
2655 static inline uint32_t A2XX_RB_COPY_DEST_PITCH(uint32_t val) in A2XX_RB_COPY_DEST_PITCH() argument
2657 return ((val >> 5) << A2XX_RB_COPY_DEST_PITCH__SHIFT) & A2XX_RB_COPY_DEST_PITCH__MASK; in A2XX_RB_COPY_DEST_PITCH()
2663 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN(enum adreno_rb_surface_endian val) in A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN() argument
2665 …return ((val) << A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__SHIFT) & A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN__… in A2XX_RB_COPY_DEST_INFO_DEST_ENDIAN()
2670 static inline uint32_t A2XX_RB_COPY_DEST_INFO_FORMAT(enum a2xx_colorformatx val) in A2XX_RB_COPY_DEST_INFO_FORMAT() argument
2672 return ((val) << A2XX_RB_COPY_DEST_INFO_FORMAT__SHIFT) & A2XX_RB_COPY_DEST_INFO_FORMAT__MASK; in A2XX_RB_COPY_DEST_INFO_FORMAT()
2676 static inline uint32_t A2XX_RB_COPY_DEST_INFO_SWAP(uint32_t val) in A2XX_RB_COPY_DEST_INFO_SWAP() argument
2678 return ((val) << A2XX_RB_COPY_DEST_INFO_SWAP__SHIFT) & A2XX_RB_COPY_DEST_INFO_SWAP__MASK; in A2XX_RB_COPY_DEST_INFO_SWAP()
2682 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DITHER_MODE(enum adreno_rb_dither_mode val) in A2XX_RB_COPY_DEST_INFO_DITHER_MODE() argument
2684 …return ((val) << A2XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT) & A2XX_RB_COPY_DEST_INFO_DITHER_MODE__… in A2XX_RB_COPY_DEST_INFO_DITHER_MODE()
2688 static inline uint32_t A2XX_RB_COPY_DEST_INFO_DITHER_TYPE(enum a2xx_rb_dither_type val) in A2XX_RB_COPY_DEST_INFO_DITHER_TYPE() argument
2690 …return ((val) << A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__SHIFT) & A2XX_RB_COPY_DEST_INFO_DITHER_TYPE__… in A2XX_RB_COPY_DEST_INFO_DITHER_TYPE()
2700 static inline uint32_t A2XX_RB_COPY_DEST_OFFSET_X(uint32_t val) in A2XX_RB_COPY_DEST_OFFSET_X() argument
2702 return ((val) << A2XX_RB_COPY_DEST_OFFSET_X__SHIFT) & A2XX_RB_COPY_DEST_OFFSET_X__MASK; in A2XX_RB_COPY_DEST_OFFSET_X()
2706 static inline uint32_t A2XX_RB_COPY_DEST_OFFSET_Y(uint32_t val) in A2XX_RB_COPY_DEST_OFFSET_Y() argument
2708 return ((val) << A2XX_RB_COPY_DEST_OFFSET_Y__SHIFT) & A2XX_RB_COPY_DEST_OFFSET_Y__MASK; in A2XX_RB_COPY_DEST_OFFSET_Y()
2980 static inline uint32_t A2XX_SQ_TEX_0_TYPE(enum sq_tex_type val) in A2XX_SQ_TEX_0_TYPE() argument
2982 return ((val) << A2XX_SQ_TEX_0_TYPE__SHIFT) & A2XX_SQ_TEX_0_TYPE__MASK; in A2XX_SQ_TEX_0_TYPE()
2986 static inline uint32_t A2XX_SQ_TEX_0_SIGN_X(enum sq_tex_sign val) in A2XX_SQ_TEX_0_SIGN_X() argument
2988 return ((val) << A2XX_SQ_TEX_0_SIGN_X__SHIFT) & A2XX_SQ_TEX_0_SIGN_X__MASK; in A2XX_SQ_TEX_0_SIGN_X()
2992 static inline uint32_t A2XX_SQ_TEX_0_SIGN_Y(enum sq_tex_sign val) in A2XX_SQ_TEX_0_SIGN_Y() argument
2994 return ((val) << A2XX_SQ_TEX_0_SIGN_Y__SHIFT) & A2XX_SQ_TEX_0_SIGN_Y__MASK; in A2XX_SQ_TEX_0_SIGN_Y()
2998 static inline uint32_t A2XX_SQ_TEX_0_SIGN_Z(enum sq_tex_sign val) in A2XX_SQ_TEX_0_SIGN_Z() argument
3000 return ((val) << A2XX_SQ_TEX_0_SIGN_Z__SHIFT) & A2XX_SQ_TEX_0_SIGN_Z__MASK; in A2XX_SQ_TEX_0_SIGN_Z()
3004 static inline uint32_t A2XX_SQ_TEX_0_SIGN_W(enum sq_tex_sign val) in A2XX_SQ_TEX_0_SIGN_W() argument
3006 return ((val) << A2XX_SQ_TEX_0_SIGN_W__SHIFT) & A2XX_SQ_TEX_0_SIGN_W__MASK; in A2XX_SQ_TEX_0_SIGN_W()
3010 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_X(enum sq_tex_clamp val) in A2XX_SQ_TEX_0_CLAMP_X() argument
3012 return ((val) << A2XX_SQ_TEX_0_CLAMP_X__SHIFT) & A2XX_SQ_TEX_0_CLAMP_X__MASK; in A2XX_SQ_TEX_0_CLAMP_X()
3016 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_Y(enum sq_tex_clamp val) in A2XX_SQ_TEX_0_CLAMP_Y() argument
3018 return ((val) << A2XX_SQ_TEX_0_CLAMP_Y__SHIFT) & A2XX_SQ_TEX_0_CLAMP_Y__MASK; in A2XX_SQ_TEX_0_CLAMP_Y()
3022 static inline uint32_t A2XX_SQ_TEX_0_CLAMP_Z(enum sq_tex_clamp val) in A2XX_SQ_TEX_0_CLAMP_Z() argument
3024 return ((val) << A2XX_SQ_TEX_0_CLAMP_Z__SHIFT) & A2XX_SQ_TEX_0_CLAMP_Z__MASK; in A2XX_SQ_TEX_0_CLAMP_Z()
3028 static inline uint32_t A2XX_SQ_TEX_0_PITCH(uint32_t val) in A2XX_SQ_TEX_0_PITCH() argument
3030 return ((val >> 5) << A2XX_SQ_TEX_0_PITCH__SHIFT) & A2XX_SQ_TEX_0_PITCH__MASK; in A2XX_SQ_TEX_0_PITCH()
3037 static inline uint32_t A2XX_SQ_TEX_1_FORMAT(enum a2xx_sq_surfaceformat val) in A2XX_SQ_TEX_1_FORMAT() argument
3039 return ((val) << A2XX_SQ_TEX_1_FORMAT__SHIFT) & A2XX_SQ_TEX_1_FORMAT__MASK; in A2XX_SQ_TEX_1_FORMAT()
3043 static inline uint32_t A2XX_SQ_TEX_1_ENDIANNESS(enum sq_tex_endian val) in A2XX_SQ_TEX_1_ENDIANNESS() argument
3045 return ((val) << A2XX_SQ_TEX_1_ENDIANNESS__SHIFT) & A2XX_SQ_TEX_1_ENDIANNESS__MASK; in A2XX_SQ_TEX_1_ENDIANNESS()
3049 static inline uint32_t A2XX_SQ_TEX_1_REQUEST_SIZE(uint32_t val) in A2XX_SQ_TEX_1_REQUEST_SIZE() argument
3051 return ((val) << A2XX_SQ_TEX_1_REQUEST_SIZE__SHIFT) & A2XX_SQ_TEX_1_REQUEST_SIZE__MASK; in A2XX_SQ_TEX_1_REQUEST_SIZE()
3056 static inline uint32_t A2XX_SQ_TEX_1_CLAMP_POLICY(enum sq_tex_clamp_policy val) in A2XX_SQ_TEX_1_CLAMP_POLICY() argument
3058 return ((val) << A2XX_SQ_TEX_1_CLAMP_POLICY__SHIFT) & A2XX_SQ_TEX_1_CLAMP_POLICY__MASK; in A2XX_SQ_TEX_1_CLAMP_POLICY()
3062 static inline uint32_t A2XX_SQ_TEX_1_BASE_ADDRESS(uint32_t val) in A2XX_SQ_TEX_1_BASE_ADDRESS() argument
3064 return ((val >> 12) << A2XX_SQ_TEX_1_BASE_ADDRESS__SHIFT) & A2XX_SQ_TEX_1_BASE_ADDRESS__MASK; in A2XX_SQ_TEX_1_BASE_ADDRESS()
3070 static inline uint32_t A2XX_SQ_TEX_2_WIDTH(uint32_t val) in A2XX_SQ_TEX_2_WIDTH() argument
3072 return ((val) << A2XX_SQ_TEX_2_WIDTH__SHIFT) & A2XX_SQ_TEX_2_WIDTH__MASK; in A2XX_SQ_TEX_2_WIDTH()
3076 static inline uint32_t A2XX_SQ_TEX_2_HEIGHT(uint32_t val) in A2XX_SQ_TEX_2_HEIGHT() argument
3078 return ((val) << A2XX_SQ_TEX_2_HEIGHT__SHIFT) & A2XX_SQ_TEX_2_HEIGHT__MASK; in A2XX_SQ_TEX_2_HEIGHT()
3082 static inline uint32_t A2XX_SQ_TEX_2_DEPTH(uint32_t val) in A2XX_SQ_TEX_2_DEPTH() argument
3084 return ((val) << A2XX_SQ_TEX_2_DEPTH__SHIFT) & A2XX_SQ_TEX_2_DEPTH__MASK; in A2XX_SQ_TEX_2_DEPTH()
3090 static inline uint32_t A2XX_SQ_TEX_3_NUM_FORMAT(enum sq_tex_num_format val) in A2XX_SQ_TEX_3_NUM_FORMAT() argument
3092 return ((val) << A2XX_SQ_TEX_3_NUM_FORMAT__SHIFT) & A2XX_SQ_TEX_3_NUM_FORMAT__MASK; in A2XX_SQ_TEX_3_NUM_FORMAT()
3096 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_X(enum sq_tex_swiz val) in A2XX_SQ_TEX_3_SWIZ_X() argument
3098 return ((val) << A2XX_SQ_TEX_3_SWIZ_X__SHIFT) & A2XX_SQ_TEX_3_SWIZ_X__MASK; in A2XX_SQ_TEX_3_SWIZ_X()
3102 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_Y(enum sq_tex_swiz val) in A2XX_SQ_TEX_3_SWIZ_Y() argument
3104 return ((val) << A2XX_SQ_TEX_3_SWIZ_Y__SHIFT) & A2XX_SQ_TEX_3_SWIZ_Y__MASK; in A2XX_SQ_TEX_3_SWIZ_Y()
3108 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_Z(enum sq_tex_swiz val) in A2XX_SQ_TEX_3_SWIZ_Z() argument
3110 return ((val) << A2XX_SQ_TEX_3_SWIZ_Z__SHIFT) & A2XX_SQ_TEX_3_SWIZ_Z__MASK; in A2XX_SQ_TEX_3_SWIZ_Z()
3114 static inline uint32_t A2XX_SQ_TEX_3_SWIZ_W(enum sq_tex_swiz val) in A2XX_SQ_TEX_3_SWIZ_W() argument
3116 return ((val) << A2XX_SQ_TEX_3_SWIZ_W__SHIFT) & A2XX_SQ_TEX_3_SWIZ_W__MASK; in A2XX_SQ_TEX_3_SWIZ_W()
3120 static inline uint32_t A2XX_SQ_TEX_3_EXP_ADJUST(int32_t val) in A2XX_SQ_TEX_3_EXP_ADJUST() argument
3122 return ((val) << A2XX_SQ_TEX_3_EXP_ADJUST__SHIFT) & A2XX_SQ_TEX_3_EXP_ADJUST__MASK; in A2XX_SQ_TEX_3_EXP_ADJUST()
3126 static inline uint32_t A2XX_SQ_TEX_3_XY_MAG_FILTER(enum sq_tex_filter val) in A2XX_SQ_TEX_3_XY_MAG_FILTER() argument
3128 return ((val) << A2XX_SQ_TEX_3_XY_MAG_FILTER__SHIFT) & A2XX_SQ_TEX_3_XY_MAG_FILTER__MASK; in A2XX_SQ_TEX_3_XY_MAG_FILTER()
3132 static inline uint32_t A2XX_SQ_TEX_3_XY_MIN_FILTER(enum sq_tex_filter val) in A2XX_SQ_TEX_3_XY_MIN_FILTER() argument
3134 return ((val) << A2XX_SQ_TEX_3_XY_MIN_FILTER__SHIFT) & A2XX_SQ_TEX_3_XY_MIN_FILTER__MASK; in A2XX_SQ_TEX_3_XY_MIN_FILTER()
3138 static inline uint32_t A2XX_SQ_TEX_3_MIP_FILTER(enum sq_tex_filter val) in A2XX_SQ_TEX_3_MIP_FILTER() argument
3140 return ((val) << A2XX_SQ_TEX_3_MIP_FILTER__SHIFT) & A2XX_SQ_TEX_3_MIP_FILTER__MASK; in A2XX_SQ_TEX_3_MIP_FILTER()
3144 static inline uint32_t A2XX_SQ_TEX_3_ANISO_FILTER(enum sq_tex_aniso_filter val) in A2XX_SQ_TEX_3_ANISO_FILTER() argument
3146 return ((val) << A2XX_SQ_TEX_3_ANISO_FILTER__SHIFT) & A2XX_SQ_TEX_3_ANISO_FILTER__MASK; in A2XX_SQ_TEX_3_ANISO_FILTER()
3150 static inline uint32_t A2XX_SQ_TEX_3_BORDER_SIZE(uint32_t val) in A2XX_SQ_TEX_3_BORDER_SIZE() argument
3152 return ((val) << A2XX_SQ_TEX_3_BORDER_SIZE__SHIFT) & A2XX_SQ_TEX_3_BORDER_SIZE__MASK; in A2XX_SQ_TEX_3_BORDER_SIZE()
3158 static inline uint32_t A2XX_SQ_TEX_4_VOL_MAG_FILTER(enum sq_tex_filter val) in A2XX_SQ_TEX_4_VOL_MAG_FILTER() argument
3160 return ((val) << A2XX_SQ_TEX_4_VOL_MAG_FILTER__SHIFT) & A2XX_SQ_TEX_4_VOL_MAG_FILTER__MASK; in A2XX_SQ_TEX_4_VOL_MAG_FILTER()
3164 static inline uint32_t A2XX_SQ_TEX_4_VOL_MIN_FILTER(enum sq_tex_filter val) in A2XX_SQ_TEX_4_VOL_MIN_FILTER() argument
3166 return ((val) << A2XX_SQ_TEX_4_VOL_MIN_FILTER__SHIFT) & A2XX_SQ_TEX_4_VOL_MIN_FILTER__MASK; in A2XX_SQ_TEX_4_VOL_MIN_FILTER()
3170 static inline uint32_t A2XX_SQ_TEX_4_MIP_MIN_LEVEL(uint32_t val) in A2XX_SQ_TEX_4_MIP_MIN_LEVEL() argument
3172 return ((val) << A2XX_SQ_TEX_4_MIP_MIN_LEVEL__SHIFT) & A2XX_SQ_TEX_4_MIP_MIN_LEVEL__MASK; in A2XX_SQ_TEX_4_MIP_MIN_LEVEL()
3176 static inline uint32_t A2XX_SQ_TEX_4_MIP_MAX_LEVEL(uint32_t val) in A2XX_SQ_TEX_4_MIP_MAX_LEVEL() argument
3178 return ((val) << A2XX_SQ_TEX_4_MIP_MAX_LEVEL__SHIFT) & A2XX_SQ_TEX_4_MIP_MAX_LEVEL__MASK; in A2XX_SQ_TEX_4_MIP_MAX_LEVEL()
3184 static inline uint32_t A2XX_SQ_TEX_4_LOD_BIAS(float val) in A2XX_SQ_TEX_4_LOD_BIAS() argument
3186 return ((((int32_t)(val * 32.0))) << A2XX_SQ_TEX_4_LOD_BIAS__SHIFT) & A2XX_SQ_TEX_4_LOD_BIAS__MASK; in A2XX_SQ_TEX_4_LOD_BIAS()
3190 static inline uint32_t A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_H(uint32_t val) in A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_H() argument
3192 return ((val) << A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_H__SHIFT) & A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_H__MASK; in A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_H()
3196 static inline uint32_t A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_V(uint32_t val) in A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_V() argument
3198 return ((val) << A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_V__SHIFT) & A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_V__MASK; in A2XX_SQ_TEX_4_GRAD_EXP_ADJUST_V()
3204 static inline uint32_t A2XX_SQ_TEX_5_BORDER_COLOR(enum sq_tex_border_color val) in A2XX_SQ_TEX_5_BORDER_COLOR() argument
3206 return ((val) << A2XX_SQ_TEX_5_BORDER_COLOR__SHIFT) & A2XX_SQ_TEX_5_BORDER_COLOR__MASK; in A2XX_SQ_TEX_5_BORDER_COLOR()
3211 static inline uint32_t A2XX_SQ_TEX_5_TRI_CLAMP(uint32_t val) in A2XX_SQ_TEX_5_TRI_CLAMP() argument
3213 return ((val) << A2XX_SQ_TEX_5_TRI_CLAMP__SHIFT) & A2XX_SQ_TEX_5_TRI_CLAMP__MASK; in A2XX_SQ_TEX_5_TRI_CLAMP()
3217 static inline uint32_t A2XX_SQ_TEX_5_ANISO_BIAS(float val) in A2XX_SQ_TEX_5_ANISO_BIAS() argument
3219 …return ((((int32_t)(val * 1.0))) << A2XX_SQ_TEX_5_ANISO_BIAS__SHIFT) & A2XX_SQ_TEX_5_ANISO_BIAS__M… in A2XX_SQ_TEX_5_ANISO_BIAS()
3223 static inline uint32_t A2XX_SQ_TEX_5_DIMENSION(enum sq_tex_dimension val) in A2XX_SQ_TEX_5_DIMENSION() argument
3225 return ((val) << A2XX_SQ_TEX_5_DIMENSION__SHIFT) & A2XX_SQ_TEX_5_DIMENSION__MASK; in A2XX_SQ_TEX_5_DIMENSION()
3230 static inline uint32_t A2XX_SQ_TEX_5_MIP_ADDRESS(uint32_t val) in A2XX_SQ_TEX_5_MIP_ADDRESS() argument
3232 return ((val >> 12) << A2XX_SQ_TEX_5_MIP_ADDRESS__SHIFT) & A2XX_SQ_TEX_5_MIP_ADDRESS__MASK; in A2XX_SQ_TEX_5_MIP_ADDRESS()