gl/effects: use non-PBO GLMemory for internal textures

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
This commit is contained in:
Haihua Hu 2016-12-07 16:51:27 +08:00 committed by Tim-Philipp Müller
parent faf1e388f7
commit 09952ddc4b

View 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,