From 13858a1c1aef407777a839b8a342ebe56c9b4c52 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 Jan 2016 16:00:47 -0800 Subject: [PATCH] nir/lower_system_values: Use the correct invication id for CS --- src/glsl/nir/nir_lower_system_values.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/nir_lower_system_values.c b/src/glsl/nir/nir_lower_system_values.c index 69d0554fbca..aeaa3107c1f 100644 --- a/src/glsl/nir/nir_lower_system_values.c +++ b/src/glsl/nir/nir_lower_system_values.c @@ -89,7 +89,7 @@ convert_block(nir_block *block, void *void_state) * gl_WorkGroupSize.x + gl_LocalInvocationID.x" */ nir_ssa_def *local_id = - nir_load_system_value(b, nir_intrinsic_load_invocation_id, 0); + nir_load_system_value(b, nir_intrinsic_load_local_invocation_id, 0); unsigned stride_y = b->shader->info.cs.local_size[0]; unsigned stride_z = b->shader->info.cs.local_size[0] * -- 2.30.2