diff options
author | José Fonseca <[email protected]> | 2010-09-12 10:34:53 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-09-12 10:37:06 +0100 |
commit | 67763488b1fea01d6eb1c7d9e05ecb175918c3af (patch) | |
tree | a1783e7a008862d60ab7eb99b37663387b9a4bad /src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | |
parent | 853953dc3c5bd2ef9cca904c9cabc4a0ef037b16 (diff) |
pb: Fix the build, and add notes.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c index 275eb76bf52..176f9aa38aa 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c @@ -227,10 +227,13 @@ pb_slab_buffer_destroy(struct pb_buffer *_buf) static void * pb_slab_buffer_map(struct pb_buffer *_buf, - unsigned flags) + unsigned flags, + void *flush_ctx) { struct pb_slab_buffer *buf = pb_slab_buffer(_buf); + /* XXX: it will be necessary to remap here to propagate flush_ctx */ + ++buf->mapCount; return (void *) ((uint8_t *) buf->slab->virtual + buf->start); } |