st/dri: add drisw
[mesa.git] / src / gallium / state_trackers / dri / dri_screen.h
index 2b0444603a0b03210b63862b8c82aaa2e2e5bbeb..4f59db37cfa35655d59ddc7ef748e7b55f4d1a37 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef DRI_SCREEN_H
 #define DRI_SCREEN_H
 
-#include "dri_util.h"
+#include "dri_wrapper.h"
 #include "xmlconfig.h"
 
 #include "pipe/p_compiler.h"
@@ -75,6 +75,8 @@ dri_screen(__DRIscreen * sPriv)
    return (struct dri_screen *)sPriv->private;
 }
 
+#ifndef __NOT_HAVE_DRM_H
+
 static INLINE boolean
 dri_with_format(__DRIscreen * sPriv)
 {
@@ -85,6 +87,16 @@ dri_with_format(__DRIscreen * sPriv)
        && (loader->getBuffersWithFormat != NULL);
 }
 
+#else
+
+static INLINE boolean
+dri_with_format(__DRIscreen * sPriv)
+{
+   return TRUE;
+}
+
+#endif
+
 extern const uint __driNConfigOptions;
 
 const __DRIconfig **