summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2011-07-04 18:30:39 +0400
committerAlex Deucher <[email protected]>2011-07-05 15:57:01 -0400
commit9bf4c30d73f5066db094fa9e72e6c4de7d6f9596 (patch)
treef3484eea600cd2f1a5f63908a989013ec935fa3f /src/gallium
parent3fccc14b2fb35aef95bc04dee46e280a48679299 (diff)
r600g: fix buffer offset in r600_query_begin
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 19dc729d00a..c98a1b15701 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -1753,7 +1753,7 @@ 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);
+ memset(results + query->num_results, 0, ctx->max_db * 4 * 4);
for (i = num_backends; i < ctx->max_db; i++) {
results[(i * 4)+1] = 0x80000000;