st/dri: add dri_wrapper.h
authorGeorge Sapountzis <gsapountzis@gmail.com>
Thu, 25 Mar 2010 15:01:53 +0000 (17:01 +0200)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Thu, 25 Mar 2010 15:01:53 +0000 (17:01 +0200)
src/gallium/state_trackers/dri/dri1.h
src/gallium/state_trackers/dri/dri2.h
src/gallium/state_trackers/dri/dri_context.c
src/gallium/state_trackers/dri/dri_context.h
src/gallium/state_trackers/dri/dri_screen.h
src/gallium/state_trackers/dri/dri_wrapper.h [new file with mode: 0644]

index cced505ea97f711750b5d1d3aef5e8796bba4454..f7441f98abcc0338c7ea2f701dd390f3f7707348 100644 (file)
@@ -36,7 +36,7 @@
 #include "dri_drawable.h"
 
 #include "state_tracker/st_api.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
 
 extern struct dri1_api *__dri1_api_hooks;
 
index 06abccc405f9191059e3ffd76f84cf8924947e3d..e1afcf8ca8dbe5f275fc1f45642abc352e4105b6 100644 (file)
@@ -29,7 +29,7 @@
 #define DRI2_H
 
 #include "dri_drawable.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
 
 const __DRIconfig **
 dri_init_screen2(__DRIscreen * sPriv);
index 54568a8b2205f541fb9e6c9704fdebb2225f7315..34d9a932ead162de2e9dd5d0c99adc6c82c90022 100644 (file)
@@ -33,7 +33,6 @@
 #include "dri_drawable.h"
 #include "dri_context.h"
 #include "dri_st_api.h"
-#include "dri1.h"
 
 #include "pipe/p_context.h"
 #include "util/u_memory.h"
index 845b420cf8993c8445dfdf3b53d580ca63cc64dd..24d3d0368a4c4236710e62ebcd16b1b5ad952468 100644 (file)
@@ -33,8 +33,7 @@
 #define DRI_CONTEXT_H
 
 #include "pipe/p_compiler.h"
-#include "drm.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
 
 struct pipe_context;
 struct pipe_fence;
index 2b0444603a0b03210b63862b8c82aaa2e2e5bbeb..639d48661e2f4ada3dced61d1d5f5d1916c34efc 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"
diff --git a/src/gallium/state_trackers/dri/dri_wrapper.h b/src/gallium/state_trackers/dri/dri_wrapper.h
new file mode 100644 (file)
index 0000000..141ba02
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef DRI_WRAPPER_H
+#define DRI_WRAPPER_H
+
+#ifndef __NOT_HAVE_DRM_H
+#include "dri_util.h"
+#else
+#include "drisw_util.h"
+#endif
+
+#endif