llvmpipe: Free CS shader images on context destroy.

Cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12724>
This commit is contained in:
Emma Anholt 2021-09-03 16:02:46 -07:00 committed by Marge Bot
parent 26364c6347
commit dee8b50cad

View file

@ -1443,6 +1443,9 @@ lp_csctx_destroy(struct lp_cs_context *csctx)
for (i = 0; i < ARRAY_SIZE(csctx->ssbos); i++) {
pipe_resource_reference(&csctx->ssbos[i].current.buffer, NULL);
}
for (i = 0; i < ARRAY_SIZE(csctx->images); i++) {
pipe_resource_reference(&csctx->images[i].current.resource, NULL);
}
FREE(csctx);
}