From 070a7b506df98c598ad4ea1cc43f1ef887ec2c75 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 2 Mar 2022 12:07:16 -0500 Subject: [PATCH] mesa/st: count FF shaders as needing psiz export for precompile this is consistent with logic for regular compiles Reviewed-by: Ilia Mirkin Part-of: --- src/mesa/state_tracker/st_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 0b3adeab717..6e093308e89 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -2023,7 +2023,7 @@ st_precompile_shader_variant(struct st_context *st, prog->Target == GL_GEOMETRY_PROGRAM_NV) { if (st->lower_point_size && !st->ctx->VertexProgram.PointSizeEnabled) key.export_point_size = is_last_vertex_stage(st->ctx, prog) && - !nir_find_variable_with_location(prog->nir, nir_var_shader_out, VARYING_SLOT_PSIZ); + (!prog->nir || !nir_find_variable_with_location(prog->nir, nir_var_shader_out, VARYING_SLOT_PSIZ)); } key.st = st->has_shareable_shaders ? NULL : st; st_get_common_variant(st, prog, &key);