mesa/st: count FF shaders as needing psiz export for precompile

this is consistent with logic for regular compiles

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15228>
This commit is contained in:
Mike Blumenkrantz
2022-03-02 12:07:16 -05:00
committed by Marge Bot
parent 1183988d74
commit 070a7b506d

View File

@@ -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);