glsl: use nir version of check_image_resources() for nir linker
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
@@ -623,6 +623,7 @@ check_image_resources(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||||||
bool
|
bool
|
||||||
gl_nir_link_glsl(struct gl_context *ctx, struct gl_shader_program *prog)
|
gl_nir_link_glsl(struct gl_context *ctx, struct gl_shader_program *prog)
|
||||||
{
|
{
|
||||||
|
check_image_resources(ctx, prog);
|
||||||
gl_nir_link_assign_atomic_counter_resources(ctx, prog);
|
gl_nir_link_assign_atomic_counter_resources(ctx, prog);
|
||||||
gl_nir_link_check_atomic_counter_resources(ctx, prog);
|
gl_nir_link_check_atomic_counter_resources(ctx, prog);
|
||||||
|
|
||||||
|
@@ -4536,9 +4536,9 @@ link_and_validate_uniforms(struct gl_context *ctx,
|
|||||||
link_calculate_subroutine_compat(prog);
|
link_calculate_subroutine_compat(prog);
|
||||||
check_resources(ctx, prog);
|
check_resources(ctx, prog);
|
||||||
check_subroutine_resources(prog);
|
check_subroutine_resources(prog);
|
||||||
check_image_resources(ctx, prog);
|
|
||||||
|
|
||||||
if (!ctx->Const.UseNIRGLSLLinker) {
|
if (!ctx->Const.UseNIRGLSLLinker) {
|
||||||
|
check_image_resources(ctx, prog);
|
||||||
link_assign_atomic_counter_resources(ctx, prog);
|
link_assign_atomic_counter_resources(ctx, prog);
|
||||||
link_check_atomic_counter_resources(ctx, prog);
|
link_check_atomic_counter_resources(ctx, prog);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user