Bug 18430

Summary: [GEM i915/945GM] glxgears is just black, on Mac
Product: Mesa Reporter: Bernd Buschinski <b.buschinski>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: bgamari, jobi, kai.willadsen
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: maximized glxgears
LIBGL_DEBUG=verbose glxinfo
Xorg.0.log with "ModeDebug" "yes"
Kernel log

Description Bernd Buschinski 2008-11-07 10:22:55 UTC
Created attachment 20135 [details]
maximized glxgears

My glxgears is just black, only when I maximize the glxgears window a see a small flickering green part. It works fine with non-gem kernel without any changes.

I am using anholts drm-intel-next (2db46b5668dfed59acacd75dfc49ecf947ea5aeb)
xf86-video-intel-2.5.0
mesa branch intel-2008-q3 (8f8892525a560b0e68780d58a1e127b304a31e8b)
xorg-server-1.5.2
libdrm-2.4.0
Comment 1 Bernd Buschinski 2008-11-07 10:24:34 UTC
Created attachment 20136 [details]
LIBGL_DEBUG=verbose glxinfo
Comment 2 Bernd Buschinski 2008-11-07 10:27:00 UTC
Created attachment 20137 [details]
Xorg.0.log with "ModeDebug"     "yes"
Comment 3 Bernd Buschinski 2008-11-07 10:28:17 UTC
Created attachment 20138 [details]
Kernel log
Comment 4 Dylan 2008-11-07 19:02:55 UTC
Have you tried with GIT versions of libdrm, mesa, and xf86-video-intel?
A lot of stuff is in the works...
Comment 5 Johan Bilien 2008-11-17 14:50:15 UTC
(In reply to comment #4)
> Have you tried with GIT versions of libdrm, mesa, and xf86-video-intel?
> A lot of stuff is in the works...
> 

Having the exact same problem with intel's kernel git top, libdrm tip, mesa tip, xf86-video-intel 2.5.3 and xserver 1.5.3.
Comment 6 Johan Bilien 2008-11-17 15:54:56 UTC
Disabling vblank gives the same result
Comment 7 Johan Bilien 2008-11-18 13:34:08 UTC
Something weird, if I suspend then resume the laptop once, glxgears works fine after that.
Comment 8 Eric Anholt 2008-12-03 14:21:22 UTC
Do you have a compositor running?
Comment 9 Kai Willadsen 2008-12-08 12:33:59 UTC
I'm seeing this on Fedora 10 with no compositor running. The downstream bug is:

https://bugzilla.redhat.com/show_bug.cgi?id=468860

Incidentally, this seems to only be affecting people on intel macs (based on comments in the above bug, and attached logs).
Comment 10 Bernd Buschinski 2008-12-08 13:04:32 UTC
no compositor running, on a MacBook (generation 2)

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

xf86-video-intel-2.5.1
mesa master (f849d364c22e702e3dda664fa65601d4cf2b55a5)
xorg-server-1.5.3
libdrm master (c99566fb810c9d8cae5e9cd39d1772b55e2f514c)
Comment 11 Johan Bilien 2009-01-09 13:26:45 UTC
I can still reproduce this with:

DRM module from linux 2.6.28
libdrm from git tip
mesa from intel-q4-2008
the intel DDX 2.5.99.2

as mentioned previously, after suspending / resuming the laptop, glxgears starts working again.

This is also on a macbook, with no compositor.
Comment 12 Johan Bilien 2009-01-20 13:21:42 UTC
This does not happen anymore after upgrading to xserver 1.5.99.901 with DRI2.
Comment 13 Bernd Buschinski 2009-01-22 10:07:02 UTC
Cant confirm. it still black for me with

kernel 2.6.29-rc2-git1
xf86-video-driver-intel 2.6.1
libdrm git/master
mesa git/master
xorg-server 1.5.99.901

at first I didnt configure the kernel correct and the xserver used swrast, there glxgears worked fine, but as soon as I configured it corretly, glxgears was black again.

Suspending doesnt work corretly for me with 2.6.29-rc* so I cant test it
Comment 14 Bernd Buschinski 2009-01-22 17:15:02 UTC
Ok I did not get the DRI2 part.
I had to set AccelMethod to UXA in order to use DRI2 and it really works,
which makes this is a EXA bug, as everything works fine with UXA.

Note: there is currently a mode setting bug which keeps games like quake3 from starting, but this is another issue
Comment 15 Ben Gamari 2009-02-05 19:21:28 UTC
(In reply to comment #14)
> Ok I did not get the DRI2 part.
> I had to set AccelMethod to UXA in order to use DRI2 and it really works,
> which makes this is a EXA bug, as everything works fine with UXA.
> 
So this is issue is fixed in that case? Can we mark the bug as FIXED?

Comment 16 Ben Gamari 2009-04-17 07:52:57 UTC
I'm assuming that this is fixed given the lack of response. Feel free to reopen if this is not the case.

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.