[Mesa-dev] [PATCH v2 11/13] squash i965: Run the intrinsics lowering pass

Jordan Justen jordan.l.justen at intel.com
Fri May 27 18:24:36 UTC 2016


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.justen at 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



More information about the mesa-dev mailing list