diff options
Diffstat (limited to 'src/gallium/winsys/svga/drm/vmw_context.h')
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_context.h b/src/gallium/winsys/svga/drm/vmw_context.h index b27e0b8f4be..3d383ccb1ed 100644 --- a/src/gallium/winsys/svga/drm/vmw_context.h +++ b/src/gallium/winsys/svga/drm/vmw_context.h @@ -31,6 +31,7 @@ #ifndef VMW_CONTEXT_H_ #define VMW_CONTEXT_H_ +#include <stdio.h> #include "pipe/p_compiler.h" struct svga_winsys_screen; @@ -38,6 +39,8 @@ struct svga_winsys_context; struct pipe_context; struct pipe_screen; + +/** Set to 1 to get extra debug info/output */ #define VMW_DEBUG 0 #if VMW_DEBUG @@ -49,6 +52,13 @@ struct pipe_screen; #endif +/** + * Called when an error/failure is encountered. + * We want these messages reported for all build types. + */ +#define vmw_error(...) fprintf(stderr, "VMware: " __VA_ARGS__) + + struct svga_winsys_context * vmw_svga_winsys_context_create(struct svga_winsys_screen *sws); |