From: Jason Ekstrand Date: Tue, 26 Jan 2016 19:48:23 +0000 (-0800) Subject: nir/spirv: Add proper support for InstanceIndex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ba67795db924832c1a209d1466abfa13d9d68d5;p=mesa.git nir/spirv: Add proper support for InstanceIndex --- diff --git a/src/glsl/nir/spirv/vtn_variables.c b/src/glsl/nir/spirv/vtn_variables.c index 8fea43b2e96..dd006c355d9 100644 --- a/src/glsl/nir/spirv/vtn_variables.c +++ b/src/glsl/nir/spirv/vtn_variables.c @@ -784,7 +784,9 @@ vtn_get_builtin_location(struct vtn_builder *b, set_mode_system_value(mode); break; case SpvBuiltInInstanceIndex: - /* XXX */ + *location = SYSTEM_VALUE_INSTANCE_INDEX; + set_mode_system_value(mode); + break; case SpvBuiltInInstanceId: *location = SYSTEM_VALUE_INSTANCE_ID; set_mode_system_value(mode);