From: Rob Clark Date: Sat, 13 Feb 2016 18:46:05 +0000 (-0500) Subject: freedreno/query: fix refcnt'ing issue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87eb4067912921ee3a260792b82fa5d4501ae8a9;p=mesa.git freedreno/query: fix refcnt'ing issue Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_query_hw.c b/src/gallium/drivers/freedreno/freedreno_query_hw.c index fe985d57d13..433c678c6d9 100644 --- a/src/gallium/drivers/freedreno/freedreno_query_hw.c +++ b/src/gallium/drivers/freedreno/freedreno_query_hw.c @@ -330,7 +330,7 @@ prepare_sample(struct fd_hw_sample *samp, struct fd_bo *bo, assert(samp->tile_stride == tile_stride); return; } - samp->bo = bo; + samp->bo = fd_bo_ref(bo); samp->num_tiles = num_tiles; samp->tile_stride = tile_stride; }