summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2009-06-11 11:06:14 +0200
committerJerome Glisse <jglisse@redhat.com>2009-06-11 11:06:14 +0200
commitb445e5486804581ba4a7d1fce80c3ad2ed773325 (patch)
tree5c4e7b99e41d4be1c068765c1b23b4c03e912f4e
parent316598b96f07a38752c0c0f534feb025ee2a3235 (diff)
r300: fix indexed primitive rendering when using memory manager
-rw-r--r--src/mesa/drivers/dri/r300/r300_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c
index c2c532a9a8..1356305a21 100644
--- a/src/mesa/drivers/dri/r300/r300_render.c
+++ b/src/mesa/drivers/dri/r300/r300_render.c
@@ -364,7 +364,7 @@ void r300RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim)
* This is supposed to ensure that we can get all rendering
* commands into a single command buffer.
*/
- rcommonEnsureCmdBufSpace(&rmesa->radeon, 64, __FUNCTION__);
+ rcommonEnsureCmdBufSpace(&rmesa->radeon, 128, __FUNCTION__);
if (rmesa->ind_buf.ptr) {
if (num_verts > 65535) {
@@ -388,7 +388,7 @@ void r300RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim)
if (rmesa->radeon.radeonScreen->kernel_mm) {
BEGIN_BATCH_NO_AUTOSTATE(2);
OUT_BATCH_REGSEQ(R300_VAP_VF_MAX_VTX_INDX, 1);
- OUT_BATCH(num_verts);
+ OUT_BATCH(rmesa->radeon.tcl.aos[0].count);
END_BATCH();
}
r300FireEB(rmesa, num_verts, type);