diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-04-18 17:19:45 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-04-18 17:49:12 +0200 |
commit | 24ceef7a6969ccb2243e7bb32f86d6429d9689b9 (patch) | |
tree | 0112f93357ae2c6ad6fc51e70e93fead87ee08a6 /src/gallium/drivers/r300/r300_screen_buffer.h | |
parent | cea7b9f937dd8d987dc48e636adf83a829897a28 (diff) | |
download | external_mesa3d-24ceef7a6969ccb2243e7bb32f86d6429d9689b9.zip external_mesa3d-24ceef7a6969ccb2243e7bb32f86d6429d9689b9.tar.gz external_mesa3d-24ceef7a6969ccb2243e7bb32f86d6429d9689b9.tar.bz2 |
r300g: more solid is_buffer_referenced implementation
This fixes crash from 7a1b5c937fa32968a04a11649e456a1ef8c5b442,
and also removes the unused "map" pointer.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen_buffer.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen_buffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen_buffer.h b/src/gallium/drivers/r300/r300_screen_buffer.h index 82660d3..57f4822 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.h +++ b/src/gallium/drivers/r300/r300_screen_buffer.h @@ -55,8 +55,6 @@ struct r300_buffer void *user_buffer; struct r300_buffer_range ranges[R300_BUFFER_MAX_RANGES]; unsigned num_ranges; - - void *map; }; /* Functions. */ @@ -77,6 +75,10 @@ struct pipe_resource *r300_user_buffer_create(struct pipe_screen *screen, unsigned bytes, unsigned usage); +unsigned r300_buffer_is_referenced(struct pipe_context *context, + struct pipe_resource *buf, + enum r300_reference_domain domain); + /* Inline functions. */ static INLINE struct r300_buffer *r300_buffer(struct pipe_resource *buffer) |