[MPlayer-users] POSSIBLE FIX OpenGL with Nvidia binary driver
Arpi
arpi at thot.banki.hu
Tue Dec 24 22:26:02 CET 2002
Hi,
fast_blit is for DRI drivers...
we piss off nvidia, just like they piss of opensource developers.
use -vo gl2 for your nvidia shit.
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> I'm running RedHat 8.0
> w/ NVIDIA_GLX-1.0-4191
> and NVIDIA_kernel-1.0-4191
>
>
> [adam at blackbox GL-test]$ ./gltest
> Creating 1024x1024 texture...
> Resize: 640x480
> Resize: 640x480
> 0.148 fps (gen: 0% upload: 99% render: 0%)
> 0.148 fps (gen: 0% upload: 99% render: 0%)
>
>
> [adam at blackbox GL-test]$ ./gltest2
> Creating 1024x1024 texture...
> Resize: 640x480
> Resize: 640x480
> 62.730 fps (gen: 29% upload: 64% render: 5%)
> 63.513 fps (gen: 29% upload: 64% render: 6%)
> 62.987 fps (gen: 29% upload: 64% render: 5%)
>
>
> FAST_BLIT not so fast after all?
>
>
> diff -u gltest.c gltest2.c
> --- gltest.c 2001-02-24 15:28:52.000000000 -0500
> +++ gltest2.c 2002-12-24 15:29:24.000000000 -0500
> @@ -71,20 +71,20 @@
>
> gen_time+=GetRelativeTime();
>
> -#ifdef FAST_BLIT
> - // upload texture:
> - for(i=0;i<image_height;i++){
> - glTexSubImage2D( GL_TEXTURE_2D, // target
> - 0, // level
> - 0, // x offset
> - i, // y offset
> - image_width, // width
> - 1, // height
> - (BYTES_PP==4)?GL_RGBA:GL_RGB, // format
> - GL_UNSIGNED_BYTE, // type
> - ImageData+i*dstride ); // *pixels
> - }
> -#else
> +//#ifdef FAST_BLIT
> +// // upload texture:
> +// for(i=0;i<image_height;i++){
> +// glTexSubImage2D( GL_TEXTURE_2D, // target
> +// 0, // level
> +// 0, // x offset
> +// i, // y offset
> +// image_width, // width
> +// 1, // height
> +// (BYTES_PP==4)?GL_RGBA:GL_RGB, // format
> +// GL_UNSIGNED_BYTE, // type
> +// ImageData+i*dstride ); // *pixels
> +// }
> +// #else
> glTexSubImage2D( GL_TEXTURE_2D, // target
> 0, // level
> 0, // x offset
> @@ -94,7 +94,7 @@
> (BYTES_PP==4)?GL_RGBA:GL_RGB, // format
> GL_UNSIGNED_BYTE, // type
> ImageData ); // *pixels
> -#endif
> +// #endif
>
> up_time+=GetRelativeTime();
>
> [adam at blackbox GL-test]$
>
> _______________________________________________
> RTFM!!! http://www.MPlayerHQ.hu/DOCS
> Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-users
mailing list