Move driBatchPoolInit() into new intel_batchpool.h header.

Note that intel_batchpool.[ch] have no intel-specific dependencies at this poi
Maybe rename files for re-use in the future.
This commit is contained in:
Brian 2007-11-05 11:54:36 -07:00
parent b17675d709
commit 6ad4656cc4
3 changed files with 8 additions and 5 deletions

View file

@ -29,6 +29,11 @@
* 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
{

View 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"

View 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);