mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
st/mesa: fix use-after-free when updating shader info in st_link_nir
Fixes:549ae5f8"st/mesa: make sure prog->info is up to date for NIR (v2)" Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3756 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3685 Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7516> (cherry picked from commit0d007349f9)
This commit is contained in:
parent
46c08b73de
commit
60ffcfe6a9
2 changed files with 3 additions and 1 deletions
|
|
@ -1327,7 +1327,7 @@
|
|||
"description": "st/mesa: fix use-after-free when updating shader info in st_link_nir",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "549ae5f84375dfadb86cfd465f0103acfae3249f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -834,6 +834,8 @@ st_link_nir(struct gl_context *ctx,
|
|||
*/
|
||||
shader_info old_info = prog->info;
|
||||
prog->info = prog->nir->info;
|
||||
prog->info.name = old_info.name;
|
||||
prog->info.label = old_info.label;
|
||||
prog->info.num_ssbos = old_info.num_ssbos;
|
||||
prog->info.num_ubos = old_info.num_ubos;
|
||||
prog->info.num_abos = old_info.num_abos;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue