summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-03-16 11:50:47 +0000
committerEmil Velikov <[email protected]>2015-03-16 20:59:22 +0000
commit5664f57df3b7dfc5def189d1ee7a1b3df7d92bd6 (patch)
tree9632d7087dd9eb4dd5b4faa1a7a49d74726564d4 /src
parent771cd266b9d00bdcf2cf7acaa3c8363c358d7478 (diff)
gallium/sw/kms: trivial cleanups
Remove the forward declaration and make use of the DEBUG_PRINT macro for debug builds. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c b/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c
index ce3de783288..e61a1732387 100644
--- a/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c
+++ b/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c
@@ -51,16 +51,14 @@
#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
{