spirv: Set nir_variable->explicit_binding
authorNeil Roberts <nroberts@igalia.com>
Fri, 23 Feb 2018 16:07:52 +0000 (17:07 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Jun 2018 12:25:05 +0000 (14:25 +0200)
commitb995bda9bca0d368f1433b153b64e5200d39bc1d
tree1f4f502ff8c9dc3a567d017738c224b007af115a
parent386f09be9b7984d99d7106b2ec10ba25d5cf2673
spirv: Set nir_variable->explicit_binding

When SpvDecorationBinding is encountered in the SPIR-V source it now
sets explicit_binding on the nir_variable. This will be used to
determine whether to initialise sampler and image uniforms with the
binding value.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c