From 24ceef7a6969ccb2243e7bb32f86d6429d9689b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 18 Apr 2010 17:19:45 +0200 Subject: r300g: more solid is_buffer_referenced implementation This fixes crash from 7a1b5c937fa32968a04a11649e456a1ef8c5b442, and also removes the unused "map" pointer. --- src/gallium/drivers/r300/r300_screen_buffer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_screen_buffer.h') 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) -- cgit v1.1