asahi: plug so target 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 16:54:32 -04:00 committed by Marge Bot
parent e2c5a93358
commit 06cf222830

View file

@ -42,7 +42,10 @@ static void
agx_stream_output_target_destroy(struct pipe_context *pctx,
struct pipe_stream_output_target *target)
{
pipe_resource_reference(&target->buffer, NULL);
struct agx_streamout_target *tgt = agx_so_target(target);
pipe_resource_reference(&tgt->base.buffer, NULL);
pipe_resource_reference(&tgt->offset, NULL);
ralloc_free(target);
}