From dcf442e61f21fb2aef5ce7de0547f733557b156e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 15 May 2010 20:25:56 +0000 Subject: YUV Dither: r12 saving was removed but stacked parameter load offset wasn't changed to compensate, resulting in an improperly aligned dither kernel. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26064 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/iriver/h10/lcd-as-h10.S | 2 +- firmware/target/arm/lcd-as-memframe.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/iriver/h10/lcd-as-h10.S b/firmware/target/arm/iriver/h10/lcd-as-h10.S index e99eee50c9..b3f12e46b6 100644 --- a/firmware/target/arm/iriver/h10/lcd-as-h10.S +++ b/firmware/target/arm/iriver/h10/lcd-as-h10.S @@ -278,7 +278,7 @@ lcd_write_yuv420_lines_odither: @ r5 = yuv_src[1] = Cb_p @ r6 = yuv_src[2] = Cr_p @ - ldr r0, [sp, #40] @ Line up pattern and kernel quadrant + ldr r0, [sp, #36] @ Line up pattern and kernel quadrant eor r14, r3, r0 @ and r14, r14, #0x2 @ mov r14, r14, lsl #6 @ 0x00 or 0x80 diff --git a/firmware/target/arm/lcd-as-memframe.S b/firmware/target/arm/lcd-as-memframe.S index a6f9145fab..4532bab221 100644 --- a/firmware/target/arm/lcd-as-memframe.S +++ b/firmware/target/arm/lcd-as-memframe.S @@ -393,7 +393,7 @@ lcd_write_yuv420_lines_odither: @ r6 = yuv_src[2] = Cr_p @ sub r3, r3, #1 @ - add r1, sp, #40 @ Line up pattern and kernel quadrant + add r1, sp, #36 @ Line up pattern and kernel quadrant ldmia r1, { r12, r14 } @ eor r14, r14, r12 @ and r14, r14, #0x2 @ -- cgit v1.2.3