From: Jason Ekstrand Date: Fri, 22 Jan 2016 00:00:47 +0000 (-0800) Subject: nir/lower_system_values: Use the correct invication id for CS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13858a1c1aef407777a839b8a342ebe56c9b4c52;p=mesa.git nir/lower_system_values: Use the correct invication id for CS --- 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] *