nir/lower_system_values: Use the correct invication id for CS
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 00:00:47 +0000 (16:00 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 00:20:39 +0000 (16:20 -0800)
src/glsl/nir/nir_lower_system_values.c

index 69d0554fbca1b815e4d147fc6c52f87f3bde5b13..aeaa3107c1fffd4d6d9eefd98db0b3c0c736ba6c 100644 (file)
@@ -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] *