pipebuffer: Don't synchronize when checking for buffer overflows.
To avoid masking synchronization issues in debug builds.
This commit is contained in:
parent
e9ac0fbe9b
commit
935929595c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue