[Mplayer-users] draft;) of bugzilla report concerning gcc 2.96 and mplayMon Jun 11 13:54:42 2001

Alex Kanavin ak at cave.hop.stu.neva.ru
Mon Jun 11 15:59:21 CEST 2001


On Mon, 11 Jun 2001, Arpi wrote:

> The MMX 16bpp problem of mplayer:
> the funxtion yuv420_rgb16_mmx in file libvo/yuv2rgb_mmx.c compiles badly
> with gcc 2.96 (dunno which sub-version, that one comes with standard redhat 7.1 dist)
> Half of the inline asm code is missing from resulting object file.

Here's the patch that fixes the problem. End of story I hope.

--- main.old/libvo/yuv2rgb_mmx.c	Wed May  2 18:59:33 2001
+++ main/libvo/yuv2rgb_mmx.c	Mon Jun 11 17:52:01 2001
@@ -142,14 +142,14 @@
 		     "paddsw %%mm7, %%mm5 # Y odd + Cgreen 00 G7 00 G5 00 G3 00 G1\n\t"

 		     /* Limit RGB even to 0..255 */
-		     "packuswb %%mm0, %%mm0 # B6 B4 B2 B0 | B6 B4 B2 B0\n\t"
-		     "packuswb %%mm1, %%mm1 # R6 R4 R2 R0 | R6 R4 R2 R0\n\t"
-		     "packuswb %%mm2, %%mm2 # G6 G4 G2 G0 | G6 G4 G2 G0\n\t"
+		     "packuswb %%mm0, %%mm0 # B6 B4 B2 B0  B6 B4 B2 B0\n\t"
+		     "packuswb %%mm1, %%mm1 # R6 R4 R2 R0  R6 R4 R2 R0\n\t"
+		     "packuswb %%mm2, %%mm2 # G6 G4 G2 G0  G6 G4 G2 G0\n\t"

 		     /* Limit RGB odd to 0..255 */
-		     "packuswb %%mm3, %%mm3 # B7 B5 B3 B1 | B7 B5 B3 B1\n\t"
-		     "packuswb %%mm4, %%mm4 # R7 R5 R3 R1 | R7 R5 R3 R1\n\t"
-		     "packuswb %%mm5, %%mm5 # G7 G5 G3 G1 | G7 G5 G3 G1\n\t"
+		     "packuswb %%mm3, %%mm3 # B7 B5 B3 B1  B7 B5 B3 B1\n\t"
+		     "packuswb %%mm4, %%mm4 # R7 R5 R3 R1  R7 R5 R3 R1\n\t"
+		     "packuswb %%mm5, %%mm5 # G7 G5 G3 G1  G7 G5 G3 G1\n\t"

 		     /* Interleave RGB even and odd */
 		     "punpcklbw %%mm3, %%mm0 # B7 B6 B5 B4 B3 B2 B1 B0\n\t"

-- 
Alexander

Homepage: http://www.sensi.org/~ak/



_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list