mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
r600: r700PredictRenderSize can flush, so move index buffer setup after it
This commit is contained in:
parent
340436d8d2
commit
ec58dac86d
1 changed files with 1 additions and 1 deletions
|
|
@ -960,7 +960,6 @@ static GLboolean r700TryDrawPrims(GLcontext *ctx,
|
||||||
|
|
||||||
_tnl_UpdateFixedFunctionProgram(ctx);
|
_tnl_UpdateFixedFunctionProgram(ctx);
|
||||||
r700SetVertexFormat(ctx, arrays, max_index + 1);
|
r700SetVertexFormat(ctx, arrays, max_index + 1);
|
||||||
r700SetupIndexBuffer(ctx, ib);
|
|
||||||
/* shaders need to be updated before buffers are validated */
|
/* shaders need to be updated before buffers are validated */
|
||||||
r700UpdateShaders2(ctx);
|
r700UpdateShaders2(ctx);
|
||||||
if (!r600ValidateBuffers(ctx))
|
if (!r600ValidateBuffers(ctx))
|
||||||
|
|
@ -981,6 +980,7 @@ static GLboolean r700TryDrawPrims(GLcontext *ctx,
|
||||||
GLuint emit_end = r700PredictRenderSize(ctx, nr_prims)
|
GLuint emit_end = r700PredictRenderSize(ctx, nr_prims)
|
||||||
+ context->radeon.cmdbuf.cs->cdw;
|
+ context->radeon.cmdbuf.cs->cdw;
|
||||||
|
|
||||||
|
r700SetupIndexBuffer(ctx, ib);
|
||||||
r700SetupStreams2(ctx, arrays, max_index + 1);
|
r700SetupStreams2(ctx, arrays, max_index + 1);
|
||||||
|
|
||||||
radeonEmitState(radeon);
|
radeonEmitState(radeon);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue