X Strike Force X.Org X11 SVN commit: r4021 - in trunk/xserver/xorg-server/debian: . patches
Author: julien
Date: 2006-11-18 20:20:19 -0500 (Sat, 18 Nov 2006)
New Revision: 4021
Added:
trunk/xserver/xorg-server/debian/patches/37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff
Modified:
trunk/xserver/xorg-server/debian/changelog
trunk/xserver/xorg-server/debian/patches/series
Log:
* Add patch 37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms
from upstream git to fix color issue on big endian platforms
(closes: #392453). Thanks to Michel D?\195?\164nzer for the patch!
Modified: trunk/xserver/xorg-server/debian/changelog
===================================================================
--- trunk/xserver/xorg-server/debian/changelog 2006-11-19 01:00:01 UTC (rev 4020)
+++ trunk/xserver/xorg-server/debian/changelog 2006-11-19 01:20:19 UTC (rev 4021)
@@ -18,8 +18,11 @@
07 July 2006. Thanks to Jurij Smakov for noticing.
* Add patch 36_fix_ffs.patch by Jurij Smakov to fix infinite loop in ffs()
if called with an argument of 0 (closes: #395564).
+ * Add patch 37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms
+ from upstream git to fix color issue on big endian platforms
+ (closes: #392453). Thanks to Michel Dänzer for the patch!
- -- Julien Cristau <julien.cristau@ens-lyon.org> Fri, 10 Nov 2006 22:00:28 +0100
+ -- Julien Cristau <julien.cristau@ens-lyon.org> Sun, 19 Nov 2006 02:16:32 +0100
xorg-server (2:1.1.1-10) unstable; urgency=low
Added: trunk/xserver/xorg-server/debian/patches/37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff
===================================================================
--- trunk/xserver/xorg-server/debian/patches/37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff (rev 0)
+++ trunk/xserver/xorg-server/debian/patches/37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff 2006-11-19 01:20:19 UTC (rev 4021)
@@ -0,0 +1,27 @@
+From 3ad1642f1bbaa5f96558cdf3384b40f7122f8781 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>
+Date: Sun, 15 Oct 2006 16:57:09 +0200
+Subject: [PATCH] Fix __glXDRIbindTexImage() for 32 bpp on big endian platforms.
+
+---
+ GL/glx/glxdri.c | 7 ++++++-
+ 1 files changed, 6 insertions(+), 1 deletions(-)
+
+Index: xorg-server/GL/glx/glxdri.c
+===================================================================
+--- xorg-server.orig/GL/glx/glxdri.c 2006-11-19 02:14:38.000000000 +0100
++++ xorg-server/GL/glx/glxdri.c 2006-11-19 02:14:39.000000000 +0100
+@@ -386,7 +386,12 @@
+ if (pixmap->drawable.depth >= 24) {
+ bpp = 4;
+ format = GL_BGRA;
+- type = GL_UNSIGNED_BYTE;
++ type =
++#if X_BYTE_ORDER == X_LITTLE_ENDIAN
++ GL_UNSIGNED_BYTE;
++#else
++ GL_UNSIGNED_INT_8_8_8_8_REV;
++#endif
+ } else {
+ bpp = 2;
+ format = GL_RGB;
Modified: trunk/xserver/xorg-server/debian/patches/series
===================================================================
--- trunk/xserver/xorg-server/debian/patches/series 2006-11-19 01:00:01 UTC (rev 4020)
+++ trunk/xserver/xorg-server/debian/patches/series 2006-11-19 01:20:19 UTC (rev 4021)
@@ -32,3 +32,4 @@
34_xorg.conf_man_typos.patch
35_randr_byteswap.patch
36_fix_ffs.patch
+37_Fix-__glXDRIbindTexImage-for-32-bpp-on-big-endian-platforms.diff
Reply to: