iris: reemit blend state for alpha test function changes
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 22 Jul 2018 03:47:08 +0000 (20:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
fixes bin/fbo-alphatest-formats GL_EXT_texture_snorm

src/gallium/drivers/iris/iris_state.c

index 638a5e24e084332d037fe4739a6c0b15c72e1394..51b134b73e15f0e68044688614c43bb66053e6ff 100644 (file)
@@ -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;