iris: refcounting, who needs it?
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Aug 2018 16:19:58 +0000 (09:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
that's right, we do!

src/gallium/drivers/iris/iris_resource.c

index 444619ac46c20feb27f895f4426e6639fd2799ee..a1c703d7c72e9cc18ae7196daaae6a7bafb964a1 100644 (file)
@@ -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