FS#10500 - Last mesa is broken.

Attached to Project: Arch Linux
Opened by Andrey Gusev (metal) - Sunday, 25 May 2008, 22:58 GMT
Last edited by Jan de Groot (JGC) - Sunday, 22 June 2008, 21:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: I upgraded on mesa 7.0.3-2 and 3d acceleration has broken(glxgears doesn't show any movement). Similar trouble: http://bbs.archlinux.org/viewtopic.php?id=40318
I downgraded to 7.0.3rc2-1 and glxgears runs, but it seems very slow. On intel 855GM
564 frames in 5.0 seconds = 112.696 FPS

Additional info:
* package version(s)
7.0.3-2
* config and/or log files etc
[2008-05-26 01:22] upgraded mesa (7.0.3rc2-1 -> 7.0.3-2)
....
[2008-05-26 01:23] installed intel-dri (7.0.3-1)
[2008-05-26 01:23] upgraded xf86-video-intel (2.2.1-2 -> 2.3.1-1)
[2008-05-26 01:23] upgraded xf86driproto (2.0.3-1 -> 2.0.4-1)
[2008-05-26 01:23] upgraded xorg-server (1.4.0.90-9 -> 1.4.0.90-13)
[2008-05-26 01:23] upgraded xproto (7.0.11-1 -> 7.0.12-1)
[2008-05-26 01:23] upgraded xtrans (1.0.4-1 -> 1.2-1)

Steps to reproduce:
1) updrade
2) run glxgears.
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 22 June 2008, 21:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 7.0.3-3.
Comment by Jan de Groot (JGC) - Monday, 26 May 2008, 06:38 GMT
I can't reproduce this on my x86_64 boxes (G33, Q35), but I can reproduce it on my i686 machine with 945GM.
Comment by Pierre Schmitz (Pierre) - Monday, 26 May 2008, 10:36 GMT
Same problem with i855GM on i686.
Comment by Attila (attila) - Monday, 26 May 2008, 19:35 GMT
After i read this bugreport i test this with my system (i686 with nvidia driver) and i recognized nearly the same. Nearly means, that the framereate of glxgears looks okay but the gears don't moves and it looks more than a freeze image. My OpenGL-Screensaver Module of kde works successful with the mesa 7.0.3-1.

I take a copy from the abs tree and play my normal "try&error" game. With two modifications glxgears works as before:

replaces=('mesa-apps')
+options=('!makeflags') # optional (only if don't run make with -j1)
...
patch -Np0 -i ${startdir}/src/mesa-6.5-apps-noglut.patch || return 1
+
+# workaround to let the gears twist again
+unset CFLAGS
+unset CXXFLAGS

I can't test this with an intel card so perhaps one of you can give it a try to see if this works for you too.
Comment by Adrian C. (anrxc) - Monday, 26 May 2008, 20:10 GMT
Just to back this up, doesn't *spin* (accel. working) here either. (965GM with latest updates)
Comment by Michael (SiD) - Tuesday, 27 May 2008, 20:26 GMT
Same here with xf86-video-ati on [Mobility Radeon 9600 M10]
The gears don't move, FPS are normal. Downgrading to mesa to 7.0.3rc2-1 (i686) solve it here, too.
Comment by Martijn F. Arts (mfa) - Tuesday, 27 May 2008, 21:14 GMT
Can confirm this here.
Did not have hardware acceleration after the update. Somehow the intel-dri package was not installed cleanly and the /usr/lib/xorg/modules/dri/* files were missing.
Reinstallation of intel-dri fixed that. However, the wheels do not spin at all while the fps is ok and the hardware acceleration works (quake3 runs good ;) ).
Comment by Michael (SiD) - Tuesday, 27 May 2008, 21:23 GMT
Recompiling the mesa package with the PKGBUILD from ABS-tree using march=i586 in makepkg.conf solved it for me. (the gaers are moving)

CFLAGS="-march=i586 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i586 -mtune=generic -O2 -pipe"

I also tested march=i486 (worked) and march=pentium-m (worked not).
Comment by Michael (SiD) - Tuesday, 27 May 2008, 21:35 GMT
the workaround adding

unset CFLAGS
unset CXXFLAGS

to the PKGBUILD works for me, too
Comment by Attila (attila) - Wednesday, 28 May 2008, 05:13 GMT
Thanks Michael, so it seems that CFLAGS/CXXFLAGS below i686 works but other not. I have only tried this ones which doesn't works too:

CFLAGS/CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fomit-frame-pointer"
CFLAGS/CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
CFLAGS/CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe"

That was the reason why i give "unset" a try.

@Adrian C. Thanks for the information that "spin" is the correct word and not "twist". -)
Comment by Andrey Gusev (metal) - Wednesday, 28 May 2008, 08:37 GMT
I saw patch, which this package includes. There are something like: -Llib64. I changed to -Llib, but it didn't help. I'll try different optimization tonight.
Comment by Andrey Gusev (metal) - Friday, 30 May 2008, 23:17 GMT
I removed -L$(TOP)/lib64 from patch. It doesn't have influence, but I don't sure. Changed /etc/makepkg.conf
[code]
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
[/code]
on
[code]
CFLAGS="-march=i686 -mtune=pentium-m -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=pentium-m -O2 -pipe"
[/code]
Rebuilt package, upgraded and it became working for me!
Comment by Jacques Charroy (jiu) - Saturday, 31 May 2008, 00:27 GMT
Confirmed here on i810, I downgraded mesa and glxgears works again. beauty!
Comment by Ivan Stojic (stojic) - Saturday, 31 May 2008, 14:05 GMT
Same problem on i686 with nvidia 169.12-4 (GeForce Go 7300).

Recompiling mesa using these flags solves the problem (CPU is Turion 64):
CFLAGS="-march=i686 -mtune=k8 -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=k8 -O2 -pipe"

Loading...