i965: call to gl_nir_link_uniform_blocks
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 30 Nov 2017 11:50:24 +0000 (12:50 +0100)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Sun, 30 Jun 2019 21:58:27 +0000 (16:58 -0500)
When using a SPIR-V shader. Note that needs to be done before linking
uniforms, so when creating the uniform storage entries, block_index
could be filled properly (among other things).

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_link.cpp

index 1c2025f7c1b83b694df1dd6f5436f6ea459c3910..e4e0b5fe330ccdf077172b53d742acd2ae7b0b83 100644 (file)
@@ -269,6 +269,10 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
 
    /* SPIR-V programs use a NIR linker */
    if (shProg->data->spirv) {
+      if (!gl_nir_link_uniform_blocks(ctx, shProg)) {
+         return GL_FALSE;
+      }
+
       if (!gl_nir_link_uniforms(ctx, shProg))
          return GL_FALSE;