diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-03-21 22:08:44 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-03-21 22:08:44 +0000 |
commit | e4cc48da8fdbd7d521257a6d7cd10e6fc5aa1a65 (patch) | |
tree | ce333a1863b9fb168672ff51165b0e7c57149c6e | |
parent | 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6 (diff) |
r300: drop use of R300 DONT SYNC flag
-rw-r--r-- | 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 b6af4a3301..1bb071d30a 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); |