From: Eric Anholt Date: Sat, 31 Oct 2009 00:22:58 +0000 (-0700) Subject: x86: Fix the test for negative pixel count in optimized rgb565 spans. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d63c29ef20b26aa90fb310216011d03253e4f09b;p=mesa.git 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. --- diff --git a/src/mesa/x86/read_rgba_span_x86.S b/src/mesa/x86/read_rgba_span_x86.S index 80144b889c7..92b1c2d902d 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: