diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-17 21:09:49 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-17 21:09:49 +1000 |
commit | 1c71ec4d45a8da2a5c83b09e2e39d4a7c2ecc99b (patch) | |
tree | bcd4b15976dd11fdd9d9e373879b0bc6a18bdf2f /src/mesa/drivers/dri/r300/r300_emit.h | |
parent | 5da8289e9cc086ac9c010ee41d0c06161c240dbd (diff) |
some basic r500 portage
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_emit.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_emit.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.h b/src/mesa/drivers/dri/r300/r300_emit.h index a6d69ec5ff..a4f6ab997e 100644 --- a/src/mesa/drivers/dri/r300/r300_emit.h +++ b/src/mesa/drivers/dri/r300/r300_emit.h @@ -74,6 +74,18 @@ static inline uint32_t cmdvpu(int addr, int count) return cmd.u; } +static inline uint32_t cmdr500fp(int addr, int count) +{ + drm_r300_cmd_header_t cmd; + + cmd.vpu.cmd_type = R300_CMD_R500FP; + cmd.vpu.count = count; + cmd.vpu.adrhi = ((unsigned int)addr & 0xFF00) >> 8; + cmd.vpu.adrlo = ((unsigned int)addr & 0x00FF); + + return cmd.u; +} + static inline uint32_t cmdpacket3(int packet) { drm_r300_cmd_header_t cmd; |