diff options
author | Michel Dänzer <[email protected]> | 2014-03-10 12:21:50 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2014-03-10 12:21:50 +0900 |
commit | 678cf9618f252eea209c9f37211dde325223c5ae (patch) | |
tree | 35321f1533cb98ff828aaad0bd7ddba573de1093 | |
parent | 9c2a3934c5e039d996c721478eeb1fa3f956904e (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 0ee415406d2..7d4f3c7409d 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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); |