Mesa (master): pipebuffer: Don' t synchronize when checking for buffer overflows.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Feb 22 21:51:08 UTC 2010


Module: Mesa
Branch: master
Commit: 935929595c31ded8827f081150d1024ff2909d6b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=935929595c31ded8827f081150d1024ff2909d6b

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Feb 16 15:51:34 2010 +0000

pipebuffer: Don't synchronize when checking for buffer overflows.

To avoid masking synchronization issues in debug builds.

---

 src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
index c2593cf..a5dbded 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;




More information about the mesa-commit mailing list