From 8a98e904157909bd7a02d942e12cd8f96d081d9e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 26 Oct 2018 22:43:34 -0700 Subject: [PATCH] iris: Fix refcounting of grid surface --- src/gallium/drivers/iris/iris_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c index 233658a1204..9139f894473 100644 --- a/src/gallium/drivers/iris/iris_draw.c +++ b/src/gallium/drivers/iris/iris_draw.c @@ -107,7 +107,7 @@ iris_update_grid_size_resource(struct iris_context *ice, // don't bother uploading the surface? if (grid->indirect) { - grid_ref->res = grid->indirect; + pipe_resource_reference(&grid_ref->res, grid->indirect); grid_ref->offset = grid->indirect_offset; /* Zero out the grid size so that the next non-indirect grid launch will -- 2.30.2