mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
make really sure R200_VAP_PROG_VTX_SHADER_ENABLE is never set when we're already in a tcl fallback, otherwise the chip will instantly lock up when vertex progs are enabled the next time not in a tcl fallback (fixes for instance guaranteed lockup running any program which uses vertex progs with tcl_mode=0 and then later with tcl_mode=1).
This commit is contained in:
parent
28e7219b96
commit
c5cb8e2c6f
2 changed files with 1 additions and 2 deletions
|
|
@ -545,7 +545,6 @@ static void transition_to_swtnl( GLcontext *ctx )
|
|||
* need to put the card into D3D mode to make it work:
|
||||
*/
|
||||
R200_STATECHANGE( rmesa, vap );
|
||||
/* not sure if it's strictly necessary to disable VAP_PROG_VTX_SHADER_ENABLE in addition to VAP_TCL_ENABLE) */
|
||||
rmesa->hw.vap.cmd[VAP_SE_VAP_CNTL] &= ~(R200_VAP_TCL_ENABLE|R200_VAP_PROG_VTX_SHADER_ENABLE);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -989,7 +989,7 @@ void r200SetupVertexProg( GLcontext *ctx ) {
|
|||
fallback = !(vp->native && r200VertexProgUpdateParams(ctx, vp) &&
|
||||
rmesa->r200Screen->drmSupportsVertexProgram);
|
||||
TCL_FALLBACK(ctx, R200_TCL_FALLBACK_VERTEX_PROGRAM, fallback);
|
||||
if (fallback) return;
|
||||
if (rmesa->TclFallback) return;
|
||||
|
||||
R200_STATECHANGE( rmesa, vap );
|
||||
/* FIXME: fglrx sets R200_VAP_SINGLE_BUF_STATE_ENABLE too. Do we need it?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue