mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
iris: Fix major resource leak in iris_set_shader_images
We were failing to unreference the old image resource. Instead of open coding this and doing it badly, just use the copier function which does the right thing.
This commit is contained in:
parent
255c71ec07
commit
bed305fb7a
1 changed files with 1 additions and 3 deletions
|
|
@ -2098,9 +2098,7 @@ iris_set_shader_images(struct pipe_context *ctx,
|
|||
if (!unlikely(map))
|
||||
return;
|
||||
|
||||
iv->base = *img;
|
||||
iv->base.resource = NULL;
|
||||
pipe_resource_reference(&iv->base.resource, &res->base);
|
||||
util_copy_image_view(&iv->base, img);
|
||||
|
||||
shs->bound_image_views |= 1 << (start_slot + i);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue