[vlc-devel] [vlc-commits] vout: opengl: increase picture max for gles2

Thomas Guillem thomas at gllm.fr
Tue Nov 29 15:02:34 CET 2016



On Tue, Nov 29, 2016, at 15:00, Steve Lhomme wrote:
> On Mon, Nov 28, 2016 at 4:37 PM, Thomas Guillem <git at videolan.org> wrote:
> > vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 24 17:05:35 2016 +0100| [ec65d2e2d42e6dcf42b80158cd481ec6a0495d18] | committer: Thomas Guillem
> >
> > vout: opengl: increase picture max for gles2
> >
> > This restriction was here because gles1 devices didn't have much memory, but
> > it's not the case (anymore) for gles2 devices.
> 
> You can't query the max value dynamically ?

That's just a max. This plugin will alloc the amount of pictures
requested by the core, but not higher than max.

> 
> >> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec65d2e2d42e6dcf42b80158cd481ec6a0495d18
> > ---
> >
> >  modules/video_output/opengl.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
> > index 81f58c6..4968edf 100644
> > --- a/modules/video_output/opengl.c
> > +++ b/modules/video_output/opengl.c
> > @@ -79,12 +79,13 @@
> >  #if USE_OPENGL_ES
> >  #   define GLSL_VERSION "100"
> >  #   define VLCGL_TEXTURE_COUNT 1
> > -#   define VLCGL_PICTURE_MAX 1
> >  #   define PRECISION "precision highp float;"
> >  #if USE_OPENGL_ES == 2
> > +#   define VLCGL_PICTURE_MAX 128
> >  #   define SUPPORTS_SHADERS
> >  #   define glClientActiveTexture(x)
> >  #else
> > +#   define VLCGL_PICTURE_MAX 1
> >  #   define SUPPORTS_FIXED_PIPELINE
> >  #   define GL_MAX_TEXTURE_IMAGE_UNITS GL_MAX_TEXTURE_UNITS
> >  #endif
> >
> > _______________________________________________
> > vlc-commits mailing list
> > vlc-commits at videolan.org
> > https://mailman.videolan.org/listinfo/vlc-commits
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list