gallivm/sample: fix lod query on array textures.
authorDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 01:09:19 +0000 (11:09 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2020 00:16:27 +0000 (10:16 +1000)
commit7893dfa247c5b4ff263847537fbe7265423e2664
tree4ad661bf6f706968ac2409e0310b4e7111e83146
parentda4f2215aac827b9e60ea7699d9fd95e1e16a373
gallivm/sample: fix lod query on array textures.

The lod query doesn't take a layer, but the code tries to use one,
detect lodq and don't use a layer in those cases.

There appears to be no GL tests for this behaviour, but the vulkan
CTS hits it.

Fixes:
dEQP-VK.glsl.texture_functions.query.texturequerylod.*

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c