On 03/16/2015 05:50 AM, Emil Velikov wrote:
Remove the forward declaration and make use of the DEBUG_PRINT macro for
debug builds.

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
  src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 6 ++----
  1 file 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 ce3de78..e61a173 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
  {


Reviewed-by: Brian Paul <bri...@vmware.com>

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to