From 69edb8a156cb83e6658dfbe50f56ce4394a79e14 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 9 Apr 2009 16:05:50 -0400 Subject: R600/r700: add new cmdbuf macros --- src/mesa/drivers/dri/r600/r600_emit.h | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/mesa/drivers/dri/r600/r600_emit.h') 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) -- cgit v1.2.3