diff options
author | Thomas Hellström <thomas@shipmail.org> | 2005-10-27 21:38:18 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@shipmail.org> | 2005-10-27 21:38:18 +0000 |
commit | 7a7b4d01b0f29015c14104dac0eebfe140ad2ca0 (patch) | |
tree | 357ffed397902bb36a5914bd567d234795328bf7 /unichrome/via_dri.h | |
parent | 3bbae58d42c110cf07804235f5205b8b1c14aa4b (diff) |
Sync dri handling with Xorg. This should hopefully make it run
with Mesa 6.4 again. (Luc Verhaegen, Eric Anholt, Me)
Diffstat (limited to 'unichrome/via_dri.h')
-rw-r--r-- | unichrome/via_dri.h | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/unichrome/via_dri.h b/unichrome/via_dri.h index 1885206e6b12..b47397d5728e 100644 --- a/unichrome/via_dri.h +++ b/unichrome/via_dri.h @@ -21,25 +21,27 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ - +/* + * Keep this file in perfect sync between the ddx and dri drivers. + * At least bump the VIA_DRIDDX_VERSION defines appropriately. + * + */ #ifndef _VIA_DRI_H_ #define _VIA_DRI_H_ 1 -#include "drm.h" -#include "xf86drm.h" -#include "via_drm.h" - #define VIA_MAX_DRAWABLES 256 -#define VIA_DRI_VERSION_MAJOR 4 -#define VIA_DRI_VERSION_MINOR 1 +#define VIA_DRIDDX_VERSION_MAJOR 5 +#define VIA_DRIDDX_VERSION_MINOR 0 +#define VIA_DRIDDX_VERSION_PATCH 0 -typedef drm_via_sarea_t VIASAREAPriv; +#ifndef XFree86Server +typedef int Bool; +#endif typedef struct { drm_handle_t handle; drmSize size; - drmAddress map; } viaRegion, *viaRegionPtr; typedef struct { @@ -63,9 +65,6 @@ typedef struct { int sarea_priv_offset; int ringBufActive; unsigned int reg_pause_addr; - int drmVerMajor; - int drmVerMinor; - int drmVerPL; } VIADRIRec, *VIADRIPtr; typedef struct { @@ -76,17 +75,4 @@ typedef struct { int dummy; } VIADRIContextRec, *VIADRIContextPtr; -#ifdef XFree86Server - -#include "screenint.h" - -Bool VIADRIScreenInit(ScreenPtr pScreen); -void VIADRICloseScreen(ScreenPtr pScreen); -Bool VIADRIFinishScreenInit(ScreenPtr pScreen); -void VIADRIRingBufferCleanup(ScrnInfoPtr pScrn); -Bool VIADRIRingBufferInit(ScrnInfoPtr pScrn); - - - -#endif /* XFree86Server */ #endif /* _VIA_DRI_H_ */ |