glsl/nir: fetch the type for images from the deref instruction
authorKarol Herbst <kherbst@redhat.com>
Thu, 28 Mar 2019 22:47:07 +0000 (23:47 +0100)
committerKarol Herbst <kherbst@redhat.com>
Fri, 12 Apr 2019 07:02:59 +0000 (09:02 +0200)
commit0b2e8d9e17452c62d1cc08ca290b0984ae592899
tree60edd06c7f01e7c3d971d7337be48039d249fc2f
parentd7bbb3caf19e6e0f2dd47855babb8f5e91596e77
glsl/nir: fetch the type for images from the deref instruction

fixes retrieving the sampler type for bindless images stored inside structs.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/glsl_to_nir.cpp