x86: Fix the test for negative pixel count in optimized rgb565 spans.
authorEric Anholt <eric@anholt.net>
Sat, 31 Oct 2009 00:22:58 +0000 (17:22 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 31 Oct 2009 00:35:11 +0000 (17:35 -0700)
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

index 80144b889c72e5b41c12c6934cfeed2eab5a7295..92b1c2d902d6dae5259712054bdaae6a9bc2a0d6 100644 (file)
@@ -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: