summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915pipe/intel_screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i915pipe/intel_screen.h')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_screen.h59
1 files changed, 24 insertions, 35 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_screen.h b/src/mesa/drivers/dri/i915pipe/intel_screen.h
index de0bea6609..549587a6f2 100644
--- a/src/mesa/drivers/dri/i915pipe/intel_screen.h
+++ b/src/mesa/drivers/dri/i915pipe/intel_screen.h
@@ -33,37 +33,30 @@
#include "xmlconfig.h"
#include "dri_bufpool.h"
-typedef struct
-{
- drm_handle_t handle;
- drmSize size; /* region size in bytes */
- char *map; /* memory map */
- int offset; /* from start of video mem, in bytes */
- int pitch; /* row stride, in bytes */
-} intelRegion;
-
-typedef struct
-{
- struct pipe_context *pipe; /** for accessing region functions */
- intelRegion front;
- struct pipe_region *front_region;
+struct intel_screen
+{
+ struct {
+ drm_handle_t handle;
+
+ /* We create a static dri buffer for the frontbuffer.
+ */
+ struct _DriBufferObject *buffer;
+
+ char *map; /* memory map */
+ int offset; /* from start of video mem, in bytes */
+ int pitch; /* row stride, in bytes */
+ int width;
+ int height;
+ int size;
+ int cpp; /* for front and back buffers */
+ } front;
int deviceID;
- int width;
- int height;
- int mem; /* unused */
-
- int cpp; /* for front and back buffers */
-
- __DRIscreenPrivate *driScrnPriv;
- unsigned int sarea_priv_offset;
-
int drmMinor;
- int irq_active;
- int allow_batchbuffer;
-
+ __DRIscreenPrivate *driScrnPriv;
+ drmI830Sarea *sarea;
/**
@@ -74,20 +67,16 @@ typedef struct
struct _DriBufferPool *texPool;
struct _DriBufferPool *regionPool;
struct _DriBufferPool *staticPool;
- unsigned int maxBatchSize;
GLboolean havePools;
- struct intel_context *dummyctxptr;
-} intelScreenPrivate;
-
+ struct intel_context *dummyctxptr;
+};
-extern GLboolean intelMapScreenRegions(__DRIscreenPrivate * sPriv);
-
-extern void intelUnmapScreenRegions(intelScreenPrivate * intelScreen);
+typedef struct intel_screen intelScreenPrivate;
extern void
-intelUpdateScreenFromSAREA(intelScreenPrivate * intelScreen,
- drmI830Sarea * sarea);
+intelUpdateScreenRotation(__DRIscreenPrivate * sPriv, drmI830Sarea * sarea);
+
extern void intelDestroyContext(__DRIcontextPrivate * driContextPriv);