mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
radeonsi: Use proper member name for deleting export shader PM4 state
Fixes double-free with some piglit tests using geometry shaders. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
9c2a3934c5
commit
678cf9618f
1 changed files with 2 additions and 0 deletions
|
|
@ -2360,6 +2360,8 @@ static void si_delete_shader_selector(struct pipe_context *ctx,
|
|||
si_pm4_delete_state(sctx, gs, p->pm4);
|
||||
else if (sel->type == PIPE_SHADER_FRAGMENT)
|
||||
si_pm4_delete_state(sctx, ps, p->pm4);
|
||||
else if (p->key.vs.as_es)
|
||||
si_pm4_delete_state(sctx, es, p->pm4);
|
||||
else
|
||||
si_pm4_delete_state(sctx, vs, p->pm4);
|
||||
si_pipe_shader_destroy(ctx, p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue