summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_query.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-21 15:49:25 +0200
committerMarek Olšák <[email protected]>2016-06-29 20:12:00 +0200
commite607a6be2bd2507f704dd8f10013fe96f4b1b8da (patch)
treec41e42a420d7b48b52a716b4800440181ae0990b /src/gallium/drivers/radeon/r600_query.c
parenta2ae888929bd0e36b3bdf8d789853440b5a23097 (diff)
gallium/radeon: add flag R600_QUERY_HW_FLAG_BEGIN_RESUMES
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_query.c')
-rw-r--r--src/gallium/drivers/radeon/r600_query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c
index d4d7292bcea..e6fda0c3bd6 100644
--- a/src/gallium/drivers/radeon/r600_query.c
+++ b/src/gallium/drivers/radeon/r600_query.c
@@ -763,7 +763,8 @@ bool r600_query_hw_begin(struct r600_common_context *rctx,
return false;
}
- r600_query_hw_reset_buffers(rctx, query);
+ if (!(query->flags & R600_QUERY_HW_FLAG_BEGIN_RESUMES))
+ r600_query_hw_reset_buffers(rctx, query);
r600_query_hw_emit_start(rctx, query);
if (!query->buffer.buf)