This pass replaces the local id and local index intrinsics with i965 specific nir code.
It relies on the gl_i965_cs_thread_local_id uniform variable which actually varies per thread to provide a thread local id. Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> --- src/mesa/drivers/dri/i965/brw_program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 792f81b..a317bd2 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -103,6 +103,7 @@ brw_create_nir(struct brw_context *brw, } NIR_PASS(progress, nir, nir_lower_system_values); + NIR_PASS(progress, nir, brw_nir_lower_intrinsics); NIR_PASS_V(nir, brw_nir_lower_uniforms, is_scalar); if (shader_prog) { -- 2.8.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev