aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-02 07:00:37 +0200
committerMarek Olšák <[email protected]>2010-06-02 07:09:51 +0200
commit53beea574ffb19156e86d891f54316f9fabdd62a (patch)
tree59834595615dfc442893ec3dccfd6b4bbcb89e8c /src/gallium/drivers/r300/r300_render.c
parentb6b76cbb20b3d9467011231069e23972b98afa49 (diff)
r300g: use the stored GEM domain in add_buffer/write_reloc
I admit blitting to/from GTT is actually enforced in this commit, texture transfers are now damned fast!
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 952ff9938b0..83780037cf5 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -422,7 +422,7 @@ static void r300_emit_draw_elements(struct r300_context *r300,
(0 << R300_INDX_BUFFER_SKIP_SHIFT));
OUT_CS(offset_dwords << 2);
OUT_CS_BUF_RELOC(indexBuffer, count_dwords,
- R300_DOMAIN_GTT, 0, 0);
+ r300_buffer(indexBuffer)->domain, 0, 0);
END_CS;
}