mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
390479e948
commit
4b2fe347b1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue