summaryrefslogtreecommitdiff
path: root/src/i965_hwmc.h
blob: 1208daa57dca3d9582a1c829cca2fe7d891885bb (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
#define I965_MC_STATIC_BUFFER_SIZE	(1024*512)
#define I965_MAX_SURFACES		32
struct _i830_memory;
struct  drm_memory_block {
    struct 		_i830_memory *buffer;
    drm_handle_t 	handle;
    drmAddress 		ptr;
    size_t 		size;
    unsigned long 	offset;
};

struct i965_xvmc_surface {
    struct 		drm_memory_block buffer;
    unsigned int 	no;
    void 		*handle; 
};

struct i965_xvmc_context {
    struct 	_intel_xvmc_common comm;
    struct 	drm_memory_block static_buffer;
    struct 	drm_memory_block blocks;
    struct 	i965_xvmc_surface *surfaces[I965_MAX_SURFACES];
    unsigned    int is_igd_gm:1;
};