mesa/src
Alyssa Rosenzweig c601e730b2 mesa/st: Don't set alpha if ALPHA_TEST is lowered
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 6afd4ad.
(We could remove the assert in panfrost instead, but logically setting
alpha.enabled on top of lowering the shader seems wrong?)

As Erik pointed out, this should improve CSO cache behaviour.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reported-by: Icecream95 <ixn@keemail.me>
Tested-by: Urja Rannikko <urjaman@gmail.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 6afd4addef ("panfrost: Simplify depth/stencil/alpha")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6523>
2020-09-02 07:21:33 -04:00
..
amd ac/llvm: add option to clamp division by zero 2020-09-02 11:53:16 +02:00
android_stub ci: Include enough Android headers to let us compile test EGL 2020-08-05 18:08:07 +00:00
broadcom broadcom/qpu_instr: wait is not a read or write vpm instruction 2020-08-31 15:02:42 +02:00
compiler spirv: fix retrieving dest type for OpFragmentMaskFetchAMD 2020-09-02 08:54:22 +02:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/x11: simplify dri2_initialize_x11() 2020-09-01 18:31:51 +00:00
etnaviv etnaviv: replace all dup() with os_dupfd_cloexec() 2020-06-18 02:09:56 +00:00
freedreno turnip: Implement VK_EXT_host_query_reset 2020-09-02 10:49:03 +00:00
gallium intel/disasm: Label support in shader disassembly for UIP/JIP 2020-09-02 10:33:29 +00:00
gbm meson: conditionally include -ldl in gbm pkg-config file 2020-08-31 09:14:57 +00:00
getopt
glx egl/x11_dri3: implement EGL_KHR_swap_buffers_with_damage 2020-08-19 12:47:58 +00:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui meson: drop intel_ prefix on imgui_core 2019-12-10 15:16:02 +00:00
intel intel/assembler: Add labels support 2020-09-02 10:33:29 +00:00
loader egl/x11_dri3: implement EGL_KHR_swap_buffers_with_damage 2020-08-19 12:47:58 +00:00
mapi src/mesa: add GL_NV_half_float extension support (v2) 2020-08-11 19:55:22 +00:00
mesa mesa/st: Don't set alpha if ALPHA_TEST is lowered 2020-09-02 07:21:33 -04:00
panfrost panfrost: add support for atomics 2020-09-01 21:04:09 +00:00
util radeonsi: use radeonsi_clamp_div_by_zero for SPECviewperf13, Road Redemption 2020-09-02 11:53:16 +02:00
virtio virgl: update protocol headers 2020-08-21 18:38:44 +00:00
vulkan vulkan/wsi/x11: wait for acquirable images in FIFO mode 2020-09-01 13:59:53 +02:00
meson.build meson: don't advertise TLS support if glx wasn't build with it 2020-08-31 09:14:57 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00