summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-02-13 13:46:05 -0500
committerRob Clark <[email protected]>2016-02-17 10:41:55 -0500
commit87eb4067912921ee3a260792b82fa5d4501ae8a9 (patch)
tree8495dde8dbc966a5f04da31a600d8992a66e0d7c /src/gallium/drivers/freedreno
parent0e91dccf9cd2894e46028bac39caa54d80e39e8e (diff)
freedreno/query: fix refcnt'ing issue
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_query_hw.c2
1 files changed, 1 insertions, 1 deletions
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;
}