From: José Fonseca Date: Tue, 16 Feb 2010 15:51:34 +0000 (+0000) Subject: pipebuffer: Don't synchronize when checking for buffer overflows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=935929595c31ded8827f081150d1024ff2909d6b;p=mesa.git pipebuffer: Don't synchronize when checking for buffer overflows. To avoid masking synchronization issues in debug builds. --- diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c index c2593cf1653..a5dbded2bce 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c @@ -179,7 +179,9 @@ pb_debug_buffer_check(struct pb_debug_buffer *buf) { uint8_t *map; - map = pb_map(buf->buffer, PIPE_BUFFER_USAGE_CPU_READ); + map = pb_map(buf->buffer, + PIPE_BUFFER_USAGE_CPU_READ | + PIPE_BUFFER_USAGE_UNSYNCHRONIZED); assert(map); if(map) { boolean underflow, overflow;