Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391819 - x11-drivers/xf86-video-intel-2.17.0 with USE="sna" causes screen corruption (see with xterm scrollbars)
Summary: x11-drivers/xf86-video-intel-2.17.0 with USE="sna" causes screen corruption (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-11-24 22:03 UTC by Ulrich Müller
Modified: 2011-11-27 22:14 UTC (History)
0 users

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


Attachments
screenshot (screenshot.png,76.94 KB, image/png)
2011-11-24 22:03 UTC, Ulrich Müller
Details
emerge --info xf86-video-intel (emerge-info,5.39 KB, text/plain)
2011-11-24 22:04 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2011-11-24 22:03:19 UTC
Created attachment 293661 [details]
screenshot

x11-drivers/xf86-video-intel-2.17.0 causes screen corruption, as in attached screenshot.

To reproduce:
1. Start an xterm
2. Resize it vertically using the mouse

After downgrading to xf86-video-intel-2.16.0 the problem disappeared.
Comment 1 Ulrich Müller gentoo-dev 2011-11-24 22:04:00 UTC
Created attachment 293663 [details]
emerge --info xf86-video-intel
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-25 01:40:16 UTC
Does that happen with both sna enabled and disabled?
Comment 3 Ulrich Müller gentoo-dev 2011-11-25 08:12:02 UTC
(In reply to comment #2)
> Does that happen with both sna enabled and disabled?

2.17.0 with USE="-sna" seems to behave well, on first glance.
Comment 4 Franz Trischberger 2011-11-25 08:54:42 UTC
What kernel/mesa-versions do you use? I am running mesa-7.11.1 and gentoo-sources-3.1.1, xf86-video-intel-2.17.0 with sna enabled (I even use intel RC6).
Everything runs fine, fast, without corruption (OK, KDE-Menus and Popups with just one row only show a blurred rect, but that is a bespin-bug, as QtCurve etc work just fine).
And of course: Do you run Sandy Bridge Graphics? Older iGPUs seem to have regressions (http://www.phoronix.com/scan.php?page=article&item=intel_sna_old&num=1 - but I don't know if that still is true, as the article dates back to early september)
Comment 5 Franz Trischberger 2011-11-25 08:58:22 UTC
> And of course: Do you run Sandy Bridge Graphics? Older iGPUs seem to have
> regressions
OK, just looked at the emerge --info, and that states you run a Core2Duo, so this could really be the issue :/ (Though 2.16.0 seemed to run fine... probably a driver change was not adopted correctly to Core2Duo-Graphics-backend).
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-25 11:52:12 UTC
You could check if there is still corruption with xf86-video-intel from git (a live ebuild is in the x11 overlay) and if yes, report upstream on https://bugs.freedesktop.org/
Comment 7 Ulrich Müller gentoo-dev 2011-11-25 15:24:59 UTC
(In reply to comment #6)
> You could check if there is still corruption with xf86-video-intel from git (a
> live ebuild is in the x11 overlay) and if yes, report upstream on
> https://bugs.freedesktop.org/

Git bisect tells me:

7f7f95abbf57e6e71f6a30d917f97c2f2bd6cea9 is the first bad commit
commit 7f7f95abbf57e6e71f6a30d917f97c2f2bd6cea9
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 23 11:38:18 2011 +0100

    sna/accel: Use the PolyFillRect to handle tiled spans
    
    Would be preferrable to duplicate the tiling logic. Leave the task of
    reimplementing XAA to another day!
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

<http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=7f7f95abbf57e6e71f6a30d917f97c2f2bd6cea9>
Comment 8 Ulrich Müller gentoo-dev 2011-11-25 15:26:56 UTC
And to answer your question: Yes, with the current HEAD there is still corruption.
Comment 9 Ulrich Müller gentoo-dev 2011-11-25 18:48:41 UTC
Fixed upstream:
<http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=16f5e224dcfd97012b38ee1af6c72dbe3c0f3304>

This could be applied as a patch to 2.17.0 too.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-25 23:31:39 UTC
Fixed in 2.17.0-r1
Comment 11 Ulrich Müller gentoo-dev 2011-11-26 15:15:07 UTC
Seems that the patch is not being applied. Missing PATCHES= in ebuild?
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-26 15:32:38 UTC
Whoops. Now really fixed in -r2.
Comment 13 Ulrich Müller gentoo-dev 2011-11-27 22:14:24 UTC
(In reply to comment #12)
> Now really fixed in -r2.

Thanks, that works fine. Closing.