mesa/st: Don't set alpha if ALPHA_TEST is lowered

Alyssa Rosenzweig requested to merge alyssa/mesa:alpha into master

When PIPE_CAP_ALPHA_TEST is zero, the driver does not support alpha testing, so alpha shouldn't be set. In particular, alpha.enable should be zero, since logically alpha testing is not used in the ZSA CSO when it's lowered in the fragment shader key.

Fixes failing asserts in kicad, rvgl, etc with Panfrost since 6afd4add. (We could remove the assert in panfrost instead, but logically setting alpha.enabled on top of lowering the shader seems wrong?)

Signed-off-by: Alyssa Rosenzweig Reported-by: Icecream95 Tested-by: Urja Rannikko Tested-by: Robin Murphy Fixes: 6afd4add ("panfrost: Simplify depth/stencil/alpha")

Merge request reports