summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_emit.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-03-17 21:09:49 +1000
committerCorbin Simpson <MostAwesomeDude@gmail.com>2008-05-02 12:05:28 -0700
commit2ffa112ed32cf8123e5177a0fe2c12130c6f78c7 (patch)
tree3ff9631f5bd41eb659cbd238142062ecb9031098 /src/mesa/drivers/dri/r300/r300_emit.h
parentcd66f0e2d9e79b03b4773ccacf758fd3d141ccab (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.h12
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;