freedreno/query: fix refcnt'ing issue
authorRob Clark <robclark@freedesktop.org>
Sat, 13 Feb 2016 18:46:05 +0000 (13:46 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 17 Feb 2016 15:41:55 +0000 (10:41 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_query_hw.c

index fe985d57d13840ebe8b5779cca96ec890441822f..433c678c6d9d7cd0393b7ecb06267d09296e4820 100644 (file)
@@ -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;
 }