r200: fix another cmdbuf sizing issue
authorDave Airlie <airlied@redhat.com>
Sat, 14 Feb 2009 09:10:13 +0000 (19:10 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 14 Feb 2009 10:13:55 +0000 (20:13 +1000)
src/mesa/drivers/dri/r200/r200_cmdbuf.c

index 55507be2515cdfcf1b71b1fcfde6643f85b09e7b..ae31bcb8311aa5c8acbe72d55d78a3d1b46d922f 100644 (file)
@@ -135,7 +135,7 @@ static void r200FireEB(r200ContextPtr rmesa, int vertex_count, int type)
        BATCH_LOCALS(&rmesa->radeon);
 
        if (vertex_count > 0) {
-               BEGIN_BATCH(8);
+               BEGIN_BATCH(8+2);
                OUT_BATCH_PACKET3(R200_CP_CMD_3D_DRAW_INDX_2, 0);
                OUT_BATCH(R200_VF_PRIM_WALK_IND |
                          ((vertex_count + 0) << 16) |