zink: copy shader name when copying shader info

this needs a separate allocation

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28723>
This commit is contained in:
Mike Blumenkrantz 2024-04-12 11:41:32 -04:00 committed by Marge Bot
parent 390479e948
commit 4b2fe347b1
1 changed files with 1 additions and 0 deletions

View File

@ -6098,6 +6098,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir)
update_so_info(ret, nir, nir->info.outputs_written, have_psiz);
zink_shader_serialize_blob(nir, &ret->blob);
memcpy(&ret->info, &nir->info, sizeof(nir->info));
ret->info.name = ralloc_strdup(ret, nir->info.name);
ret->can_inline = true;