freedreno/ir3: respect tex prefetch limits
authorRob Clark <robdclark@chromium.org>
Thu, 11 Jun 2020 18:00:55 +0000 (11:00 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Jun 2020 21:59:54 +0000 (21:59 +0000)
commit562aaea07cc876a0a33fa3150659ceff9ee161f0
treefde67132ce0b829445ca82a54af39b5ae1944c57
parent4cabc25fa4c89c29e0338f00b20c6e87b087bcc2
freedreno/ir3: respect tex prefetch limits

Refactor a bit the limit checking in the bindless case, and add tex/samp
limit checking for the non-bindless case, to ensure we do not try to
prefetch textures which cannot be encoded in the # of bits available.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5431>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c