panfrost: Dereference sampled texture
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 23 May 2019 08:09:33 +0000 (10:09 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 24 May 2019 14:50:09 +0000 (16:50 +0200)
commit9fe1a925e2a4093cd88152a52ad48677d02f6ba5
treee2e89e89d0cc16f92008edd17c3c0617522f6764
parent3c81010213797b7b83be7b06665db80793b8d27e
panfrost: Dereference sampled texture

We are currently leaking resources if they were sampled from. Once we
are done with a sampler, we should dereference that resource.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c