Mesa (master): x86: Fix the test for negative pixel count in optimized rgb565 spans.

Eric Anholt anholt at kemper.freedesktop.org
Sat Oct 31 00:36:21 UTC 2009


Module: Mesa
Branch: master
Commit: d63c29ef20b26aa90fb310216011d03253e4f09b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d63c29ef20b26aa90fb310216011d03253e4f09b

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 30 17:22:58 2009 -0700

x86: Fix the test for negative pixel count in optimized rgb565 spans.

There's a bunch of bogus looking stuff the count handling in this code, but
this fixes the testcases we have.

---

 src/mesa/x86/read_rgba_span_x86.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/x86/read_rgba_span_x86.S b/src/mesa/x86/read_rgba_span_x86.S
index 80144b8..92b1c2d 100644
--- a/src/mesa/x86/read_rgba_span_x86.S
+++ b/src/mesa/x86/read_rgba_span_x86.S
@@ -522,7 +522,7 @@ _generic_read_RGBA_span_RGB565_MMX:
 	addl	$32,%esp
 
 	sarl	$2, %ecx
-	jle	.L01		/* Bail early if the count is negative. */
+	jl	.L01		/* Bail early if the count is negative. */
 	jmp	.L02
 
 .L03:




More information about the mesa-commit mailing list