OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Android Open Source Project | 2 * Copyright 2014 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBlitRow.h" | 8 #include "SkBlitRow.h" |
9 #include "SkBlitMask.h" | 9 #include "SkBlitMask.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 "preceu.ph.qbr %[t2], %[t0] \n\t" | 782 "preceu.ph.qbr %[t2], %[t0] \n\t" |
783 "preceu.ph.qbl %[t3], %[t0] \n\t" | 783 "preceu.ph.qbl %[t3], %[t0] \n\t" |
784 "preceu.ph.qbr %[t4], %[t1] \n\t" | 784 "preceu.ph.qbr %[t4], %[t1] \n\t" |
785 "preceu.ph.qbl %[t5], %[t1] \n\t" | 785 "preceu.ph.qbl %[t5], %[t1] \n\t" |
786 "muleu_s.ph.qbr %[t2], %[t7], %[t2] \n\t" | 786 "muleu_s.ph.qbr %[t2], %[t7], %[t2] \n\t" |
787 "muleu_s.ph.qbr %[t3], %[t7], %[t3] \n\t" | 787 "muleu_s.ph.qbr %[t3], %[t7], %[t3] \n\t" |
788 "muleu_s.ph.qbr %[t4], %[t6], %[t4] \n\t" | 788 "muleu_s.ph.qbr %[t4], %[t6], %[t4] \n\t" |
789 "muleu_s.ph.qbr %[t5], %[t6], %[t5] \n\t" | 789 "muleu_s.ph.qbr %[t5], %[t6], %[t5] \n\t" |
790 "addiu %[src], %[src], 4 \n\t" | 790 "addiu %[src], %[src], 4 \n\t" |
791 "addiu %[count], %[count], -1 \n\t" | 791 "addiu %[count], %[count], -1 \n\t" |
| 792 #ifdef SK_SUPPORT_LEGACY_BROKEN_LERP |
792 "precrq.qb.ph %[t0], %[t3], %[t2] \n\t" | 793 "precrq.qb.ph %[t0], %[t3], %[t2] \n\t" |
793 "precrq.qb.ph %[t2], %[t5], %[t4] \n\t" | 794 "precrq.qb.ph %[t2], %[t5], %[t4] \n\t" |
794 "addu %[t1], %[t0], %[t2] \n\t" | 795 "addu %[t1], %[t0], %[t2] \n\t" |
| 796 #else |
| 797 "addu %[t0], %[t3], %[t5] \n\t" |
| 798 "addu %[t2], %[t2], %[t4] \n\t" |
| 799 "precrq.qb.ph %[t1], %[t0], %[t2] \n\t" |
| 800 #endif |
795 "sw %[t1], 0(%[dst]) \n\t" | 801 "sw %[t1], 0(%[dst]) \n\t" |
796 "b 1b \n\t" | 802 "b 1b \n\t" |
797 " addi %[dst], %[dst], 4 \n\t" | 803 " addi %[dst], %[dst], 4 \n\t" |
798 "2: \n\t" | 804 "2: \n\t" |
799 ".set pop \n\t" | 805 ".set pop \n\t" |
800 : [src]"+r"(src), [dst]"+r"(dst), [count]"+r"(count), | 806 : [src]"+r"(src), [dst]"+r"(dst), [count]"+r"(count), |
801 [t0]"=&r"(t0), [t1]"=&r"(t1), [t2]"=&r"(t2), [t3]"=&r"(t3), | 807 [t0]"=&r"(t0), [t1]"=&r"(t1), [t2]"=&r"(t2), [t3]"=&r"(t3), |
802 [t4]"=&r"(t4), [t5]"=&r"(t5), [t6]"=&r"(t6), [t7]"=&r"(t7) | 808 [t4]"=&r"(t4), [t5]"=&r"(t5), [t6]"=&r"(t6), [t7]"=&r"(t7) |
803 : [alpha]"r"(alpha) | 809 : [alpha]"r"(alpha) |
804 : "memory", "hi", "lo" | 810 : "memory", "hi", "lo" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 return platform_565_procs_mips_dsp[flags]; | 949 return platform_565_procs_mips_dsp[flags]; |
944 } | 950 } |
945 | 951 |
946 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { | 952 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { |
947 return nullptr; | 953 return nullptr; |
948 } | 954 } |
949 | 955 |
950 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 956 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
951 return platform_32_procs_mips_dsp[flags]; | 957 return platform_32_procs_mips_dsp[flags]; |
952 } | 958 } |
OLD | NEW |