On Sat, Dec 10, 2016 at 08:45:29PM +0100, Tom Ivar Helbekkmo wrote:
> [email protected] writes:
> 
> > (I dunno why it would be different on NetBSD than linux...
> > the xorg bits are identical).
> 
> It's probably at a lower level.  NetBSD fails to display the (text)
> console correctly with the nouveau driver, so I have to wait anxiously
> for the psychedelic, misaligned scan lines to eventually be replaced by
> a proper xdm login screen...  :)
> 

Try this:

Index: drmfb.c
===================================================================
RCS file: /cvsroot/src/sys/external/bsd/drm2/drm/drmfb.c,v
retrieving revision 1.2
diff -u -p -u -r1.2 drmfb.c
--- drmfb.c     9 Nov 2015 23:11:18 -0000       1.2
+++ drmfb.c     10 Dec 2016 19:47:16 -0000
@@ -105,7 +105,7 @@ drmfb_attach(struct drmfb_softc *sc, con
        prop_dictionary_set_uint8(dict, "depth", sizes->surface_bpp);
        prop_dictionary_set_uint16(dict, "linebytes",
            roundup2((sizes->surface_width * howmany(sizes->surface_bpp, 8)),
-               64));
+               256));
        prop_dictionary_set_uint32(dict, "address", 0); /* XXX >32-bit */
        CTASSERT(sizeof(uintptr_t) <= sizeof(uint64_t));
        prop_dictionary_set_uint64(dict, "virtual_address",

Reply via email to