iris: Fix major resource leak in iris_set_shader_images
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Jun 2019 23:54:47 +0000 (16:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Jun 2019 02:08:46 +0000 (19:08 -0700)
commitbed305fb7a1ad8d887fc6fa64e79e30cbd03bba1
tree1b464cd23baa0a868d79852653211144c20b2c1e
parent255c71ec07ec1f3af5b996d7b19717014ba946d3
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.
src/gallium/drivers/iris/iris_state.c