llvmpipe: only use accurate_a0 hack if there are no textures bound
authorRoland Scheidegger <sroland@vmware.com>
Sat, 18 Feb 2023 16:11:04 +0000 (17:11 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Feb 2023 17:15:34 +0000 (17:15 +0000)
commit427ac51c10eb05a27e0c53f8195c5189ed977da7
treeb48e427a300b4bed4f8d172a94f6ee7bad7f0bdd
parent9390766b830c776f1437aedda20f4ee741631d97
llvmpipe: only use accurate_a0 hack if there are no textures bound

This hack caused problems with some dx9 tests before (due to mipgen
test using nearest filter sampling with tex coords exactly between two
texels hence being extremely sensitive to arithmetic inaccuracies),
and we can no longer distinguish this by using pixel_offset to not get
it enabled. But to pass other tests we don't really need the hack when
there's texture sampling involved anyway.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21407>
src/gallium/drivers/llvmpipe/lp_setup_tri.c