llvmpipe: fix texcoord analysis regression
authorBrian Paul <brianp@vmware.com>
Mon, 25 Jul 2022 17:39:12 +0000 (11:39 -0600)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Jul 2022 15:51:27 +0000 (15:51 +0000)
commit7023cab0935c4286ab6dc011e22fe76e4a47f85a
treec53fdde5452e36aa0f7f5c81b065b37c613a66a4
parent22d860fe4a313da889aa7a2894007f19cd0db7f5
llvmpipe: fix texcoord analysis regression

The texcoord component can be specifed by the src registers swizzle
or the variable's location_frac field.

Signed-off-by: Brian Paul <brianp@vmware.com>
Fixes: 90d011de8ee ("llvmpipe: fix texcoord analysis in llvmpipe_nir_fn_is_linear_compat()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6889
Reviewed-by: Emma Anholt <emma@anholt.net>
Tested-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17743>
src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c