pitch too high for CL5446 at 1360x768

Bug #424354 reported by StefanPotyra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-video-cirrus (Ubuntu)
Fix Released
Undecided
StefanPotyra

Bug Description

Binary package hint: xserver-xorg-video-cirrus

Hi,

the GD 5446 uses 9 bits to store the pitch value, which then get shifted by 3 bits to the left in the graphic card. For the resolution of 1360x768 however, X sets the pitch to 1408, which hence results to an actual used pitch by the card of 128. As a result the screen is garbled.

While I don't have the real hardware to test it (a GD 5446 with 4 Mb is somewhat rare), faumachine simulates exactly this graphic card. I've tested this with a faumachine version from cvs, but I think the package in the archives should show the same result.

Attached is the Xorg.0.log from inside the VM. I've also got a patch ready for this, however that's completely untested so far (not even checked if it compiles).

Cheers,
    Stefan.

Revision history for this message
StefanPotyra (sistpoty) wrote :

(this is using a karmic daily from a few days before alpha 5)

Revision history for this message
StefanPotyra (sistpoty) wrote :
Revision history for this message
StefanPotyra (sistpoty) wrote :

hm... of course the patch doesn't work :(.
I'm still digging to find where this pitch value comes from.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hooray, this patch works :).

Revision history for this message
StefanPotyra (sistpoty) wrote :
StefanPotyra (sistpoty)
Changed in xserver-xorg-video-cirrus (Ubuntu):
status: New → In Progress
assignee: nobody → StefanPotyra (sistpoty)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-cirrus - 1:1.3.1-1ubuntu2

---------------
xserver-xorg-video-cirrus (1:1.3.1-1ubuntu2) karmic; urgency=low

  * Refressh 100_fedora_libpciaccess.patch, so that it applies
    cleanly (only line offsets changed).
  * Add 200_fix_gd5446_maxpitch.patch (upstream bug at
    https://bugs.freedesktop.org/show_bug.cgi?id=23775) to limit
    the maximum pitch value of the GD5446, LP: #424354.

 -- Stefan Potyra <email address hidden> Mon, 07 Sep 2009 19:36:51 +0200

Changed in xserver-xorg-video-cirrus (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.