mesa: fix blending when using luminance/intensity emulation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 9 Aug 2022 20:56:08 +0000 (16:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 Aug 2022 14:24:52 +0000 (14:24 +0000)
commit4f28e2827c9ccc26dc608a870209b4deab7b5882
tree0d0ad002852f350fd3fd795e7d91c49d3bade4f4
parent3eec931e9b851fb399d3b00ef1f2f9f855910692
mesa: fix blending when using luminance/intensity emulation

neither of these have a real alpha channel, so reuse the xrgb blend
clamping here to ensure the "right" alpha value is used

cc: mesa-stable

fixes:
spec@arb_texture_float@fbo-blending-formats

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17687>
src/broadcom/ci/broadcom-rpi4-fails.txt
src/gallium/drivers/crocus/ci/crocus-g41-fails.txt
src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt
src/gallium/drivers/zink/ci/zink-lvp-fails.txt
src/mesa/main/fbobject.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_atom_blend.c