gl/effects: use non-PBO GLMemory for internal textures
authorHaihua Hu <jared.hu@nxp.com>
Wed, 7 Dec 2016 08:51:27 +0000 (16:51 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:25 +0000 (19:32 +0000)
middle textures in gleffects do not need to use GstGLMemoryPBO as they
aren't transfering data to/from the GPU. This will cost too much DMA
memory and cause performance issue. Change the allocator to use non-PBO
GstGLMemory.

https://bugzilla.gnome.org/show_bug.cgi?id=776072

ext/gl/gstgleffects.c

index 9834182..3824023 100644 (file)
@@ -283,7 +283,7 @@ gst_gl_effects_gl_start (GstGLBaseFilter * base_filter)
     return FALSE;
 
   base_alloc = (GstGLBaseMemoryAllocator *)
-      gst_gl_memory_allocator_get_default (context);
+      gst_allocator_find (GST_GL_MEMORY_ALLOCATOR_NAME);
   params =
       (GstGLAllocationParams *) gst_gl_video_allocation_params_new (context,
       NULL, &filter->out_info, 0, NULL, GST_GL_TEXTURE_TARGET_2D,