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

Author: Keith Whitwell <[email protected]>
Date:   Sun Mar 21 22:08:44 2010 +0000

r300: drop use of R300 DONT SYNC flag

---

 src/gallium/drivers/r300/r300_screen_buffer.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c 
b/src/gallium/drivers/r300/r300_screen_buffer.c
index b6af4a3..1bb071d 100644
--- a/src/gallium/drivers/r300/r300_screen_buffer.c
+++ b/src/gallium/drivers/r300/r300_screen_buffer.c
@@ -163,7 +163,6 @@ r300_buffer_map_range(struct pipe_screen *screen,
        return rbuf->user_buffer;
 
     if (rbuf->b.b.usage & PIPE_BUFFER_USAGE_CONSTANT) {
-        usage |= R300_USAGE_FLAG_DONT_SYNC;
        goto just_map;
     }
 
@@ -189,20 +188,6 @@ r300_buffer_map_range(struct pipe_screen *screen,
            }
        }
     }
-
-    /* XXX: Some sort of discrepancy here - ordinary map() didn't add
-     * this flag, but map_buffer_range always did.
-     *
-     * But
-     *     map_buffer_range(0,size,flags)
-     * should be the same operation as old-style
-     *     map(flags).
-     *
-     * Try to replicate the old behaviour for now...
-     */
-    if (offset != 0 || length != rbuf->b.b.width0)
-        usage |= R300_USAGE_FLAG_DONT_SYNC;
-
 just_map:
     map = rws->buffer_map(rws, rbuf->buf, usage);
    

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to