spirv: Don't add 0.5 to array indicies for OpImageSampleExplicitLod
authorKarol Herbst <kherbst@redhat.com>
Tue, 3 Nov 2020 16:41:53 +0000 (17:41 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2021 02:21:52 +0000 (12:21 +1000)
commitf6ecd284e5dee852a87bdc77a1fab625d061b440
tree6e00488f6c69f470d595bed3bb491192bccdda81
parentab2cfeba4823a48c4abfe2a574082d483a88962d
spirv: Don't add 0.5 to array indicies for OpImageSampleExplicitLod

This fixes CLs 1.2 1Darray and 2Darray images.

Fixes: 589d918a4f9da83e3ae441aa674372a141d23349
       ("spirv: Add 0.5 to integer coordinates for OpImageSampleExplicitLod")

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13401>
src/compiler/spirv/spirv_to_nir.c