glsl/nir: add support for lowering bindless images_derefs
authorKarol Herbst <kherbst@redhat.com>
Sun, 24 Mar 2019 19:43:55 +0000 (20:43 +0100)
committerKarol Herbst <kherbst@redhat.com>
Fri, 12 Apr 2019 07:02:59 +0000 (09:02 +0200)
commit4a3c04a11f41b5a280a4e284eb1795af2b1236a9
tree42702e1181fe7961238e6298d4ab714da53bc91d
parent0b2e8d9e17452c62d1cc08ca290b0984ae592899
glsl/nir: add support for lowering bindless images_derefs

v2: handle atomics as well
    make use of nir_rewrite_image_intrinsic
v3: remove call to nir_remove_dead_derefs
v4: (Timothy Arceri) dont actually call lowering yet

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v3)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/Makefile.sources
src/compiler/glsl/gl_nir.h
src/compiler/glsl/gl_nir_lower_bindless_images.c [new file with mode: 0644]
src/compiler/glsl/meson.build
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/gallium/drivers/iris/iris_program.c
src/intel/vulkan/anv_nir_apply_pipeline_layout.c
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp