Author: boiko Date: Wed Feb 14 12:22:23 2007 New Revision: 120781 Added: packages/updates/2007.0/x11-server/current/SOURCES/0017-Fix-index-matching-of-visuals.txt (contents, props changed) Modified: packages/updates/2007.0/x11-server/current/SPECS/x11-server.spec
Log: - Fix the index matching of GLX visuals (this fixes a crash on some chipsets, for instance the sis driver - #25160) Added: packages/updates/2007.0/x11-server/current/SOURCES/0017-Fix-index-matching-of-visuals.txt ============================================================================== --- (empty file) +++ packages/updates/2007.0/x11-server/current/SOURCES/0017-Fix-index-matching-of-visuals.txt Wed Feb 14 12:22:23 2007 @@ -0,0 +1,31 @@ +From d69b2db3c8ae098f88ec9ab5ce05c507e0a62583 Mon Sep 17 00:00:00 2001 +From: Antonio Hobmeir Neto <[EMAIL PROTECTED]> +Date: Thu, 21 Sep 2006 14:06:25 -0300 +Subject: [PATCH] Fix index matching of visuals + +The function find_mesa_visual return a wrong element of visual vector. The +index of vector is shift one element. Then I basically decremented one of +index. +--- + GL/mesa/X/xf86glx.c | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/GL/mesa/X/xf86glx.c b/GL/mesa/X/xf86glx.c +index b1125a7..9c8a7a9 100644 +--- a/GL/mesa/X/xf86glx.c ++++ b/GL/mesa/X/xf86glx.c +@@ -306,8 +306,10 @@ find_mesa_visual(__GLXscreen *screen, Vi + + i++; + } ++ ++ i--; + +- return (modes != NULL) ? mesaScreen->xm_vis[i] : NULL; ++ return (modes != NULL && i >=0 ) ? mesaScreen->xm_vis[i] : NULL; + } + + static void init_screen_visuals(__GLXMESAscreen *screen) +-- +1.4.2 + Modified: packages/updates/2007.0/x11-server/current/SPECS/x11-server.spec ============================================================================== --- packages/updates/2007.0/x11-server/current/SPECS/x11-server.spec (original) +++ packages/updates/2007.0/x11-server/current/SPECS/x11-server.spec Wed Feb 14 12:22:23 2007 @@ -9,7 +9,7 @@ Name: x11-server Version: 1.1.1 -Release: %mkrel 11 +Release: %mkrel 12 Summary: X11 servers Group: System/X11 Source: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2 @@ -68,6 +68,7 @@ Patch14: 0014-XkbGetKeyboard.txt Patch15: 0015-happy-vt-switch.txt Patch16: 0016-Bug-3042-Use-autoconf-to-get-the-correct-name-of-a-struct-member.txt +Patch17: 0017-Fix-index-matching-of-visuals.txt # ----------------------------------------------------------------------------- Requires: %{name}-xorg @@ -678,6 +679,7 @@ %patch14 -p1 -b .XkbGetKeyboard %patch15 -p1 -b .happy_vt_switch %patch16 -p1 -b .autoconf_struct_members +%patch17 -p1 -b .visual_index %build aclocal && autoconf && automake
