Skip to content
Snippets Groups Projects
Commit a8a4f91d authored by Charmaine Lee's avatar Charmaine Lee Committed by Dylan Baker
Browse files

mesa/st: fix reference to nir->info after nir_to_tgsi


The nir shader memory is freed in nir_to_tgsi(), but the already
freed shader info is referenced later when create compute state.
To avoid referencing the freed memory, copy the shader info first before
calling nir_to_tgsi.

Fixes vmx crash running aztec on SVGA driver.
Fixes: 580f1ac4 ("nir: Extract shader_info->cs.shared_size out of union")

Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
Part-of: <mesa/mesa!17999>
(cherry picked from commit 4393be82)
parent 6520ce71
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment