Bug 22494 - Black screen in OpenGL app with dual head in extend mode
Summary: Black screen in OpenGL app with dual head in extend mode
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 06:44 UTC by Victor NOEL
Modified: 2010-06-26 04:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg logs (85.89 KB, text/plain)
2009-06-26 06:44 UTC, Victor NOEL
Details

Description Victor NOEL 2009-06-26 06:44:00 UTC
Created attachment 27162 [details]
xorg logs

Hello,

I am using the intel driver 2.7.1 with libdrm 2.4.9 and xorg server 7.4 (kubuntu jaunty with backports of drm and intel driver http://ppa.launchpad.net/ubuntu-x-swat/ppa/ubuntu/).

I am using the opengl application impressive (http://impressive.sourceforge.net).

I tried it in different configuration, all of these worked with the driver version 2.6.3 with libdrm 2.4.5:
 * one screen, 1280x800, impressive in fullscreen: works, good accel
 * two screen, clone mode, 1024x768, impressive in fullscreen: works, bad accel
 * two screen, extend mode, 2048x768, impressive at 1024x768: works, bad accel
 * two screen, extend mode, 2048x768, impressive at 2048x768: black screen
 * two screen, extend mode, 2048x768, impressive at 2040x768: works, bad accel

Apart the fact that when there is two screen, the acceleration is bad (not very fluid, not really usable), it looks like that with a resolution of 2048x768, it doesn't work.
Also if I choose 2047 for example, I get strange results (the image is distorted and it crashes soon after launching).

I attach my xorg logs.

Thanks.
Comment 1 Eric Anholt 2009-08-18 18:12:25 UTC
this should be related to the getbuffers stuff.
Comment 2 Eric Anholt 2009-08-18 18:13:02 UTC
err, I was thinking of a different bug.  I'll leave assignment, though.
Comment 3 Chris Wilson 2010-06-26 04:28:24 UTC
This sounds exactly like:

commit a48edfad8ab95c331d768ba30a16ea51faec05da
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Jun 5 09:33:58 2010 +0100

    i915: Fix off-by-one for drawing rectangle.
    
    The drawing rectangle is given in *inclusive* pixel values, so the range
    is only [0,2047]. Hence when rendering to a 2048 wide target, such as an
    extended desktop, we would issue an illegal instruction zeroing the draw
    area.
    
    Fixes:
    
      Bug 27408: Primary and Secondary display blanks in extended
                 desktop mode with Compiz enabled
      https://bugs.freedesktop.org/show_bug.cgi?id=27408
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    (cherry picked from commit add3260157368458501709d08a3f913ed448234f)
    Reviewed-by: Eric Anholt <eric@anholt.net>

in release 7.8.2


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.