1
#ifndef _VA_DRICOMMON_H_
2
#define _VA_DRICOMMON_H_
10
#include "va_backend.h"
22
unsigned int attachment;
40
struct dri_drawable *next;
43
#define DRAWABLE_HASH_SZ 32
47
int driConnectedFlag; /* 0: disconnected, 1: DRI, 2: DRI2 */
49
drm_context_t hwContext;
52
struct dri_drawable *drawable_hash[DRAWABLE_HASH_SZ];
54
struct dri_drawable *(*createDrawable)(VADriverContextP ctx, XID x_drawable);
55
void (*destroyDrawable)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
56
void (*swapBuffer)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
57
union dri_buffer *(*getRenderingBuffer)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
58
void (*close)(VADriverContextP ctx);
61
Bool isDRI2Connected(VADriverContextP ctx, char **driver_name);
62
Bool isDRI1Connected(VADriverContextP ctx, char **driver_name);
63
void free_drawable_hashtable(VADriverContextP ctx);
64
struct dri_drawable *dri_get_drawable(VADriverContextP ctx, XID drawable);
65
void dri_swap_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable);
66
union dri_buffer *dri_get_rendering_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable);
68
#endif /* _VA_DRICOMMON_H_ */