i965: call to gl_nir_link_uniform_blocks

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>
This commit is contained in:
Alejandro Piñeiro
2017-11-30 12:50:24 +01:00
committed by Arcady Goldmints-Orlov
parent 678140e195
commit cae501b394
+4
View 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;