diff options
author | Marek Olšák <[email protected]> | 2013-09-06 21:59:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-13 01:08:04 +0200 |
commit | f4e35f897e148eff3a2fc35fc48150321f8ab177 (patch) | |
tree | dca13c46d0097904bb03c1b4403469cf5e48a763 /src/gallium/drivers/radeon/r600_cs.h | |
parent | f317ce5c5d339b380e3f6740c167e082a3da752e (diff) |
radeonsi: fix and enable transform feedback for CIK
The CP_STRMOUT_CNTL register was moved again.
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_cs.h')
-rw-r--r-- | src/gallium/drivers/radeon/r600_cs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_cs.h b/src/gallium/drivers/radeon/r600_cs.h index f56c92c1017..fa749dad6c9 100644 --- a/src/gallium/drivers/radeon/r600_cs.h +++ b/src/gallium/drivers/radeon/r600_cs.h @@ -94,4 +94,18 @@ static INLINE void r600_write_context_reg(struct radeon_winsys_cs *cs, unsigned radeon_emit(cs, value); } +static INLINE void cik_write_uconfig_reg_seq(struct radeon_winsys_cs *cs, unsigned reg, unsigned num) +{ + assert(reg >= CIK_UCONFIG_REG_OFFSET && reg < CIK_UCONFIG_REG_END); + assert(cs->cdw+2+num <= RADEON_MAX_CMDBUF_DWORDS); + radeon_emit(cs, PKT3(PKT3_SET_UCONFIG_REG, num, 0)); + radeon_emit(cs, (reg - CIK_UCONFIG_REG_OFFSET) >> 2); +} + +static INLINE void cik_write_uconfig_reg(struct radeon_winsys_cs *cs, unsigned reg, unsigned value) +{ + cik_write_uconfig_reg_seq(cs, reg, 1); + radeon_emit(cs, value); +} + #endif |