nir/lower_tex: handle query lod with nir_lower_tex_packing_16 at lower_tex_packing
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 10 Jul 2020 22:36:23 +0000 (00:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 10:10:12 +0000 (10:10 +0000)
commit7f25f1f106728f0046672adf9c9ed79185265ea5
treec8736640fc164a9c9ff50d3968246f6a091ca835
parent6e2e77557ee377506c6d9ce6a47a1a6046ebe35a
nir/lower_tex: handle query lod with nir_lower_tex_packing_16 at lower_tex_packing

packing_16 with floats assumed 1 (shadow) or 4 components. But query
lod operations return 2.

Fixes the following test with v3dv:
dEQP-VK.ycbcr.query.lod.fragment.r8g8b8a8_unorm

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5863>
src/compiler/nir/nir_lower_tex.c