mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
89e5c8e0fa
commit
492693c0a5
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue