r300-gallium: Fix bad register write.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 4 Apr 2009 09:19:48 +0000 (02:19 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 4 Apr 2009 09:19:48 +0000 (02:19 -0700)
src/gallium/drivers/r300/r300_emit.c

index 0ee32334460fa82af571207a1335bf9daf4699ed..f28404152f0b774e14c658723e4728609484ce7d 100644 (file)
@@ -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;
 }