diff options
author | Adam Jackson <ajax@freedesktop.org> | 2004-12-16 19:26:23 +0000 |
---|---|---|
committer | Adam Jackson <ajax@freedesktop.org> | 2004-12-16 19:26:23 +0000 |
commit | c403bcb8a7be437976d5adce41189fff1e7f690f (patch) | |
tree | fcd53d612d1725eb2609c49031e04da54a52370b /src/mesa/drivers/dri/s3v/s3v_screen.h | |
parent | 8662c5d98febd8efaf5f8ee47d34c7fcfd597ce3 (diff) |
Import s3virge and trident drivers. Not functional yet; no Makefile, no DRI-aware DDX.
Diffstat (limited to 'src/mesa/drivers/dri/s3v/s3v_screen.h')
-rw-r--r-- | src/mesa/drivers/dri/s3v/s3v_screen.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/s3v/s3v_screen.h b/src/mesa/drivers/dri/s3v/s3v_screen.h new file mode 100644 index 0000000000..6bba29a7fa --- /dev/null +++ b/src/mesa/drivers/dri/s3v/s3v_screen.h @@ -0,0 +1,36 @@ +/* + * Author: Max Lingua <sunmax@libero.it> + */ + +typedef struct _s3vRegion { + drmHandle handle; + drmSize size; + drmAddress map; +} s3vRegion, *s3vRegionPtr; + +typedef struct { + + int regionCount; /* Count of register regions */ + s3vRegion *regions; /* Vector of mapped region info */ + + drmBufMapPtr bufs; /* Map of DMA buffers */ + + __DRIscreenPrivate *driScreen; /* Back pointer to DRI screen */ + + int cpp; + int frontPitch; + int frontOffset; + + int backPitch; + int backOffset; + int backX; + int backY; + + int depthOffset; + int depthPitch; + + int texOffset; + int textureOffset; + int textureSize; + int logTextureGranularity; +} s3vScreenRec, *s3vScreenPtr; |