gallivm: fix oob txf swizzling
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 23 Apr 2022 15:40:48 +0000 (11:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 20:30:09 +0000 (20:30 +0000)
commitf5caaf2d750184deee2b991a7f2e2cded9980a94
treea499fc0036c5b31aebcf6389ab1c7aa209fd3e1b
parent8c8d08a8b811eca055b4cfda7d8d281d4adca825
gallivm: fix oob txf swizzling

this wasn't taking into account the format swizzle, returning broken
alpha values in most cases

Fixes: 0b6554ba6f2 ("gallivm,llvmpipe: handle TXF (texelFetch) instruction, including offsets")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16137>
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c