diff options
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend | 1 | ||||
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend new file mode 100644 index 000000000..3b23818dd --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| PACKAGECONFIG_GL:imxgpu = "egl" | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb index 288de6c50..02dc86e44 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.0.imx.bb | |||
| @@ -32,8 +32,13 @@ def get_gst_ver(v): | |||
| 32 | 32 | ||
| 33 | PACKAGES =+ "${PN}-tests" | 33 | PACKAGES =+ "${PN}-tests" |
| 34 | 34 | ||
| 35 | # Use egl for i.MX | 35 | # OpenGL packageconfig factored out to make it easy for distros |
| 36 | PACKAGECONFIG_GL ?= "egl" | 36 | # and BSP layers to pick either glx, egl, or no GL. By default, |
| 37 | # try detecting X11 first, and if found (with OpenGL), use GLX, | ||
| 38 | # otherwise try to check if EGL can be used. | ||
| 39 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \ | ||
| 40 | bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \ | ||
| 41 | '', d), d)}" | ||
| 37 | 42 | ||
| 38 | PACKAGECONFIG ??= "drm encoders \ | 43 | PACKAGECONFIG ??= "drm encoders \ |
| 39 | ${PACKAGECONFIG_GL} \ | 44 | ${PACKAGECONFIG_GL} \ |
