r300g: emit viewport state as a dword table
authorMarek Olšák <maraeo@gmail.com>
Mon, 14 Jun 2010 00:51:29 +0000 (02:51 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 14 Jun 2010 10:46:37 +0000 (12:46 +0200)
src/gallium/drivers/r300/r300_emit.c

index 7c96e2b0311c18dbd1e93da069ef99414a0d73ab..96caf461489a18e9f28953a364c781a364be4a96 100644 (file)
@@ -813,12 +813,7 @@ void r300_emit_viewport_state(struct r300_context* r300,
 
     BEGIN_CS(size);
     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_TABLE(&viewport->xscale, 6);
     OUT_CS_REG(R300_VAP_VTE_CNTL, viewport->vte_control);
     END_CS;
 }