summaryrefslogtreecommitdiff
path: root/src/i830_dri.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-08-10 13:37:18 -0700
committerEric Anholt <eric@anholt.net>2006-08-10 13:37:18 -0700
commit820e9a22fdb759cbdaac4a488322825bc0908b0d (patch)
treee98cac8255b07047a9fb5a665473dbda682d6666 /src/i830_dri.h
parentcaa3b35cd772fc75d65a7ff791f00addbb39a764 (diff)
Bug #7835: Restore unused fields in I830DRIRec to avoid i915 DRI breakage.
As it was, 1.6.4 broke compatibility with the released DRI driver.
Diffstat (limited to 'src/i830_dri.h')
-rw-r--r--src/i830_dri.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/i830_dri.h b/src/i830_dri.h
index f97c1dd5..44be353d 100644
--- a/src/i830_dri.h
+++ b/src/i830_dri.h
@@ -3,7 +3,6 @@
#ifndef _I830_DRI_H
#define _I830_DRI_H
-#include "xf86dri.h"
#include "xf86drm.h"
#include "i830_common.h"
@@ -19,6 +18,21 @@ typedef struct _I830DRIRec {
drm_handle_t regs;
drmSize regsSize;
+ drmSize unused1; /* backbufferSize */
+ drm_handle_t unused2; /* backbuffer */
+
+ drmSize unused3; /* depthbufferSize */
+ drm_handle_t unused4; /* depthbuffer */
+
+ drmSize unused5; /* rotatedSize /*/
+ drm_handle_t unused6; /* rotatedbuffer */
+
+ drm_handle_t unused7; /* textures */
+ int unused8; /* textureSize */
+
+ drm_handle_t unused9; /* agp_buffers */
+ drmSize unused10; /* agp_buf_size */
+
int deviceID;
int width;
int height;
@@ -26,6 +40,11 @@ typedef struct _I830DRIRec {
int cpp;
int bitsPerPixel;
+ int unused11[8]; /* was front/back/depth/rotated offset/pitch */
+
+ int unused12; /* logTextureGranularity */
+ int unused13; /* textureOffset */
+
int irq;
int sarea_priv_offset;
} I830DRIRec, *I830DRIPtr;