Bug 21929

Summary: [tiling] Artifacts in kcometen3 with any AccelMethod after upgrade to Mesa 7.4.2
Product: Mesa Reporter: Ruslan Kabatsayev <b7.10110111>
Component: Drivers/DRI/i915Assignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: b7.10110111
Version: unspecifiedKeywords: NEEDINFO
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Comparison of what should be and what is really
Xorg.0.log
xorg.conf
Screenshot of X-Plane 9 made by <Ctrl>+".", i.e. by X-Plane itself
The same X-Plane screenshot made using GIMP
And, similar problem is in GTA3 when trails option is enabled

Description Ruslan Kabatsayev 2009-05-25 06:46:27 UTC
Created attachment 26203 [details]
Comparison of what should be and what is really

I upgraded from Mesa 7.2 to 7.4.2 and found that kcometen3 draws comets tails incorrectly. Changing AccelMethod to XAA, EXA or UXA doesn't solve this. Using Option "NoAccel" "true" makes things work correctly.
In the attachment left picture shows results of software rendering as well as Mesa7.2 rendering, and right one shows results of accelerated rendering using Mesa 7.4.2.
Comment 1 Eric Anholt 2009-05-26 17:03:36 UTC
Needs the usual information: http://intellinuxgraphics.org/how_to_report_bug.html

kcometen4 (distro packaged version) looks fine on my system.  Does that work for you?
Comment 2 Ruslan Kabatsayev 2009-05-27 11:52:05 UTC
System environment:
-- chipset: 
$ lspci |grep Host
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
-- system architecture: 
$ uname -a
Linux Integral 2.6.29.4 #1 SMP PREEMPT Mon May 25 02:33:03 MSD 2009 i686 pentium4 i386 GNU/Linux
-- xf86-video-intel/xserver/mesa/libdrm version: 
$ pkg-config --modversion libdrm
2.4.9
$ glxinfo|grep Mesa
OpenGL renderer string: Mesa DRI Intel(R) 915G GEM 20090418 2009Q1 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.4.2
-- Linux distribution: LFS 6.3 (with some packages upgrades)
-- Display connector: VGA


kcometen4 is a bit hard to test on my LFS at this time since it seems to have KDE4 dependencies, while KDE4 isn't yet installed.
Comment 3 Ruslan Kabatsayev 2009-05-27 11:57:39 UTC
Created attachment 26260 [details]
Xorg.0.log
Comment 4 Ruslan Kabatsayev 2009-05-27 11:58:24 UTC
Created attachment 26261 [details]
xorg.conf
Comment 5 Ruslan Kabatsayev 2009-07-21 10:11:36 UTC
Created attachment 27885 [details]
Screenshot of X-Plane 9 made by <Ctrl>+".", i.e. by X-Plane itself

The problem seems to be the same with X-Plane screenshots - horizontal lines are not one should get.
Comment 6 Ruslan Kabatsayev 2009-07-21 10:14:04 UTC
Created attachment 27886 [details]
The same X-Plane screenshot made using GIMP
Comment 7 Ruslan Kabatsayev 2009-07-21 10:22:24 UTC
Created attachment 27887 [details]
And, similar problem is in GTA3 when trails option is enabled

So, i may conclude that the problem is in some way of internal OpenGL image copying, which leads to such artifacts.
And, the same remains in Mesa 7.4.4 (7.5 simply didn't work for GTA - GTA failed to start, X-Plane has the same problem with 7.5)
Comment 8 Ruslan Kabatsayev 2009-07-21 11:42:15 UTC
In software rendering mode this problem disappears.
Comment 9 Ruslan Kabatsayev 2009-07-21 12:16:52 UTC
As i supposed, this has something to do with tiling mode. I put 'Option "tiling" "false"' in the Device section of xorg.conf, and the artifacts went away - checked with all three programs (GTA3, X-Plane9, kcometen3)
Comment 10 Ruslan Kabatsayev 2009-09-23 08:13:50 UTC
The bug is still in Mesa 7.5.1
Comment 11 Eric Anholt 2009-10-30 17:39:45 UTC
Could you retest with Mesa master as of:

commit 7c8bed62e0165a0be3363f7abf81bf9e30341e00
Author: Eric Anholt <eric@anholt.net>
Date:   Fri Oct 30 15:33:11 2009 -0700

    intel: Use GTT mapping when available for swrast.
    
    This improves piglit quick.tests runtime from 19:33 minutes to 6:06 on
    my GM45.  It should also hide most of the A17 swizzling issues, though
    they'll still exist when swapping occurs (which is the kernel's problem
    either way)
Comment 12 Ruslan Kabatsayev 2009-10-30 23:23:18 UTC
Could you please tell me where can i download this needed version?
Comment 13 Eric Anholt 2009-12-10 14:26:34 UTC
git master of Mesa.  It'll also be in 7.7 release, of which there are RCs out now.

Since this problem should be fixed, I'm going to go ahead and close it.  Please reopen if it continues after upgrading.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.