summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_screen.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-04 15:10:34 +0000
committerKeith Whitwell <[email protected]>2009-11-04 15:10:34 +0000
commita09b3d50975e68c13c0421d770f3865ad2a1257c (patch)
tree0b8d1011e5090d33950c5898b15b7466dbb803bf /src/gallium/drivers/i965/brw_screen.h
parent82a19f097427916f4ce594b7c40b0d4b33502727 (diff)
i965g: add missing buffer functions
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.h')
-rw-r--r--src/gallium/drivers/i965/brw_screen.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.h b/src/gallium/drivers/i965/brw_screen.h
index 11b480b1ace..dda516ee68c 100644
--- a/src/gallium/drivers/i965/brw_screen.h
+++ b/src/gallium/drivers/i965/brw_screen.h
@@ -60,9 +60,16 @@ struct brw_transfer
struct brw_buffer
{
struct pipe_buffer base;
+
+ /* One of either bo or user_buffer will be non-null, depending on
+ * whether this is a hardware or user buffer.
+ */
struct brw_winsys_buffer *bo;
+ void *user_buffer;
+
+ /* Mapped pointer??
+ */
void *ptr;
- boolean is_user_buffer;
};
#define BRW_TILING_NONE 0
@@ -151,7 +158,7 @@ brw_texture(struct pipe_texture *texture)
static INLINE boolean
brw_buffer_is_user_buffer( const struct pipe_buffer *buf )
{
- return ((const struct brw_buffer *)buf)->is_user_buffer;
+ return ((const struct brw_buffer *)buf)->user_buffer != NULL;
}
struct brw_winsys_buffer *
@@ -173,6 +180,7 @@ void brw_update_texture( struct brw_screen *brw_screen,
void brw_screen_tex_init( struct brw_screen *brw_screen );
void brw_screen_tex_surface_init( struct brw_screen *brw_screen );
+void brw_screen_buffer_init(struct brw_screen *brw_screen);
#endif /* BRW_SCREEN_H */