diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-17 21:09:49 +1000 |
---|---|---|
committer | Alex Deucher <alex@botch2.com> | 2008-05-02 15:12:37 -0400 |
commit | 5a143e91dcaf64d77694b85671c214f93e3e8512 (patch) | |
tree | f0c071fe354b120d521eab84417e4f709631a0db /src/mesa/drivers/dri/r300/r300_emit.h | |
parent | 8aa98a409b16cfd1a035c3f60208207eb1cc4d41 (diff) | |
download | external_mesa3d-5a143e91dcaf64d77694b85671c214f93e3e8512.zip external_mesa3d-5a143e91dcaf64d77694b85671c214f93e3e8512.tar.gz external_mesa3d-5a143e91dcaf64d77694b85671c214f93e3e8512.tar.bz2 |
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 a6d69ec..a4f6ab9 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; |