r300g: reserve CS space for index offset
authorMarek Olšák <maraeo@gmail.com>
Tue, 27 Apr 2010 00:42:57 +0000 (02:42 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 27 Apr 2010 00:45:51 +0000 (02:45 +0200)
This has caused CS overflow since the commit
671f1e1229877d459cfd76e2cf5ea89c8d881036.

TA3D works here again.

src/gallium/drivers/r300/r300_render.c

index b95a24a5bf033956ea537193ac6f55d78bbd5f91..86be3bd448c109332891480ed1be73afde99c7e7 100644 (file)
@@ -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);