Re: CG14 in 8-bit color

Michael <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Organization The NetBSD Foundation
Message-ID <20220303124344.628d2ea6@bushmills>
Hello,

On Wed, 23 Feb 2022 14:40:27 -0800
foo bar <[email protected]> wrote:

> The bad news is that 24bit mode now has some image corruption on the
> bottom of the screen. Roughly a 110 pixel tall strip along the bottom
> gets garbled whenever any window uses acceleration.

Please try this:
Index: cg14_accel.c
===================================================================
RCS file: /cvsroot/xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c,v
retrieving revision 1.28
diff -u -w -r1.28 cg14_accel.c
--- cg14_accel.c        24 Dec 2021 05:22:54 -0000      1.28
+++ cg14_accel.c        3 Mar 2022 17:39:24 -0000
@@ -1495,7 +1495,7 @@
 
        pExa->memoryBase = p->fb;
        pExa->memorySize = p->memsize;
-       pExa->offScreenBase = p->width * p->height * (pScrn->depth >> 3);
+       pExa->offScreenBase = p->width * p->height * (pScrn->bitsPerPixel >> 3);
 
        /*
         * SX memory instructions are written to 64bit aligned
           addresses with

have fun
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.