spirv: translate default-block uniforms
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 22 Jun 2017 11:00:08 +0000 (13:00 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Jun 2018 12:25:05 +0000 (14:25 +0200)
commit23edc5b1ef36226a84a4e0bf325d05d3dbdff350
treef4d7f77a48c483f328ff906b29cc65408276c6ec
parent3d6664763dbbaea12ed0c485863adfffd912df68
spirv: translate default-block uniforms

They are supported by SPIR-V for ARB_gl_spirv.

v2 (changes on top of Nicolai's original patch):
   * Handle UniformConstant storage class for uniforms other than
     samplers and images. (Eduardo Lima)
   * Handle location decoration also for samplers and images. (Eduardo
     Lima)
   * Rebase update (spirv_to_nir options added, logging changes, and
     others) (Alejandro Piñeiro)

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Eduardo Lima <elima@igalia.com>
Signed-off-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c