From eb9dedb56012d89812cc482e98d98f8f31eb0c7f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 7 Jun 2011 21:49:03 +0200 Subject: [PATCH 2/2] r600g: remove buggy query memory initialization --- src/gallium/winsys/r600/drm/r600_hw_context.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 561f53a..46bf2e0 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1676,11 +1676,6 @@ void r600_query_begin(struct r600_context *ctx, struct r600_query *query) results = r600_bo_map(ctx->radeon, query->buffer, PB_USAGE_DONTBLOCK | PB_USAGE_CPU_WRITE, NULL); if (results) { memset(results + (query->num_results * 4), 0, ctx->max_db * 4 * 4); - - for (i = num_backends; i < ctx->max_db; i++) { - results[(i * 4)+1] = 0x80000000; - results[(i * 4)+3] = 0x80000000; - } r600_bo_unmap(ctx->radeon, query->buffer); } } -- 1.7.5.1