From: Kenneth Graunke Date: Sat, 27 Oct 2018 05:43:34 +0000 (-0700) Subject: iris: Fix refcounting of grid surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a98e904157909bd7a02d942e12cd8f96d081d9e;p=mesa.git iris: Fix refcounting of grid surface --- 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