mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
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:
parent
b17675d709
commit
6ad4656cc4
3 changed files with 8 additions and 5 deletions
|
|
@ -29,6 +29,11 @@
|
||||||
* Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com>
|
* 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 <xf86drm.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
@ -36,7 +41,8 @@
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
#include "dri_bufpool.h"
|
#include "dri_bufpool.h"
|
||||||
#include "dri_bufmgr.h"
|
#include "dri_bufmgr.h"
|
||||||
#include "intel_screen.h"
|
#include "intel_batchpool.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
#include "intel_context.h"
|
#include "intel_context.h"
|
||||||
#include "intel_screen.h"
|
#include "intel_screen.h"
|
||||||
#include "intel_batchbuffer.h"
|
#include "intel_batchbuffer.h"
|
||||||
|
#include "intel_batchpool.h"
|
||||||
#include "intel_swapbuffers.h"
|
#include "intel_swapbuffers.h"
|
||||||
|
|
||||||
#include "i830_dri.h"
|
#include "i830_dri.h"
|
||||||
|
|
|
||||||
|
|
@ -95,10 +95,6 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
|
||||||
__DRIdrawablePrivate * driDrawPriv,
|
__DRIdrawablePrivate * driDrawPriv,
|
||||||
__DRIdrawablePrivate * driReadPriv);
|
__DRIdrawablePrivate * driReadPriv);
|
||||||
|
|
||||||
extern struct _DriBufferPool *driBatchPoolInit(int fd, unsigned flags,
|
|
||||||
unsigned long bufSize,
|
|
||||||
unsigned numBufs,
|
|
||||||
unsigned checkDelayed);
|
|
||||||
|
|
||||||
extern GLboolean
|
extern GLboolean
|
||||||
intelCreatePools(__DRIscreenPrivate *sPriv);
|
intelCreatePools(__DRIscreenPrivate *sPriv);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue