Bug 37522

Summary: Blank window with 3D
Product: xorg Reporter: Justin Noah <justinnoah>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: justinnoah
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg log
none
Dmesg output
none
glxinfo
none
viewport height has to be even none

Description Justin Noah 2011-05-23 15:26:25 UTC
Created attachment 47078 [details]
Xorg log

glxgears and openarena seem to be blank screens while nexuiz appears to work fine until you exit. When exiting nexuiz, the screen 'froze' if you will. I could switch to a VT, but nothing was happening in GNOME.
Comment 1 Justin Noah 2011-05-23 15:26:47 UTC
Created attachment 47079 [details]
Dmesg output
Comment 2 Justin Noah 2011-05-23 15:27:57 UTC
Created attachment 47080 [details]
glxinfo

in case this is needed.
Comment 3 Justin Noah 2011-05-23 16:09:07 UTC
I would also like to add:

Blank window with 3D if resolution is set to 1680x945, however, no matter the resolution, GNOME 3 will go into fallback mode.
Comment 4 Justin Noah 2011-05-23 16:48:00 UTC
(In reply to comment #3)
> I would also like to add:
> 
> Blank window with 3D if resolution is set to 1680x945, however, no matter the
> resolution, GNOME 3 will go into fallback mode.

Scratch that, I was in force fallback mode. GNOME 3 works at other resolutions just fine.
Comment 5 Michel Dänzer 2011-05-24 08:54:32 UTC
If you disable page flipping, does that work around any of these problems?
Comment 6 Alex Deucher 2011-05-24 10:39:40 UTC
As discussed on IRC, the issue is the 945 height of the panel.  There seems to be somewhere in the ddx or mesa where the height is not aligned properly.  The problem can be reproduced by manually setting a mode with a height of 945.  Change the mode to 1024x768 for example allows rendering to work correctly.
Comment 7 Alex Deucher 2011-05-26 07:33:27 UTC
Created attachment 47189 [details] [review]
viewport height has to be even

The viewport height has to be even for vblanks to work.  This patches fixes things for me.
Comment 8 Justin Noah 2011-05-27 04:43:26 UTC
(In reply to comment #7)
> Created an attachment (id=47189) [details]
> viewport height has to be even
> 
> The viewport height has to be even for vblanks to work.  This patches fixes
> things for me.

This works for me as well.
Comment 9 Alex Deucher 2011-05-27 07:06:22 UTC
Patch sent to Dave.  Thanks for testing.
http://lists.freedesktop.org/archives/dri-devel/2011-May/011620.html
Comment 10 Florian Mickler 2011-06-30 03:31:51 UTC
A patch referencing this bug report has been merged in Linux v3.0-rc3:

commit adcfde516e10aad72d66f6fefd36e6d0e6bd7be7
Author: Alex Deucher <alexdeucher@gmail.com>
Date:   Fri May 27 10:05:03 2011 -0400

    drm/radeon/kms: viewport height has to be even

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.