Module Name:    xsrc
Committed By:   macallan
Date:           Wed Nov 25 05:24:44 UTC 2009

Modified Files:
        xsrc/external/mit/xf86-video-suntcx/dist/src: tcx_accel.c

Log Message:
fix a logic botch in TcxCopy() that would bite us when doing right-to-left
blits with width being a multiple of 32


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_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-suntcx/dist/src/tcx_accel.c
diff -u xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_accel.c:1.4 xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_accel.c:1.5
--- xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_accel.c:1.4	Tue Nov 24 03:46:19 2009
+++ xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_accel.c	Wed Nov 25 05:24:44 2009
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-/* $NetBSD: tcx_accel.c,v 1.4 2009/11/24 03:46:19 macallan Exp $ */
+/* $NetBSD: tcx_accel.c,v 1.5 2009/11/25 05:24:44 macallan Exp $ */
 
 #include <sys/types.h>
 
@@ -147,8 +147,8 @@
 	    if (leftover > 0) {
 		cmd = lcmd | (uint64_t)(src + xoff);
 		pTcx->rblit[dst + xoff] = cmd;
-		xoff -= 32;
 	    }
+	    xoff -= 32;
 	    while (x > 0) {
 		cmd = 0x300000001f000000LL | (uint64_t)(src + xoff);
 		pTcx->rblit[dst + xoff] = cmd;

Reply via email to