From adbec817d39286a6dfead7d2e4a9eeca720e8edb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 28 May 2019 19:56:08 -0400 Subject: [PATCH] radeonsi/gfx10: update spi_map if API VS (as NGG) changes and PS doesn't Acked-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_state_shaders.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 7450fa6..7922ced 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -3849,7 +3849,9 @@ bool si_update_shaders(struct si_context *sctx) sctx->ps_shader.cso->db_shader_control | S_02880C_KILL_ENABLE(si_get_alpha_test_func(sctx) != PIPE_FUNC_ALWAYS); - if (si_pm4_state_changed(sctx, ps) || si_pm4_state_changed(sctx, vs) || + if (si_pm4_state_changed(sctx, ps) || + si_pm4_state_changed(sctx, vs) || + (key.u.ngg && si_pm4_state_changed(sctx, gs)) || sctx->sprite_coord_enable != rs->sprite_coord_enable || sctx->flatshade != rs->flatshade) { sctx->sprite_coord_enable = rs->sprite_coord_enable; -- 2.7.4