1 #ifndef __NOUVEAU_CONTEXT_VL_H__
2 #define __NOUVEAU_CONTEXT_VL_H__
5 #include <nouveau/nouveau_winsys.h>
6 #include <common/nouveau_context.h>
8 /*#include "xmlconfig.h"*/
10 struct nouveau_context_vl {
11 struct nouveau_context base;
12 struct nouveau_screen_vl *nv_screen;
13 dri_context_t *dri_context;
14 dri_drawable_t *dri_drawable;
15 unsigned int last_stamp;
16 /*driOptionCache dri_option_cache;*/
17 drm_context_t drm_context;
21 extern int nouveau_context_create(dri_context_t *);
22 extern void nouveau_context_destroy(dri_context_t *);
23 extern int nouveau_context_bind(struct nouveau_context_vl *, dri_drawable_t *);
24 extern int nouveau_context_unbind(struct nouveau_context_vl *);
27 extern int __nouveau_debug;
29 #define DEBUG_BO (1 << 0)
31 #define DBG(flag, ...) do { \
32 if (__nouveau_debug & (DEBUG_##flag)) \
33 NOUVEAU_ERR(__VA_ARGS__); \
36 #define DBG(flag, ...)