From ad76389f88b9fe851a5a58f360947d40d7212b22 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 9 Aug 2018 09:19:58 -0700 Subject: [PATCH] iris: refcounting, who needs it? that's right, we do! --- src/gallium/drivers/iris/iris_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 444619ac46c..a1c703d7c72 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -176,7 +176,7 @@ iris_resource_set_separate_stencil(struct pipe_resource *p_res, struct pipe_resource *stencil) { assert(util_format_has_depth(util_format_description(p_res->format))); - p_res->next = stencil; + pipe_resource_reference(&p_res->next, stencil); } void -- 2.30.2