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

Jordan Justen jordan.l.justen at intel.com
Tue May 24 08:37:55 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_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 7ee14d5..e15f395 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -605,6 +605,7 @@ brw_create_nir(struct brw_context *brw,
    }
 
    OPT(nir_lower_system_values);
+   OPT(brw_nir_lower_intrinsics);
    OPT_V(brw_nir_lower_uniforms, is_scalar);
 
    if (shader_prog) {
-- 
2.8.1



More information about the mesa-dev mailing list