diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2007-05-19 20:36:56 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2007-05-19 20:36:56 +0000 |
commit | d4f0d0048a8755106a4b0445221a19761e746984 (patch) | |
tree | c87184c5bfeaf942c827c5f706186ce9786a2588 /graphics/dri/files/patch-mach64_context.h | |
parent | e82affd309fc2d8e5ea19b2e003f1296920bd825 (diff) | |
download | ports-d4f0d0048a8755106a4b0445221a19761e746984.tar.gz ports-d4f0d0048a8755106a4b0445221a19761e746984.zip |
- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
Notes
Notes:
svn path=/head/; revision=191544
Diffstat (limited to 'graphics/dri/files/patch-mach64_context.h')
-rw-r--r-- | graphics/dri/files/patch-mach64_context.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/dri/files/patch-mach64_context.h b/graphics/dri/files/patch-mach64_context.h new file mode 100644 index 000000000000..bc17aea756ac --- /dev/null +++ b/graphics/dri/files/patch-mach64_context.h @@ -0,0 +1,37 @@ +--- src/mesa/drivers/dri/mach64/mach64_context.h.orig Mon Nov 28 13:17:16 2005 ++++ src/mesa/drivers/dri/mach64/mach64_context.h Wed Dec 20 15:37:34 2006 +@@ -331,25 +331,28 @@ + /* ================================================================ + * Byte ordering + */ +-#if MESA_LITTLE_ENDIAN == 1 ++#if defined(MESA_LITTLE_ENDIAN) && MESA_LITTLE_ENDIAN == 1 + #define LE32_IN( x ) ( *(GLuint *)(x) ) + #define LE32_IN_FLOAT( x ) ( *(GLfloat *)(x) ) + #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) + #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0) + #else +-#include <byteswap.h> +-#define LE32_IN( x ) bswap_32( *(GLuint *)(x) ) ++#define LE32_IN( x ) CPU_TO_LE32( *(GLuint *)(x) ) + #define LE32_IN_FLOAT( x ) \ + ({ \ +- GLuint __tmp = bswap_32( *(GLuint *)(x) ); \ ++ GLuint __tmp = CPU_TO_LE32( *(GLuint *)(x) ); \ + *(GLfloat *)&__tmp; \ + }) +-#define LE32_OUT( x, y ) do { *(GLuint *)(x) = bswap_32( y ); } while (0) ++#define LE32_OUT( x, y ) do { *(GLuint *)(x) = CPU_TO_LE32( y ); } while (0) ++#define LE32_OUT( x, y ) \ ++do { \ ++ *(GLuint *)(x) = CPU_TO_LE32( y ); \ ++} while (0) + #define LE32_OUT_FLOAT( x, y ) \ + do { \ + GLuint __tmp; \ + *(GLfloat *)&__tmp = (y); \ +- *(GLuint *)(x) = bswap_32( __tmp ); \ ++ *(GLuint *)(x) = CPU_TO_LE32( __tmp ); \ + } while (0) + #endif + |