OSDN Git Service

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 c8d2f44..b3d19a9 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 e1a6fae..f3674f9 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;