Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349514 - sys-kernel/gentoo-sources-2.6.36-r5: Graphical glitches (OpenGL)
Summary: sys-kernel/gentoo-sources-2.6.36-r5: Graphical glitches (OpenGL)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 17:45 UTC by Gian
Modified: 2013-11-16 16:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Extreme-tuxracer screenshot (etracer-glitch.png,1.35 MB, image/png)
2010-12-23 17:47 UTC, Gian
Details
Screenshot from gl-117 (gl117-glitch.png,927.69 KB, image/png)
2010-12-23 17:48 UTC, Gian
Details
purple tint in desktop switcher widget (KDE graphics glitch with xorg-server 1.9 (section).png,7.60 KB, image/png)
2010-12-28 06:07 UTC, Jeremy Murphy
Details
My dmesg (dmesg-glitch,48.78 KB, text/plain)
2010-12-29 15:47 UTC, Gian
Details
KDE window shadow is a flat green rectangle. (window shadow green.png,114.85 KB, image/png)
2010-12-30 08:52 UTC, Jeremy Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gian 2010-12-23 17:45:45 UTC
Since upgrading to now-stable x11-base/xorg-server-1.9.2 and media-libs/mesa-7.9, I'm experiencing graphical glitches in several OpenGL games, such as gl-117, extreme-tuxracer and Osmos. This happens for both the Gallium and the classic Mesa driver. At least Osmos worked well right before the upgrade. 

I'm using a Radeon HD4300 video card with the open source drivers and KMS enabled. 

Reproducible: Always

Steps to Reproduce:
1. Start an OpenGL game
2.
3.

Actual Results:  
Graphical glitches (see attached screenshots)

Expected Results:  
No glitches

Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-1.12.14
Timestamp of tree: Thu, 23 Dec 2010 14:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="de_CH.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/wfiles/portage-temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/portage/myoverlays"                                                                                                                                                                                                    
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                                                                               
USE="3dnow 3dnowext X aac acl alsa amd64 bash-completion berkdb bzip2 cdda cddb cdr cli cracklib crypt cups cxx dbus dri dvd exif faac faad fam ffmpeg flac fontconfig fortran gd gdbm gif gimp git gpm hal iconv inotify ipod ipv6 java java6 jpeg kde kipi lame latex lcms lm_sensors lzma mercurial mmx mmxext modules mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt4 readline rss rtsp samba scanner sdl semantic-desktop session smp spell sse sse2 sse3 ssl svg sysfs tcpd threads thumbnail tiff truetype unicode vim-syntax vorbis vpx x264 xcomposite xetex xinerama xorg xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" NETBEANS_MODULES="apisupport harness ide java nb webcommon websvccommon ruby" PHP_TARGETS="php5-2" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm" RUBY_TARGETS="jruby ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"                                                                  
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gian 2010-12-23 17:47:19 UTC
Created attachment 257881 [details]
Extreme-tuxracer screenshot
Comment 2 Gian 2010-12-23 17:48:05 UTC
Created attachment 257882 [details]
Screenshot from gl-117
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-25 08:27:03 UTC
Please also attach dmesg output.

Do you use compositing?
Do you also see the glitches when starting OpenGL applications with LIBGL_ALWAYS_INDIRECT=1 ?
Comment 4 Gian 2010-12-26 21:59:18 UTC
I do use compositing (KWin). I'm not at home right now, but I'll attach dmesg and try with LIBGL_ALWAYS_INDIRECT in a few days. 
Comment 5 Jeremy Murphy 2010-12-28 06:07:07 UTC
Created attachment 258237 [details]
purple tint in desktop switcher widget

Hmmm, I was just thinking of changing my package-specific bug to much the same summary.  I've seen a few graphical glitches since doing the same upgrade, one of which I have documented as #348930, and another that I will attach now.  I assume that any graphical glitch in KDE could be related, if one is using OpenGL compositing in KWin?

What exactly is the glitch in ETR?  Is it the purple banner thing?  Of course I ask because the glitch in my KDE desktop switcher is the purple/indigo tint, which should not be there.
Comment 6 Jeremy Murphy 2010-12-28 06:14:48 UTC
Oh, and by coincidence (or not), I also have an r700-era Radeon card (4850).  I have only tested the classic driver so far because I thought gallium was still highly experimental for r600-r700.
Comment 7 Gian 2010-12-29 15:47:00 UTC
Created attachment 258360 [details]
My dmesg

