Move driBatchPoolInit() into new intel_batchpool.h header.
authorBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 18:54:36 +0000 (11:54 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 18:54:36 +0000 (11:54 -0700)
Note that intel_batchpool.[ch] have no intel-specific dependencies at this poi
Maybe rename files for re-use in the future.

src/mesa/drivers/dri/intel_winsys/intel_batchpool.c
src/mesa/drivers/dri/intel_winsys/intel_screen.c
src/mesa/drivers/dri/intel_winsys/intel_screen.h

index 2503b8a62a1b38348a844318be11fc15b5927a29..a81a463baa8b658a4573ad2ca693b4658462b887 100644 (file)
  * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com>
  */
 
+/**
+ * XXX NOTE: there are no intel dependencies in this file.
+ * Rename to dri_batchpool.c?
+ */
+
 #include <xf86drm.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -36,7 +41,8 @@
 #include "glthread.h"
 #include "dri_bufpool.h"
 #include "dri_bufmgr.h"
-#include "intel_screen.h"
+#include "intel_batchpool.h"
+
 
 typedef struct
 {
index feaeb181f438f85678252614383487763315f415..c14e84ebd6bc6c2a0072dd743f8667ccc3b334fd 100644 (file)
@@ -32,6 +32,7 @@
 #include "intel_context.h"
 #include "intel_screen.h"
 #include "intel_batchbuffer.h"
+#include "intel_batchpool.h"
 #include "intel_swapbuffers.h"
 
 #include "i830_dri.h"
index b0d1e8e36adf67a7abb5a0e21fbf31edd0aea88f..87a6cb21d1659fee155fb6cf5faf2d6f2b6fb82d 100644 (file)
@@ -95,10 +95,6 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
                  __DRIdrawablePrivate * driDrawPriv,
                  __DRIdrawablePrivate * driReadPriv);
 
-extern struct _DriBufferPool *driBatchPoolInit(int fd, unsigned flags,
-                                               unsigned long bufSize,
-                                               unsigned numBufs,
-                                               unsigned checkDelayed);
 
 extern GLboolean
 intelCreatePools(__DRIscreenPrivate *sPriv);