radeonsi: Emit pixel shader state even when only the vertex shader changed

Fixes random failures with piglit glsl-max-varyings.

NOTE: This is a candidate for the 9.1 branch.

Reviewed-by: Christian König <christian.koenig@amd.com>
(cherry picked from commit 032e5548b3)
This commit is contained in:
Michel Dänzer 2013-03-19 17:57:11 +01:00 committed by Ian Romanick
parent 0c5fa7ae0e
commit e0af764882

View file

@ -401,6 +401,11 @@ static void si_update_derived_state(struct r600_context *rctx)
}
if (si_pm4_state_changed(rctx, ps) || si_pm4_state_changed(rctx, vs)) {
/* XXX: Emitting the PS state even when only the VS changed
* fixes random failures with piglit glsl-max-varyings.
* Not sure why...
*/
rctx->emitted.named.ps = NULL;
si_update_spi_map(rctx);
}
}