diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-05-18 22:49:59 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-05-18 22:49:59 +0000 |
commit | 6bc9ea1df92a102c60c409c2f2261151503890b4 (patch) | |
tree | f5a2a3db11ff7b69f468ec5aef2cecc5fae7aee3 /src/mesa/drivers/dri/mga/mga_xmesa.h | |
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/mga_xmesa.h')
-rw-r--r-- | src/mesa/drivers/dri/mga/mga_xmesa.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.h b/src/mesa/drivers/dri/mga/mga_xmesa.h index 14110b8f1e..0ab0c63f78 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.h +++ b/src/mesa/drivers/dri/mga/mga_xmesa.h @@ -37,20 +37,23 @@ #include "xmlconfig.h" typedef struct mga_screen_private_s { - + /** + * Chipset "family" of this card. Currently only \c MGA_CARD_TYPE_G200 and + * \c MGA_CARD_TYPE_G400 are possible. + */ int chipset; - int width; - int height; - int mem; - int cpp; /* for front and back buffers */ - GLint agpMode; - unsigned int irq; /* IRQ number (0 means none) */ - GLboolean linecomp_sane; /* GL_TRUE if line comp. programmed correctly - * by the DDX driver. - */ - unsigned int mAccess; + /** + * Characters (bytes) per-pixel for both the front and back buffers. + * + * \note + * This is also implicitly the bytes per-pixel for the depth-buffer. + */ + int cpp; + + GLint agpMode; + unsigned int irq; /**< IRQ number (0 means none) */ unsigned int frontOffset; unsigned int frontPitch; @@ -59,11 +62,9 @@ typedef struct mga_screen_private_s { unsigned int depthOffset; unsigned int depthPitch; - int depthCpp; unsigned int textureOffset[MGA_NR_TEX_HEAPS]; unsigned int textureSize[MGA_NR_TEX_HEAPS]; - int logTextureGranularity[MGA_NR_TEX_HEAPS]; char *texVirtual[MGA_NR_TEX_HEAPS]; @@ -74,7 +75,7 @@ typedef struct mga_screen_private_s { drmRegion primary; unsigned int sarea_priv_offset; - /* Configuration cache with default values for all contexts */ + /** Configuration cache with default values for all contexts */ driOptionCache optionCache; } mgaScreenPrivate; @@ -150,6 +151,5 @@ do { \ #define MGA_DEREF( reg ) *(volatile u_int32_t *)MGA_ADDR( reg ) #define MGA_READ( reg ) MGA_DEREF( reg ) -#define MGA_WRITE( reg, val ) do { MGA_DEREF( reg ) = val; } while (0) #endif |