i965_hwmc.h revision fa225cbc
1#define I965_MC_STATIC_BUFFER_SIZE	(1024*512)
2#define I965_MAX_SURFACES		12
3struct _i830_memory;
4struct  drm_memory_block {
5    struct 		_i830_memory *buffer;
6    drm_handle_t 	handle;
7    drmAddress 		ptr;
8    size_t 		size;
9    unsigned long 	offset;
10};
11
12struct i965_xvmc_surface {
13    int			w, h;
14    unsigned int 	no;
15    void 		*handle;
16    dri_bo		*bo;
17};
18
19struct i965_xvmc_context {
20    struct 	_intel_xvmc_common comm;
21    struct 	drm_memory_block static_buffer;
22    struct 	drm_memory_block blocks;
23    struct 	drm_memory_block slice;
24    struct 	i965_xvmc_surface *surfaces[I965_MAX_SURFACES];
25    unsigned    int is_g4x:1;
26    unsigned    int is_965_q:1;
27    unsigned    int is_igdng:1;
28};
29