summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/s3v/s3v_screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/s3v/s3v_screen.h')
-rw-r--r--src/mesa/drivers/dri/s3v/s3v_screen.h36
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 00000000000..6bba29a7faf
--- /dev/null
+++ b/src/mesa/drivers/dri/s3v/s3v_screen.h
@@ -0,0 +1,36 @@
+/*
+ * Author: Max Lingua <[email protected]>
+ */
+
+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;