From: Kenneth Graunke Date: Thu, 9 Aug 2018 16:19:58 +0000 (-0700) Subject: iris: refcounting, who needs it? X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad76389f88b9fe851a5a58f360947d40d7212b22;p=mesa.git iris: refcounting, who needs it? that's right, we do! --- 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