From 53beea574ffb19156e86d891f54316f9fabdd62a Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 2 Jun 2010 07:00:37 +0200 Subject: 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! --- src/gallium/drivers/r300/r300_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300/r300_render.c') 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; } -- cgit v1.2.3