summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_query.c
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2011-07-04 18:30:40 +0400
committerAlex Deucher <[email protected]>2011-07-05 15:57:06 -0400
commitfbe9d4261f94b8a22ae04dccb8201a6762b66d40 (patch)
treec739c99e1a14299df6c5e3632df5c50fec83395c /src/gallium/drivers/r600/r600_query.c
parent9bf4c30d73f5066db094fa9e72e6c4de7d6f9596 (diff)
r600g: reduce flushes for queries
Diffstat (limited to 'src/gallium/drivers/r600/r600_query.c')
-rw-r--r--src/gallium/drivers/r600/r600_query.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_query.c b/src/gallium/drivers/r600/r600_query.c
index bedb48b6031..174505c75e9 100644
--- a/src/gallium/drivers/r600/r600_query.c
+++ b/src/gallium/drivers/r600/r600_query.c
@@ -61,10 +61,7 @@ static boolean r600_get_query_result(struct pipe_context *ctx,
struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx;
struct r600_query *rquery = (struct r600_query *)query;
- if (rquery->num_results) {
- ctx->flush(ctx, NULL);
- }
- return r600_context_query_result(&rctx->ctx, (struct r600_query *)query, wait, vresult);
+ return r600_context_query_result(&rctx->ctx, rquery, wait, vresult);
}
static void r600_render_condition(struct pipe_context *ctx,