mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
26364c6347
commit
dee8b50cad
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue