r600g: fix buffer offset in r600_query_begin
This commit is contained in:
committed by
Alex Deucher
parent
3fccc14b2f
commit
9bf4c30d73
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user