gl: Separate viv direct texture checks from viv-fb winsys check

Vivante direct textures do not depend on the viv-fb windowing system.
Decouple these two to be able to use direct textures even when viv-fb
is not enabled.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4959>
This commit is contained in:
Carlos Rafael Giani 2023-06-30 13:53:19 +02:00 committed by Matthew Waters
parent a7ba1428e0
commit bd7c1adba9

View file

@ -918,23 +918,24 @@ if need_win_gbm != 'no'
endif
endif
if cc.has_function ('glTexDirectVIV', dependencies : gles2_dep)
glconf.set('GST_GL_HAVE_VIV_DIRECTVIV', 1)
endif
if need_platform_egl != 'no' and need_win_viv_fb != 'no'
if egl_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep)
if cc.has_function ('glTexDirectVIV', dependencies : gles2_dep)
enabled_gl_winsys += 'viv-fb'
glconf.set('GST_GL_HAVE_WINDOW_VIV_FB', 1)
glconf.set('GST_GL_HAVE_VIV_DIRECTVIV', 1)
gl_priv_sources += [
'viv-fb/gstgldisplay_viv_fb.c',
'viv-fb/gstglwindow_viv_fb_egl.c',
]
gl_cpp_args += ['-DEGL_API_FB']
gl_viv_fb_headers = [
'viv-fb/gstgldisplay_viv_fb.h',
'viv-fb/gstglwindow_viv_fb_egl.h',
]
install_headers(gl_viv_fb_headers, subdir : 'gstreamer-1.0/gst/gl/viv-fb')
endif
enabled_gl_winsys += 'viv-fb'
glconf.set('GST_GL_HAVE_WINDOW_VIV_FB', 1)
gl_priv_sources += [
'viv-fb/gstgldisplay_viv_fb.c',
'viv-fb/gstglwindow_viv_fb_egl.c',
]
gl_cpp_args += ['-DEGL_API_FB']
gl_viv_fb_headers = [
'viv-fb/gstgldisplay_viv_fb.h',
'viv-fb/gstglwindow_viv_fb_egl.h',
]
install_headers(gl_viv_fb_headers, subdir : 'gstreamer-1.0/gst/gl/viv-fb')
endif
endif