r300: Remove calls to rcommonEnsureCmdBufSpace.
authorPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 20:48:39 +0000 (23:48 +0300)
committerPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 20:48:39 +0000 (23:48 +0300)
All rendering is checked in r300PredictTryDrawPrimsSize which mamde these calls useless.

src/mesa/drivers/dri/r300/r300_draw.c
src/mesa/drivers/dri/r300/r300_render.c

index c8d2f44fa18236a90bbd051416c4b92deb3541a7..b3d19a90c3099dabe4d52969b889ea279d6028c8 100644 (file)
@@ -621,10 +621,6 @@ static GLboolean r300TryDrawPrims(GLcontext *ctx,
 
        r300SwitchFallback(ctx, R300_FALLBACK_INVALID_BUFFERS, !r300ValidateBuffers(ctx));
 
-       rcommonEnsureCmdBufSpace(&r300->radeon,
-                           r300->radeon.hw.max_state_size + (60*sizeof(int)),
-                          __FUNCTION__);
-
        r300SetVertexFormat(ctx, arrays, max_index + 1);
 
        if (r300->fallback)
index e1a6fae57f380c326fc73e5119689a5ff01518b5..f3674f9c7b804f3a2fe5c906e46ab51353e1df46 100644 (file)
@@ -341,12 +341,6 @@ void r300RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim)
        if (type < 0 || num_verts <= 0)
                return;
 
-       /* Make space for at least 128 dwords.
-        * This is supposed to ensure that we can get all rendering
-        * commands into a single command buffer.
-        */
-       rcommonEnsureCmdBufSpace(&rmesa->radeon, 128, __FUNCTION__);
-
        if (rmesa->ind_buf.bo) {
                GLuint first, incr, offset = 0;