diff options
author | Ian Romanick <[email protected]> | 2005-05-18 22:49:59 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-05-18 22:49:59 +0000 |
commit | 6bc9ea1df92a102c60c409c2f2261151503890b4 (patch) | |
tree | f5a2a3db11ff7b69f468ec5aef2cecc5fae7aee3 /src/mesa/drivers/dri/mga/server | |
parent | 9a1b5af3331361177cf73c1d0b18cea4e260688b (diff) |
In addition to dead-code removal and other clean-up, bump the required DDX
version from 1.0.0 to 1.1.1. 1.1.1 is over a year and a half old at this
point, so it should be pretty widespread. This allows the linecomp_sane
field to be eliminated from mga_screen_private_s.
Diffstat (limited to 'src/mesa/drivers/dri/mga/server')
-rw-r--r-- | src/mesa/drivers/dri/mga/server/mga_dri.h | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/src/mesa/drivers/dri/mga/server/mga_dri.h b/src/mesa/drivers/dri/mga/server/mga_dri.h index 8a75d2eda72..1ef6592196c 100644 --- a/src/mesa/drivers/dri/mga/server/mga_dri.h +++ b/src/mesa/drivers/dri/mga/server/mga_dri.h @@ -43,42 +43,60 @@ */ #define MGA_BUFFER_ALIGN 0x00000fff +#ifdef __GNUC__ +# define DEPRECATED __attribute__ ((deprecated)) +#else +# define DEPRECATED +#endif + typedef struct { int chipset; - int width; - int height; - int mem; + int width DEPRECATED; + int height DEPRECATED; + int mem DEPRECATED; int cpp; int agpMode; - int frontOffset; - int frontPitch; + unsigned int frontOffset; + unsigned int frontPitch; - int backOffset; - int backPitch; + unsigned int backOffset; + unsigned int backPitch; - int depthOffset; - int depthPitch; + unsigned int depthOffset; + unsigned int depthPitch; - int textureOffset; - int textureSize; - int logTextureGranularity; + unsigned int textureOffset; + unsigned int textureSize; + int logTextureGranularity DEPRECATED; /* Allow calculation of setup dma addresses. */ - unsigned int agpBufferOffset; + unsigned int agpBufferOffset DEPRECATED; unsigned int agpTextureOffset; unsigned int agpTextureSize; - int logAgpTextureGranularity; - - unsigned int mAccess; + int logAgpTextureGranularity DEPRECATED; + + unsigned int mAccess DEPRECATED; + + /** + * \name DRM memory regions. + * + * \todo + * Several of these fields are no longer used (and will never be used + * again) on the client-side. None of them, except \c registers, are used + * on the server-side. At some point when it is safe to do so (probably + * for the X.org 6.9 / 7.0 release), these fields should be removed. + */ + /*@{*/ + drmRegion registers; /**< MMIO registers. */ + drmRegion status DEPRECATED; /**< No longer used on the client-side. */ + drmRegion primary; /**< Primary DMA region. */ + drmRegion buffers DEPRECATED; /**< No longer used on the client-side. */ + /*@}*/ - drmRegion registers; - drmRegion status; - drmRegion primary; - drmRegion buffers; unsigned int sarea_priv_offset; } MGADRIRec, *MGADRIPtr; |