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>
static void
panfrost_sampler_view_destroy(
struct pipe_context *pctx,
- struct pipe_sampler_view *views)
+ struct pipe_sampler_view *view)
{
- //struct panfrost_context *ctx = pan_context(pctx);
-
- /* TODO */
-
- free(views);
+ pipe_resource_reference(&view->texture, NULL);
+ free(view);
}
static void