r300-gallium: Fix relocation for textures.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 16 Mar 2009 16:48:07 +0000 (09:48 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 17 Mar 2009 09:13:02 +0000 (02:13 -0700)
This keeps texture emit from invalidating CS.

src/gallium/drivers/r300/r300_emit.c

index ea726b9f9f2df67f64236ecd0e4b1bf4dea8a8c2..7b09a41f9c64755ee8df9e54e143c15e1d48c0e3 100644 (file)
@@ -301,8 +301,8 @@ void r300_emit_texture(struct r300_context* r300,
     OUT_CS_REG(R300_TX_FORMAT1_0 + (offset * 4), tex->state.format1);
     OUT_CS_REG(R300_TX_FORMAT2_0 + (offset * 4), tex->state.format2);
     OUT_CS_REG_SEQ(R300_TX_OFFSET_0 + (offset * 4), 1);
-    OUT_CS_RELOC(tex->buffer, 0, 0, RADEON_GEM_DOMAIN_GTT |
-            RADEON_GEM_DOMAIN_VRAM, 0);
+    OUT_CS_RELOC(tex->buffer, 0,
+            RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM, 0, 0);
     END_CS;
 }