r300: Remove calls to rcommonEnsureCmdBufSpace.
All rendering is checked in r300PredictTryDrawPrimsSize which mamde these calls useless.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user