diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2016-05-22 22:31:06 -0700 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2016-06-01 19:29:02 -0700 |
commit | 0a3acff5b53d409181dcd2f31a4a50af06f73a57 (patch) | |
tree | 30cf2c701698d352b24d7958f08278f6d3809ba7 /src/mesa/drivers/dri/i965/brw_nir_intrinsics.c | |
parent | b1f22c6317940dac543e44dd638ea9f4fbcd6ca7 (diff) | |
download | external_mesa3d-0a3acff5b53d409181dcd2f31a4a50af06f73a57.zip external_mesa3d-0a3acff5b53d409181dcd2f31a4a50af06f73a57.tar.gz external_mesa3d-0a3acff5b53d409181dcd2f31a4a50af06f73a57.tar.bz2 |
i965: Remove old CS local ID handling
The old method pushed data for each channels uvec3 data of
gl_LocalInvocationID.
The new method pushes 1 dword of data that is a 'thread local ID'
value. Based on that value, we can generate gl_LocalInvocationIndex
and gl_LocalInvocationID with some calculations.
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir_intrinsics.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir_intrinsics.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c b/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c index 972b117..00155fb 100644 --- a/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c +++ b/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c @@ -161,13 +161,6 @@ brw_nir_lower_intrinsics(nir_shader *nir, struct brw_stage_prog_data *prog_data) state.nir = nir; state.prog_data = prog_data; - /* Currently this pass only lowers intrinsics using the uniform specified - * by thread_local_id_index. - */ - if (nir->stage == MESA_SHADER_COMPUTE && - state.cs_prog_data->thread_local_id_index < 0) - return false; - do { state.progress = false; nir_foreach_function(function, nir) { |