Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/external/mit/xf86-video-suncg14/dist/src always drain the ...



details:   https://anonhg.NetBSD.org/xsrc/rev/1a3f2152a9f0
branches:  trunk
changeset: 10833:1a3f2152a9f0
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sun Dec 19 04:50:27 2021 +0000

description:
always drain the pipeline before writing SX_ROP_CONTROL

diffstat:

 external/mit/xf86-video-suncg14/dist/src/cg14_accel.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 49f18213959b -r 1a3f2152a9f0 external/mit/xf86-video-suncg14/dist/src/cg14_accel.c
--- a/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c     Tue Dec 14 14:43:42 2021 +0000
+++ b/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c     Sun Dec 19 04:50:27 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cg14_accel.c,v 1.25 2021/12/10 21:57:13 macallan Exp $ */
+/* $NetBSD: cg14_accel.c,v 1.26 2021/12/19 04:50:27 macallan Exp $ */
 /*
  * Copyright (c) 2013 Michael Lorenz
  * All rights reserved.
@@ -450,6 +450,7 @@
 
        /* mask out the leading pixels in dst by using a mask and ROP */
        if (pre != 0) {
+               CG14Wait(p);
                write_sx_reg(p, SX_ROP_CONTROL, (p->last_rop & 0xf0) | 0xa);
                write_sx_reg(p, SX_QUEUED(R_MASK), 0xffffffff); 
        }
@@ -561,6 +562,7 @@
 
        /* mask out the leading pixels in dst by using a mask and ROP */
        if (pre != 0) {
+               CG14Wait(p);
                write_sx_reg(p, SX_ROP_CONTROL, 0xca);
                write_sx_reg(p, SX_QUEUED(R_MASK), lmask);      
        }



Home | Main Index | Thread Index | Old Index