LIBGL_ALWAYS_INDIRECT=1 doesn't help. Neither does switching off compositing, though the symptoms change slightly. (The artifacts are coloured instead of black) To me it looks a lot like the textures somehow get corrupted.
Comment 8 Gian 2010-12-29 15:55:46 UTC
@Jeremy: Yeah, the Gallium drivers are still experimental, but they're only an eselect away, so I thought I'd give it a try. :)

There are actually several glitches in the extreme-tuxracer screenshot: those black squares on the floor shouldn't be there. Also this purple banner is shown multiple times. (It looks like the mipmaps somehow get mixed up or something) Additionally the tree in the foreground is torn. 
Comment 9 Jeremy Murphy 2010-12-30 08:52:24 UTC
Created attachment 258423 [details]
KDE window shadow is a flat green rectangle.

I hope you don't mind my piggybacking on your bug, Gian!  But I assume we are suffering glitches for the same reason, so it makes sense to report in one place and pool data.  Cheers.
Comment 10 Gian 2010-12-30 10:56:45 UTC
@Jeremy: No, I don't mind. Have you tried extreme-tuxracer or gl-117, to see if you get the same glitches? I haven't seen any glitches in KDE lately. 
Comment 11 Jeremy Murphy 2010-12-30 13:02:43 UTC
ETR went weird as soon as the actual level started, I had to restart X.  Maybe that was because I chose 2048x1152 and it wasn't expecting it.  I'll try it again next time I want to reboot.

gl117 had the same glitch as you, where the ground is covered in that repeating pattern of something... planes?

We should try downgrading mesa and xorg-server separately, see if we can isolate the problem to one or the other.
Comment 12 Gian 2010-12-31 17:45:28 UTC
I tried: neither downgrading xorg-server alone nor xorg-server and mesa helped. 
Comment 13 Jeremy Murphy 2011-01-01 10:18:44 UTC
(In reply to comment #12)
> I tried: neither downgrading xorg-server alone nor xorg-server and mesa helped. 

Hold on... surely downgrading both of them must have fixed it?  Otherwise this bug is misleading, as you said "Since upgrading..." in your description.

I just downgraded mesa back to 7.8.2 and I haven't seen any of the glitches that I was experiencing yet, however gl-117 still had the same glitches and ETR just crashed so I have removed it.

So I think you and I are talking about different glitches after all, even though your summary seemed appropriate for mine.  I think the glitches that I'm seeing are specific to mesa-7.9 after all and not related to xorg-server.

If you cannot resolve the glitches by downgrading X and mesa, then you need to consider changing the summary so that it's not specific to those versions.  However, keep in mind that downgrading X completely is a tedious process given all the packages in x11-apps, x11-libs and x11-proto that may affect the result.

Anyway, I leave you to it, good luck!  :)  Sorry about the noise after all.
Comment 14 Gian 2011-01-01 12:14:41 UTC
Turns out that the problem wasn't the X server nor mesa, but the new kernel. I had also upgraded the kernel to 2.6.36-r5 right before upgrading X, and going back to 2.6.34 solved the glitches. 
Comment 15 Ben Kohler gentoo-dev 2013-06-14 15:08:38 UTC
(In reply to Gian from comment #14)
> Turns out that the problem wasn't the X server nor mesa, but the new kernel.
> I had also upgraded the kernel to 2.6.36-r5 right before upgrading X, and
> going back to 2.6.34 solved the glitches.

Is this still a problem with a recent stable kernel, or has this issue faded away?
Comment 16 Jeremy Murphy 2013-06-14 15:20:04 UTC
(In reply to Ben Kohler from comment #15)
> (In reply to Gian from comment #14)
> > Turns out that the problem wasn't the X server nor mesa, but the new kernel.
> > I had also upgraded the kernel to 2.6.36-r5 right before upgrading X, and
> > going back to 2.6.34 solved the glitches.
> 
> Is this still a problem with a recent stable kernel, or has this issue faded
> away?

Definitely faded away for me.
Comment 17 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-16 16:15:07 UTC
If anyone can still reproduce this on recent versions, feel free to let us know.