Related to Bug 354101. Refiled here for new version and 2D specific issue. 2D performance is very slow with all builds >6.13.2, most noticeable with text rendering in terminal windows. 3D performance seems unaffected. Dropping back to 6.13.2 fixes the issue. Reproducible: Always Steps to Reproduce: 1. update xf86-video-ati to 6.14.1 2. (re)start X 3. observe 2D rendering performance Actual Results: 2D rendering is excruciatingly slow Expected Results: 2D rendering should be as fast as with 6.13.2 Many fundamental changes to the 6.14.x branch seem to have broken 2D performance, perhaps only on certain hardware. This is clearly an UPSTREAM issue, but I'm just filing it here for reference. If I find a relevant X.org bug I'll add the URL.
Are you using compositing or not? If yes, it could also be some kind of interaction with mesa.
(In reply to comment #1) > Are you using compositing or not? If yes, it could also be some kind of > interaction with mesa. Please reopen when replying
No, it's just plain Openbox with no compositor.
Still happening with 6.14.2, and unfortunately I can no longer use 6.13.2 due to it being incompatible with the xorg-server-1.10.2 update (won't even build). However, I have found another workaround. The problem completely disappears when I set the nomodeset kernel parameter. I have no idea what that implies. Presumably it's a problem with the kernel driver (2.6.38-r1).
How about some logs? /var/log/Xorg.0.log and dmesg are good places to start...
Created attachment 281725 [details] dmesg with kernel modesetting enabled
Created attachment 281727 [details] dmesg with kernel modesetting disabled
Created attachment 281729 [details] Xorg log with kernel modesetting enabled
Created attachment 281731 [details] Xorg log with kernel modesetting disabled
Created attachment 281733 [details] glxinfo with kernel modesetting enabled
Created attachment 281735 [details] glxinfo with kernel modesetting disabled
If I enable kernel modesetting, I get fast 3D but slow 2D. If I disable kernel modesetting, I get slow 3D but fast 2D. With 6.13.2 (and below) I had fast 3D and 2D.
I found a patch to enable building xf86-video-ati-6.13.2 against xorg-server-1.10.2 here: https://bugs.freedesktop.org/show_bug.cgi?id=30451#c20 Going back to 6.13.2 solves the problem, and now both 2D and 3D graphics work fine, even with KMS. Of course this is only a workaround. I'll attach logs.
Created attachment 281745 [details] 6.13.2 dmesg with kernel modesetting enabled
Created attachment 281747 [details] 6.13.2 Xorg log with kernel modesetting enabled
Created attachment 281749 [details] 6.13.2 glxinfo with kernel modesetting enabled
Try booting with different radeon.agpmode=... kernel parameters (-1 to disable AGP) and see if that makes a difference.
Disabling AGP mode did not solve the problem, and any value lower than 4 (the maximum supported by Brookdale 845) only makes the graphics even slower.
I don't want to complain because 3d and 2d have been broken for me for so long (april 2010), and they're finally working! But I have noticed this a little bit. I posted a bug about blender menus showing up as black and that's finally fixed and I just closed the bug about that, but they are a little slow to draw. But its working so that's great.
i can confirm this but it seems to work for me up to version 6.14.0 and it is always reproducible, upgrading to 6.14.1 or .2 2d suffers
Is the slowdown quantifiable, e.g. with x11-apps/x11perf? Can you bisect to find the offending commit? Also it would be good if you check whether the problem has been reported on bugs.freedesktop.org already, and create a report if none exists.
This is still a problem in xf86-video-ati-6.14.3. I performed an x11perf test on both 6.13.2 and 6.14.3 (logs attached) showing marked slowdown in the latter, although nothing conclusive. Visually, text rendering in terminals is still very slow (I can actually see the text "scrolling" down as it renders, rather than "instantly" appearing). I may try cairo-perf-trace instead, to get something more conclusive. http://cworth.org/tag/performance I'll also try Option "MigrationHeuristic" "greedy" and see if that has any effect. https://wiki.archlinux.org/index.php/ATI#2D_performance_.28e.g._scrolling.29_is_slow
Created attachment 307609 [details] x11perf_xf86-video-ati-6.13.2.log
Created attachment 307611 [details] x11perf_xf86-video-ati-6.14.3.log
It would be good to also report this upstream at bugs.freedesktop.org (if no report already exists), and provide the link here. Even better if you can git bisect to pinpoint the commit which caused the slowdown.
The "MigrationHeuristic" option had no effect. I'll learn how to do git bisection, then see if I have something concrete to report upstream, but IIRC the changes between 6.13.x and 6.14.x were pretty extensive, so I may be out of my depth. It might help if I knew what i was supposed to be looking for (DRI2, XvMC, EXA?). I note 6.14.x now has "RADEON(0): [DRI2] VDPAU driver: r300", which 6.13.x didn't. I don't know if that's relevant. One upstream URL (added) suggests this might be a font problem. I have two other machines with ATi/AMD GPUs (X700 and HD 6500D), both running Gentoo x86_64 with exactly the same kernel, latest radeon driver and USE flags, and neither of those exhibit the problem, so I have to assume this is something specifically to do with r300.
Got it. commit ef9bfb262db7004bef3704e5d914687e50d3fca4 Author: Alex Deucher <alexdeucher[AT]gmail.com> Date: Tue Feb 1 19:24:44 2011 -0500 kms/pre-6xx: fix pageflipping with tiling Use UTS/DFS to tile/untile as appropriate for sw access on pre-6xx. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33738 Signed-off-by: Alex Deucher <alexdeucher[AT]gmail.com> Patches apply to drmmode_display.c, radeon_exa.c and radeon_exa_funcs.c. From upstream, this was introduced to fix "PageFlip urxvt/xterm screen corruptions", however it seems to have the nasty side effect of seriously impacting 2D performance on my hardware. The second last upstream comment reveals "KMS ColorTiling cannot work with an X server that doesn't support EXA_MIXED_PIXMAPS," and has a commit (2011-09-20) to automatically disable ColorTiling when it isn't supported. http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=fcf0cca9c0ab0f692b222f619aee8f1cdad3b519 According to the git log, this commit is supposed to be part of the 6.14.3 release, and yet it doesn't seem to be working, for some reason, since I still experience the problem unless I manually set Option "ColorTiling" "off", which completely resolves the problem. The tentatively looks FIXED, but I need to check with upstream that the above commit is actually in the release and working as intended.
Looks like upstream WONTFIX because "the applications you are using are choosing software rendering paths rather than hardware rendering paths", or IOW "don't use bitmap fonts". https://bugs.freedesktop.org/show_bug.cgi?id=48310#c1 https://bugs.freedesktop.org/show_bug.cgi?id=34486#c4 Since I have no intentions of giving up bitmap fonts any time soon, or frankly ever, I guess that means I'll have to permanently keep Option "ColorTiling" "off". Might as well close this bug WONTFIX or RESOLVED with workaround.
Marking UPSTREAM per comment 28.