Module Name:    xsrc
Committed By:   macallan
Date:           Fri Mar  4 05:56:55 UTC 2022

Modified Files:
        xsrc/external/mit/xf86-video-suncg14/dist/src: cg14_accel.c

Log Message:
fix calculation for start of off-screen memory in 24bit colour


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 \
    xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c
diff -u xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c:1.28 xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c:1.29
--- xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c:1.28	Fri Dec 24 05:22:54 2021
+++ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c	Fri Mar  4 05:56:55 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: cg14_accel.c,v 1.28 2021/12/24 05:22:54 macallan Exp $ */
+/* $NetBSD: cg14_accel.c,v 1.29 2022/03/04 05:56:55 macallan Exp $ */
 /*
  * Copyright (c) 2013 Michael Lorenz
  * All rights reserved.
@@ -1495,7 +1495,7 @@ CG14InitAccel(ScreenPtr pScreen)
 
 	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

Reply via email to