From c60a4de1f5a45920c55a645ce3879983a5eb35e9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 21 Jul 2018 20:47:08 -0700 Subject: [PATCH] iris: reemit blend state for alpha test function changes fixes bin/fbo-alphatest-formats GL_EXT_texture_snorm --- src/gallium/drivers/iris/iris_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 638a5e24e08..51b134b73e1 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -599,6 +599,9 @@ iris_bind_zsa_state(struct pipe_context *ctx, void *state) if (cso_changed(alpha.enabled)) ice->state.dirty |= IRIS_DIRTY_PS_BLEND | IRIS_DIRTY_BLEND_STATE; + + if (cso_changed(alpha.func)) + ice->state.dirty |= IRIS_DIRTY_BLEND_STATE; } ice->state.cso_zsa = new_cso; -- 2.30.2