Bug 71250 - [IVB/HSW/BYT-M regression] Ubuntu graphics inverse with gnome-session
Summary: [IVB/HSW/BYT-M regression] Ubuntu graphics inverse with gnome-session
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 10:09 UTC by zhoujian
Modified: 2013-11-11 07:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
scrot image (2.05 MB, image/png)
2013-11-05 10:09 UTC, zhoujian
no flags Details
the log when starting gnome-session (6.05 KB, text/plain)
2013-11-05 10:10 UTC, zhoujian
no flags Details
Xorg.0.log (17.85 KB, text/plain)
2013-11-05 10:10 UTC, zhoujian
no flags Details

Description zhoujian 2013-11-05 10:09:08 UTC
Platform: IVB/HSW/BYT-M
Libdrm: (master)2.4.47-2-g45810d3d7546f3ddbcdae114c6726ada30e919c9
Mesa:   (master)2f896627175384fd5943f21804700a155ba4e8a0
Xserver:(master)xorg-server-1.14.99.3-31-g264fc3abe5f18341d
Xf86_video_intel:(master)2.99.905-55-g4a7217b05c232484a80abc7b
Cairo:(master)98fef3cef2d0f7f463a2e4f9f1b35b09f7b6ea77 
Libva:(staging)1a011ce5bb0b80506797a25a988854f3f81ce909
Libva_intel_driver:(staging)1cee858036a87837deddc875867
Kernel:	(drm-intel-nightly)164a4cb4c1431a0689f8550786
Ubuntu: 13.10

Bug detailed description:
----------------------------------------------
Ubuntu graphics inverse with gnome-session on IVB/HSW/BYT-M. The problem doesn’t exist on Ubuntu Raw X. 
BTW, Fedora is OK. You may see .png , Xorg.0.log and gnome-session.log attached.
It’s Xserver regression, and the good commit is master git-7d3d4ae. Because of compiling error, can’t bisect that.

Reproduce steps:
---------------------------------------------
1, xinit&
2, gnome-session
Comment 1 zhoujian 2013-11-05 10:09:37 UTC
Created attachment 88676 [details]
scrot image
Comment 2 zhoujian 2013-11-05 10:10:03 UTC
Created attachment 88677 [details]
the log when starting gnome-session
Comment 3 zhoujian 2013-11-05 10:10:42 UTC
Created attachment 88678 [details]
Xorg.0.log
Comment 4 meng 2013-11-08 02:08:59 UTC
Chris,can you reproduce it?
Comment 5 Chris Wilson 2013-11-08 09:07:06 UTC
No, I haven't tried, but it looks like:

commit 2eedf42c229e2251035d716a96b654222155cd51
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu Oct 31 09:23:52 2013 -0400

    dri: Fix GLX_Y_INVERTED_EXT fbconfig attribute
    
    We're Y-inverted from GL's coordinates, so this is correct.  gnome-shell
    doesn't seem to check this - somewhat reasonable since the only server
    that answered the other way around was Xglx - but kwin does, and
    upside-down hilarity ensues.
    
    Tested-by: maelcum on #xorg-devel
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

and so should have been fixed by:

commit 17ed7ac1fe7426d66f688087c09da5ff1dbb41d3
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu Oct 31 18:39:22 2013 -0400

    glx: Lie about GLX_Y_INVERTED_EXT
    
    Well, that was lame.  The problem with reporting y inversion honestly is
    that libGL asks the driver _its_ opinion of Y inversion, which it just
    fabricates from whole cloth.  So then when libGL goes to compare the
    driver's idea of fbconfigs with that of the server - a fairly dumb idea
    to begin with - nothing matches, and direct rendering fails, and
    sadness.
    
    So until the DRI drivers are fixed we should just continue to lie about
    Y inversion.  GLX_DONT_CARE is what libGL would make up for that
    attribute if we hadn't sent it, so just send that instead.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Tested-by: Keith Packard <keithp@keithp.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>
Comment 6 zhoujian 2013-11-11 07:40:11 UTC
Verified.


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.