aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_queryobj.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-03-04 11:38:28 -0800
committerKenneth Graunke <[email protected]>2013-03-06 08:27:54 -0800
commit492693c0a5d653b95ab4a970fdc5bba074050243 (patch)
tree8b654ecfa25512285cf918374ad589f3bb30e311 /src/mesa/drivers/dri/i965/brw_queryobj.c
parent89e5c8e0fa0f7ec6e1dc0d1ee269c164fd1cf3b0 (diff)
i965: Don't fill buffer with zeroes.
This was only necessary because our bounds checking was off by one, and thus we read an extra pair of values. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_queryobj.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_queryobj.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c
index a45435eaf9c..194725cfad5 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -510,12 +510,6 @@ ensure_bo_has_space(struct gl_context *ctx, struct brw_query_object *query)
}
query->bo = drm_intel_bo_alloc(intel->bufmgr, "query", 4096, 1);
-
- /* Fill the buffer with zeroes. This is probably superfluous. */
- drm_intel_bo_map(query->bo, true);
- memset((char *) query->bo->virtual, 0, 4096);
- drm_intel_bo_unmap(query->bo);
-
query->last_index = 0;
}
}