# HG changeset patch # User reimar # Date 1126647704 0 # Node ID b47e38d24ddf5c77d97dadc367b0b10463cb1af5 # Parent 82698fb46c7362929b6cd827ff70282ec0b2013b Fix MMX accelerated RGB24 OSD, fixes "ugly OSD with -vo gl2". diff -r 82698fb46c73 -r b47e38d24ddf libvo/osd_template.c --- a/libvo/osd_template.c Tue Sep 13 21:35:41 2005 +0000 +++ b/libvo/osd_template.c Tue Sep 13 21:41:44 2005 +0000 @@ -213,9 +213,10 @@ "paddb %%mm6, %%mm2\n\t" "punpcklbw %%mm2, %%mm2\n\t" // srca AABBCCDD "punpcklbw %%mm2, %%mm2\n\t" // srca AAAABBBB + "psrlq $8, %%mm2\n\t" // srca AAABBBB0 "movq %%mm2, %%mm3\n\t" - "punpcklbw %%mm7, %%mm2\n\t" // srca 0A0A0A0A - "punpckhbw %%mm7, %%mm3\n\t" // srca 0B0B0B0B + "punpcklbw %%mm7, %%mm2\n\t" // srca 0A0A0A0B + "punpckhbw %%mm7, %%mm3\n\t" // srca 0B0B0B00 "pmullw %%mm2, %%mm0\n\t" "pmullw %%mm3, %%mm1\n\t" "psrlw $8, %%mm0\n\t" @@ -224,6 +225,7 @@ "movd %2, %%mm2 \n\t" // src ABCD0000 "punpcklbw %%mm2, %%mm2\n\t" // src AABBCCDD "punpcklbw %%mm2, %%mm2\n\t" // src AAAABBBB + "psrlq $8, %%mm2\n\t" // src AAABBBB0 "paddb %%mm2, %%mm0\n\t" "pand %4, %%mm5\n\t" "pand %3, %%mm0\n\t"