summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-27 02:42:57 +0200
committerMarek Olšák <[email protected]>2010-04-27 02:45:51 +0200
commitb1ceadf2ee11a961530645eec40624211298382d (patch)
treed4954fe3dd0b30db2747174475facf13201eef75 /src/gallium
parent03b3c107749c2e132c584a90c67ae04ce536cfca (diff)
r300g: reserve CS space for index offset
This has caused CS overflow since the commit 671f1e1229877d459cfd76e2cf5ea89c8d881036. TA3D works here again.
Diffstat (limited to 'src/gallium')
-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 b95a24a5bf0..86be3bd448c 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -235,7 +235,7 @@ void r500_emit_draw_arrays_immediate(struct r300_context *r300,
dwords = 9 + count * vertex_size;
- r300_reserve_cs_space(r300, r300_get_num_dirty_dwords(r300) + dwords);
+ r300_reserve_cs_space(r300, r300_get_num_dirty_dwords(r300) + 2 + dwords);
r300_emit_buffer_validate(r300, FALSE, NULL);
r300_emit_dirty_state(r300);