diff options
author | Jason Ekstrand <[email protected]> | 2016-01-26 11:48:23 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-26 14:56:37 -0800 |
commit | 6ba67795db924832c1a209d1466abfa13d9d68d5 (patch) | |
tree | 9e4cc9173ba7b94509a853fc47ace70a96d4480f /src/glsl | |
parent | 1c3b7fe1ee28a53b972859fce7384db965771ef0 (diff) |
nir/spirv: Add proper support for InstanceIndex
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/spirv/vtn_variables.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |