mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
i965: Link uniforms of SPIR-V programs using the NIR linker
v2: nir_link_uniforms renamed to gl_nir_link_uniforms Signed-off-by: Eduardo Lima <elima@igalia.com> Signed-off-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
ae0208e5b4
commit
77e790f99a
1 changed files with 6 additions and 0 deletions
|
|
@ -261,6 +261,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 (!gl_nir_link_uniforms(ctx, shProg))
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Determine first and last stage. */
|
||||
unsigned first = MESA_SHADER_STAGES;
|
||||
unsigned last = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue