NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51181: nouveau can't set monitor resolution



The following reply was made to PR kern/51181; it has been noted by GNATS.

From: coypu%SDF.ORG@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/51181: nouveau can't set monitor resolution
Date: Thu, 24 Nov 2016 02:20:45 +0000

 Thanks to a lot of help I found out that nvidia hardware requires 256byte
 alignment, not 64byte like radeon.
 
 Rounding up stride to 256 bytes works!
 
 As a crude diff I've used:
             roundup2((sizes->surface_width * howmany(sizes->surface_bpp, 8)),
 -               64));
 +               256));
 
 in drmfb_attach (sys/external/bsd/drm2/drm/drmfb.c).
 
 Presumably something similar is needed in Xorg ... somewhere.
 And that patch might not be too great for intel/radeon... but it works!
 


Home | Main Index | Thread Index | Old Index