Mesa (master): r300-gallium: Fix relocation for textures.

Corbin Simpson csimpson at kemper.freedesktop.org
Tue Mar 17 09:14:07 UTC 2009


Module: Mesa
Branch: master
Commit: add896aec8783aedbaf8d0127d8da046ce2657b5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=add896aec8783aedbaf8d0127d8da046ce2657b5

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Mon Mar 16 09:48:07 2009 -0700

r300-gallium: Fix relocation for textures.

This keeps texture emit from invalidating CS.

---

 src/gallium/drivers/r300/r300_emit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index ea726b9..7b09a41 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -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;
 }
 




More information about the mesa-commit mailing list