xmesa: use newly added xm_image.[hc]
authorGeorge Sapountzis <gsap7@yahoo.gr>
Fri, 6 Apr 2007 10:28:39 +0000 (13:28 +0300)
committerGeorge Sapountzis <gsap7@yahoo.gr>
Fri, 6 Apr 2007 10:28:39 +0000 (13:28 +0300)
Keep external includes to glxheader.h and xmesa includes to xmesaP.h.

Drop the following from xm_image.h:
- dix-config.h (comes from glheader.h)
- xfree86 includes (come from GL/xmesa_xf86.h)
- ifdef __CYGWIN__ (leftover ? xm_api.c has something similar)

src/mesa/drivers/x11/glxheader.h
src/mesa/drivers/x11/xm_image.c
src/mesa/drivers/x11/xm_image.h
src/mesa/drivers/x11/xmesaP.h

index 8c5c69639be522068cd627c5683d4018de15217b..a402191f1310f5744e7a7722816ef9024882a615 100644 (file)
@@ -36,7 +36,6 @@
 
 # include "resource.h"
 # include "windowstr.h"
-# include "xf86glx_util.h"
 
 #else
 
index 6af773f538439deded6efce07c9dc6eab0cbd0b1..b91d5679f9b8310395e4625891b3cbad121f5f7e 100644 (file)
@@ -31,15 +31,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  *   Brian Paul <brian@precisioninsight.com>
  */
 
-#ifdef HAVE_DIX_CONFIG_H
-#include <dix-config.h>
-#endif
-
 #include <stdlib.h>
-
-#include "xf86glx_util.h"
 #include <X11/Xmd.h>
 
+#include "glxheader.h"
+#include "xmesaP.h"
+
+#ifdef XFree86Server
+
 #ifdef ROUNDUP
 #undef ROUNDUP
 #endif
@@ -147,3 +146,5 @@ void XMesaPutImageHelper(ScreenPtr display,
     (*gc->ops->PutImage)(d, gc, d->depth, dest_x, dest_y, width, height,
                         0, ZPixmap, src);
 }
+
+#endif /* XFree86Server */
index bb314128d4897c9daddf7bb867e92765b6cf7df9..c91ab3935ebffd81f086dc5e5879295a0617e21a 100644 (file)
@@ -31,22 +31,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  *   Brian Paul <brian@precisioninsight.com>
  */
 
-#ifdef HAVE_DIX_CONFIG_H
-#include <dix-config.h>
-#endif
-
-#ifndef _XF86GLX_UTIL_H_
-#define _XF86GLX_UTIL_H_
-
-#ifdef __CYGWIN__
-#undef WIN32
-#undef _WIN32
-#endif
-
-#include <screenint.h>
-#include <pixmap.h>
-#include <gc.h>
-#include "GL/xmesa.h"
+#ifndef _XM_IMAGE_H_
+#define _XM_IMAGE_H_
 
 #define XMESA_USE_PUTPIXEL_MACRO
 
@@ -102,4 +88,4 @@ extern void XMesaPutImageHelper(ScreenPtr display,
                                int dest_x, int dest_y,
                                unsigned int width, unsigned int height);
 
-#endif /* _XF86GLX_UTIL_H_ */
+#endif /* _XM_IMAGE_H_ */
index 03acd4ca245d79bc96b63f713c9343281b09c52c..bd5dce14172f344cdf5b5b1aeae77aa7357bc661 100644 (file)
 #define XMESAP_H
 
 
-#ifdef XFree86Server
-# include "xf86glx_util.h"
-#elif defined(USE_XSHM)
-# include <X11/extensions/XShm.h>
-#endif
 #include "GL/xmesa.h"
 #include "mtypes.h"
 #if defined(FX)
 #include "GL/fxmesa.h"
 #include "../glide/fxdrv.h"
 #endif
+#ifdef XFree86Server
+#include "xm_image.h"
+#endif
 
 
 extern _glthread_Mutex _xmesa_lock;