spirv: Add support for using derefs for UBO/SSBO access
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 15 Dec 2018 00:36:01 +0000 (18:36 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:30 +0000 (00:38 +0000)
commit63b9aa2e257475cdee0a1aafcd57c6f123d6e7e6
tree70dc52eeb9f910ec1f3a45ece9bd78a8ea4df3b8
parent3a7c5667c83f3a3f820a28af0e428bdfd010bd28
spirv: Add support for using derefs for UBO/SSBO access

For now, it's hidden behind a cap.  Hopefully, we can eventually drop
that along with all the manual offset code in spirv_to_nir.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c
src/compiler/nir/nir_intrinsics.py
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
src/intel/vulkan/anv_pipeline.c
src/mesa/main/glspirv.c