965: magic callback to get buffer offset
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Dec 2007 16:35:27 +0000 (16:35 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Dec 2007 16:36:07 +0000 (16:36 +0000)
src/mesa/pipe/i965simple/brw_winsys.h

index cc0a210a9f1a38c2766447ac1c4161138300f4ba..49a12a1c27e747bd69b46bdaddd596707dca8b9b 100644 (file)
@@ -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