all: include config.h only when available and use its defines
[platform/upstream/libdrm.git] / libkms / dumb.c
index 3be5f7a..794282f 100644 (file)
@@ -26,7 +26,9 @@
  **************************************************************************/
 
 
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 #define _FILE_OFFSET_BITS 64
 
 #include <errno.h>
@@ -95,7 +97,8 @@ dumb_bo_create(struct kms_driver *kms,
 
        memset(&arg, 0, sizeof(arg));
 
-       arg.bpp = 16;
+       /* All BO_TYPE currently are 32bpp formats */
+       arg.bpp = 32;
        arg.width = width;
        arg.height = height;