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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user