cspace: add forgotten length decrement
authornotaz <notasas@gmail.com>
Tue, 9 Aug 2022 17:42:39 +0000 (20:42 +0300)
committernotaz <notasas@gmail.com>
Tue, 9 Aug 2022 17:45:06 +0000 (20:45 +0300)
frontend/cspace_neon.S

index 651ab84..4928b44 100644 (file)
@@ -27,6 +27,7 @@ FUNCTION(bgr555_to_rgb565): @ dst, src, bytes
     beq         0f
     @ align the dst
     vld1.16     {d0}, [r1]!
+    sub         r2, r2, #8
     vshl.u16    d0, d0, #1
     vshl.u16    d1, d0, #10
     vsri.u16    d1, d0, #11