glspirv: Enable the new deref-base UBO/SSBO path on gl_spirv
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 29 Dec 2018 14:08:50 +0000 (15:08 +0100)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Sun, 30 Jun 2019 21:58:27 +0000 (16:58 -0500)
commit2af2235a3281a182f6ed4a51a1f58f8a7dcee0e4
treef9c96596b547b79b7704ccfefdca7da0db551000
parentcae501b394131f51428860a6735bc62f72684343
glspirv: Enable the new deref-base UBO/SSBO path on gl_spirv

Among other things, it supports arrays of arrays of UBO/SSBO (default
codepath doesn't).

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
v2: nir_address_format_vk_index_offset got renamed to
    nir_address_format_32bit_index_offset (after rebase against master)

v3: the ptr_type fields in spirv_to_nir_options got changed to be of
    type nir_address_format.

v4: remove phys_ssbo_addr_format and push_const_addr_format as they are
    not used by glspirv

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/main/glspirv.c