summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-04-04 02:19:48 -0700
committerCorbin Simpson <[email protected]>2009-04-04 02:19:48 -0700
commit23639ddbaea67185c87c9e2332f10ba95723b2cb (patch)
treed2edf82a17019ec7745c356cdbabe7add10728d3
parent5c50218d009a4c8276aa561bd1483742cf6aa20e (diff)
r300-gallium: Fix bad register write.
-rw-r--r--src/gallium/drivers/r300/r300_emit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 0ee32334460..f28404152f0 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -370,15 +370,16 @@ void r300_emit_viewport_state(struct r300_context* r300,
{
CS_LOCALS(r300);
- BEGIN_CS(7);
- OUT_CS_REG_SEQ(R300_SE_VPORT_XSCALE, 7);
+ BEGIN_CS(9);
+ OUT_CS_REG_SEQ(R300_SE_VPORT_XSCALE, 6);
OUT_CS_32F(viewport->xscale);
OUT_CS_32F(viewport->xoffset);
OUT_CS_32F(viewport->yscale);
OUT_CS_32F(viewport->yoffset);
OUT_CS_32F(viewport->zscale);
OUT_CS_32F(viewport->zoffset);
- OUT_CS(viewport->vte_control);
+
+ OUT_CS_REG(R300_VAP_VTE_CNTL, viewport->vte_control);
END_CS;
}