summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-12-13 16:35:27 +0000
committerKeith Whitwell <[email protected]>2007-12-13 16:36:07 +0000
commita6ae4ea854c62d7d96060ba7044b5e2b73f761f5 (patch)
treeaa5cf83de6a4e8d85743d430efa4784c461ad546
parent81c9058ea90615cd0c819da6e51c3a539a540a7e (diff)
965: magic callback to get buffer offset
-rw-r--r--src/mesa/pipe/i965simple/brw_winsys.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/pipe/i965simple/brw_winsys.h b/src/mesa/pipe/i965simple/brw_winsys.h
index cc0a210a9f1..49a12a1c27e 100644
--- a/src/mesa/pipe/i965simple/brw_winsys.h
+++ b/src/mesa/pipe/i965simple/brw_winsys.h
@@ -95,6 +95,8 @@ enum brw_cache_id {
BRW_MAX_CACHE
};
+#define BRW_CONSTANT_BUFFER BRW_MAX_CACHE
+
/**
* Additional winsys interface for i965simple.
*
@@ -164,6 +166,13 @@ struct brw_winsys {
unsigned data_type);
+ /* A cheat so we don't have to think about relocations in a couple
+ * of places yet:
+ */
+ unsigned (*get_buffer_offset)( struct brw_winsys *sws,
+ struct pipe_buffer_handle *buf,
+ unsigned flags );
+
};
#define BRW_BUFFER_ACCESS_WRITE 0x1