Module Name: src
Committed By: tsutsui
Date: Mon Apr 29 17:47:27 UTC 2024
Modified Files:
src/sys/arch/hp300/dev: topcat.c
Log Message:
Check tc_waitbusy() before writing palette registers in topcat_setcolor().
This seems to make palette operations more stable on my HP360 with HP98543.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hp300/dev/topcat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hp300/dev/topcat.c
diff -u src/sys/arch/hp300/dev/topcat.c:1.8 src/sys/arch/hp300/dev/topcat.c:1.9
--- src/sys/arch/hp300/dev/topcat.c:1.8 Mon Apr 29 17:39:59 2024
+++ src/sys/arch/hp300/dev/topcat.c Mon Apr 29 17:47:27 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: topcat.c,v 1.8 2024/04/29 17:39:59 tsutsui Exp $ */
+/* $NetBSD: topcat.c,v 1.9 2024/04/29 17:47:27 tsutsui Exp $ */
/* $OpenBSD: topcat.c,v 1.15 2006/08/11 18:33:13 miod Exp $ */
/*
@@ -453,6 +453,8 @@ topcat_setcolor(struct diofb *fb, u_int
if (fb->planemask == 1)
return;
+ tc_waitbusy(tc, fb->planemask);
+
if (tc->regs.fbid != GID_TOPCAT) {
tccm_waitbusy(tc);
tc->plane_mask = fb->planemask;
@@ -542,8 +544,6 @@ topcat_windowmove(struct diofb *fb, uint
tc->wwidth = cx;
tc->wmove = fb->planemask;
- tc_waitbusy(tc, fb->planemask);
-
return 0;
}