diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-06-30 00:02:27 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-06-30 00:03:04 +0200 |
commit | b939f83eb7af8f818c638453b2d2522b2362a831 (patch) | |
tree | 7d2e4e7a4610ce52d8a6b3695e2434fbb3ec26f6 /src/gallium/drivers/r300/r300_screen_buffer.c | |
parent | 6a34287bb5147a3213e94d88c97db4ec403509ae (diff) |
r300g: add workaround for multiple contexts
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen_buffer.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen_buffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index 7959e6a2f9..f49f36b626 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.c +++ b/src/gallium/drivers/r300/r300_screen_buffer.c @@ -178,7 +178,14 @@ r300_buffer_transfer_map( struct pipe_context *pipe, } } } + just_map: + /* XXX buffer_map might flush. + * We cannot flush here because there is a buffer manager between + * the context and winsys, and it does some magic to make the driver + * fast. This is a workaround for the case of multiple contexts. */ + rws->set_flush_cb(rws, r300_flush_cb, pipe); + map = rws->buffer_map(rws, rbuf->buf, transfer->usage); if (map == NULL) |