asahi: plug passthrough tcs leak

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig 2024-01-13 15:29:01 -04:00 committed by Marge Bot
parent e91c0b6423
commit 7eda3da983

View file

@ -2652,6 +2652,11 @@ agx_delete_shader_state(struct pipe_context *ctx, void *cso)
}
}
for (unsigned i = 0; i < ARRAY_SIZE(so->passthrough_tcs); ++i) {
if (so->passthrough_tcs[i])
agx_delete_shader_state(ctx, so->passthrough_tcs[i]);
}
ralloc_free(so);
}