freedreno/a4xx: fix integer tg4
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 29 Nov 2021 06:44:32 +0000 (01:44 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Mar 2022 18:26:43 +0000 (18:26 +0000)
commit539fae796a547a174c1bb92951dbbb132493a01d
tree4678460f856ba72546328c0f6575688541be0866
parent96211adf771da5211b9d5d8178f1cee0626a0792
freedreno/a4xx: fix integer tg4

Something is slightly off in the integer values returned. It passes many
tests without the fixup, but the dEQP-GLES31 tests complain. The blob
ends up doing 3x gathers, and selects between them based on getinfo
results. Since we already have a per-sampler key with some spare bits,
just stick the bit-size info in there. And we can derive signedness from
the associated type info.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14670>
src/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_texture.c