diff options
author | Alex Deucher <[email protected]> | 2009-04-09 16:05:50 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-04-09 16:05:50 -0400 |
commit | 69edb8a156cb83e6658dfbe50f56ce4394a79e14 (patch) | |
tree | b8b6a43327481d1a2aea0034f0b2eeb674ba7bd1 /src/mesa/drivers/dri/r600/r600_emit.h | |
parent | e24e4ae2e8f69447c0917655d25fa96b62b94298 (diff) |
R600/r700: add new cmdbuf macros
Diffstat (limited to 'src/mesa/drivers/dri/r600/r600_emit.h')
-rw-r--r-- | src/mesa/drivers/dri/r600/r600_emit.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_emit.h b/src/mesa/drivers/dri/r600/r600_emit.h index bf106a8ad24..3e1cf1ff5f6 100644 --- a/src/mesa/drivers/dri/r600/r600_emit.h +++ b/src/mesa/drivers/dri/r600/r600_emit.h @@ -47,21 +47,10 @@ static INLINE uint32_t cmdpacket0(struct radeon_screen *rscrn, int reg, int count) { - if (!rscrn->kernel_mm) { - drm_r300_cmd_header_t cmd; - - cmd.u = 0; - cmd.packet0.cmd_type = R300_CMD_PACKET0; - cmd.packet0.count = count; - cmd.packet0.reghi = ((unsigned int)reg & 0xFF00) >> 8; - cmd.packet0.reglo = ((unsigned int)reg & 0x00FF); - - return cmd.u; - } - if (count) { - return CP_PACKET0(reg, count - 1); - } - return CP_PACKET2; + if (count) { + return CP_PACKET0(reg, count - 1); + } + return CP_PACKET2; } static INLINE uint32_t cmdvpu(struct radeon_screen *rscrn, int addr, int count) |