gallium/sw/kms: trivial cleanups
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Mar 2015 11:50:47 +0000 (11:50 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Mar 2015 20:59:22 +0000 (20:59 +0000)
Remove the forward declaration and make use of the DEBUG_PRINT macro for
debug builds.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c

index ce3de7832882cff50fd7f8a9d7f1b7c166d9a3a3..e61a1732387fa2168fc720d7d097d9f5d6ebb213 100644 (file)
 
 #include "state_tracker/sw_winsys.h"
 #include "state_tracker/drm_driver.h"
+#include "kms_dri_sw_winsys.h"
 
-#if 0
+#ifdef DEBUG
 #define DEBUG_PRINT(msg, ...) fprintf(stderr, msg, __VA_ARGS__)
 #else
 #define DEBUG_PRINT(msg, ...)
 #endif
 
-struct sw_winsys;
-
-struct sw_winsys *kms_dri_create_winsys(int fd);
 
 struct kms_sw_displaytarget
 {