[Mesa-dev] [PATCH 22/22] i965: Link uniforms of SPIR-V programs using the NIR linker

Alejandro Piñeiro apinheiro at igalia.com
Tue Apr 17 14:36:59 UTC 2018


From: Eduardo Lima Mitev <elima at igalia.com>

Signed-off-by: Eduardo Lima <elima at igalia.com>
Signed-off-by: Alejandro Piñeiro <apinheiro at igalia.com>
---
 src/mesa/drivers/dri/i965/brw_link.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
index 5bd9783aa01..007163cf229 100644
--- a/src/mesa/drivers/dri/i965/brw_link.cpp
+++ b/src/mesa/drivers/dri/i965/brw_link.cpp
@@ -260,6 +260,12 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
                                  compiler->scalar_stage[stage]);
    }
 
+   /* SPIR-V programs use a NIR linker */
+   if (shProg->data->spirv) {
+      if (!nir_link_uniforms(ctx, shProg))
+         return false;
+   }
+
    /* Determine first and last stage. */
    unsigned first = MESA_SHADER_STAGES;
    unsigned last = 0;
-- 
2.14.1



More information about the mesa-dev mailing list