glsl: fix corruption due to blake3 hash not being set for nir_opt_undef

NIR is generated sooner, so we need to set it sooner.
This fixes Viewperf13/CATIA_car_04.

Fixes: cbfc225e2b - glsl: switch to a full nir based linker

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32876>
This commit is contained in:
Marek Olšák
2025-01-03 18:08:38 -05:00
committed by Marge Bot
parent 451d252ca2
commit d09ba36f98
3 changed files with 3 additions and 8 deletions

View File

@@ -246,9 +246,6 @@ struct gl_linked_shader
{
gl_shader_stage Stage;
/** All gl_shader::compiled_source_blake3 combined. */
blake3_hash linked_source_blake3;
struct gl_program *Program; /**< Post-compile assembly code */
/**

View File

@@ -546,9 +546,6 @@ st_link_glsl_to_nir(struct gl_context *ctx,
prog->nir->info.label = ralloc_strdup(shader, shader_program->Label);
}
memcpy(prog->nir->info.source_blake3, shader->linked_source_blake3,
BLAKE3_OUT_LEN);
nir_shader_gather_info(prog->nir, nir_shader_get_entrypoint(prog->nir));
if (!st->ctx->SoftFP64 && ((prog->nir->info.bit_sizes_int | prog->nir->info.bit_sizes_float) & 64) &&
(options->lower_doubles_options & nir_lower_fp64_full_software) != 0) {