summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/s3v/s3v_screen.h
blob: 0c4f69efac3a0221fddff9c16ed0f3c47c64e154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Author: Max Lingua <sunmax@libero.it>
 */

#include "mtypes.h"

typedef struct _s3vRegion {
    drm_handle_t  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;