r600g: fix bo map usage flags in r600_query_begin
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 4 Jul 2011 14:30:41 +0000 (18:30 +0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 5 Jul 2011 19:57:08 +0000 (15:57 -0400)
src/gallium/winsys/r600/drm/r600_hw_context.c

index e3fb6b18394c164f2674dfb35c1ec1433f041a00..81e26f61158555da425ca887dcde26a660182c4c 100644 (file)
@@ -1752,7 +1752,7 @@ void r600_query_begin(struct r600_context *ctx, struct r600_query *query)
                u32 *results;
                int i;
 
-               results = r600_bo_map(ctx->radeon, query->buffer, PB_USAGE_DONTBLOCK | PB_USAGE_CPU_WRITE, NULL);
+               results = r600_bo_map(ctx->radeon, query->buffer, PB_USAGE_CPU_WRITE, NULL);
                if (results) {
                        memset(results + query->num_results, 0, ctx->max_db * 4 * 4);