Mesa (gallium-resources): pipebuffer: use transfer flag

Keith Whitwell keithw at kemper.freedesktop.org
Sun Mar 21 22:08:50 UTC 2010


Module: Mesa
Branch: gallium-resources
Commit: 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=129a83ab4d32e44ded5faea3f86ae5e1e62cddb6

Author: Keith Whitwell <keithw at vmware.com>
Date:   Sun Mar 21 22:08:17 2010 +0000

pipebuffer: use transfer flag

---

 src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
index 0f2ae05..894f995 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
@@ -242,7 +242,7 @@ pb_cache_is_buffer_compat(struct pb_cache_buffer *buf,
    if(!pb_check_usage(desc->usage, buf->base.base.usage))
       return FALSE;
 
-   map = pb_map(buf->buffer, PIPE_BUFFER_USAGE_DONTBLOCK);
+   map = pb_map(buf->buffer, PIPE_TRANSFER_DONTBLOCK);
    if (!map) {
       return FALSE;
    }




More information about the mesa-commit mailing list