From dd356eb9b89edc6978eb14c5e6e56bfb87125e2d Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Thu, 25 May 2023 15:15:07 +0800 Subject: libva-intel: upgrade 2.17.0 -> 2.18.0 Drop patches already fixed it. - 0001-Add-missing-libva.def.patch Signed-off-by: Lim Siew Hoon Signed-off-by: Anuj Mittal --- .../libva/files/0001-Add-missing-libva.def.patch | 115 --------------------- recipes-graphics/libva/libva-intel_2.17.0.bb | 56 ---------- recipes-graphics/libva/libva-intel_2.18.0.bb | 55 ++++++++++ 3 files changed, 55 insertions(+), 171 deletions(-) delete mode 100644 recipes-graphics/libva/files/0001-Add-missing-libva.def.patch delete mode 100644 recipes-graphics/libva/libva-intel_2.17.0.bb create mode 100644 recipes-graphics/libva/libva-intel_2.18.0.bb diff --git a/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch b/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch deleted file mode 100644 index a6dafd61..00000000 --- a/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch +++ /dev/null @@ -1,115 +0,0 @@ -From 124cea5f0ecb94320502d9f1923df53df61fa9f1 Mon Sep 17 00:00:00 2001 -From: Lim Siew Hoon -Date: Tue, 7 Feb 2023 10:33:49 +0800 -Subject: [PATCH] Add missing libva.def - -The libva.def is missing from tarball, but from github -it did contains libva.def. Without this libva.def it will -be fail in meson configure the source code, it complain missing -va/libva.def. - -This file is importing from: -https://github.com/intel/libva/blob/2.17.0/va/libva.def - -upstream-status: merged. - -Signed-off-by: Lim Siew Hoon ---- - va/libva.def | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 85 insertions(+) - create mode 100644 va/libva.def - -diff --git a/va/libva.def b/va/libva.def -new file mode 100644 -index 0000000..f57896e ---- /dev/null -+++ b/va/libva.def -@@ -0,0 +1,85 @@ -+LIBRARY va -+EXPORTS -+ vaInitialize -+ vaErrorStr -+ vaTerminate -+ vaQueryVendorString -+ vaMaxNumProfiles -+ vaMaxNumEntrypoints -+ vaQueryConfigProfiles -+ vaQueryConfigEntrypoints -+ vaGetConfigAttributes -+ vaProfileStr -+ vaEntrypointStr -+ vaConfigAttribTypeStr -+ vaAcquireBufferHandle -+ vaAssociateSubpicture -+ vaBeginPicture -+ vaCreateBuffer -+ vaCreateConfig -+ vaCreateContext -+ vaCreateImage -+ vaCreateSubpicture -+ vaCreateSurfaces -+ vaDeassociateSubpicture -+ vaDeriveImage -+ vaDestroyBuffer -+ vaDestroyConfig -+ vaDestroyContext -+ vaDestroyImage -+ vaDestroySubpicture -+ vaDestroySurfaces -+ vaEndPicture -+ vaGetDisplayAttributes -+ vaGetImage -+ vaMapBuffer -+ vaMaxNumDisplayAttributes -+ vaMaxNumImageFormats -+ vaMaxNumSubpictureFormats -+ vaPutImage -+ vaQueryDisplayAttributes -+ vaQueryImageFormats -+ vaQuerySubpictureFormats -+ vaQuerySurfaceAttributes -+ vaQuerySurfaceStatus -+ vaQueryVideoProcFilterCaps -+ vaQueryVideoProcFilters -+ vaQueryVideoProcPipelineCaps -+ vaReleaseBufferHandle -+ vaRenderPicture -+ vaSetDisplayAttributes -+ vaSetErrorCallback -+ vaSetInfoCallback -+ vaSetSubpictureGlobalAlpha -+ vaSyncSurface -+ vaUnmapBuffer -+ vaSetDriverName -+ vaSyncBuffer -+ vaQueryConfigAttributes -+ vaBufferSetNumElements -+ vaQuerySurfaceError -+ vaSetImagePalette -+ vaSetSubpictureChromakey -+ vaBufferInfo -+ vaLockSurface -+ vaUnlockSurface -+ vaCreateMFContext -+ vaMFAddContext -+ vaMFReleaseContext -+ vaMFSubmit -+ vaCreateBuffer2 -+ vaQueryProcessingRate -+ vaExportSurfaceHandle -+ va_newDisplayContext -+ va_newDriverContext -+ vaMaxNumConfigAttributes -+ vaBufferTypeStr -+ vaAttachProtectedSession -+ vaCopy -+ vaCreateProtectedSession -+ vaDestroyProtectedSession -+ vaDetachProtectedSession -+ vaProtectedSessionExecute -+ vaSetSubpictureImage -+ vaStatusStr -+ vaSyncSurface2 --- -2.39.0 - diff --git a/recipes-graphics/libva/libva-intel_2.17.0.bb b/recipes-graphics/libva/libva-intel_2.17.0.bb deleted file mode 100644 index 4225b09f..00000000 --- a/recipes-graphics/libva/libva-intel_2.17.0.bb +++ /dev/null @@ -1,56 +0,0 @@ -SUMMARY = "Video Acceleration (VA) API for Linux" -DESCRIPTION = "Video Acceleration API (VA API) is a library (libVA) \ -and API specification which enables and provides access to graphics \ -hardware (GPU) acceleration for video processing on Linux and UNIX \ -based operating systems. Accelerated processing includes video \ -decoding, video encoding, subpicture blending and rendering. The \ -specification was originally designed by Intel for its GMA (Graphics \ -Media Accelerator) series of GPU hardware, the API is however not \ -limited to GPUs or Intel specific hardware, as other hardware and \ -manufacturers can also freely use this API for hardware accelerated \ -video decoding." - -HOMEPAGE = "https://01.org/linuxmedia/vaapi" -BUGTRACKER = "https://github.com/intel/libva/issues" - -SECTION = "x11" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=2e48940f94acb0af582e5ef03537800f" - -SRC_URI = "https://github.com/intel/libva/releases/download/${PV}/libva-${PV}.tar.bz2 \ - file://0001-Add-missing-libva.def.patch \ - " -SRC_URI[sha256sum] = "f3e5eb27c305e05a9bb62703d1915a127301cc0c4f9f209025767432230c4eac" - -S = "${WORKDIR}/libva-${PV}" - -UPSTREAM_CHECK_URI = "https://github.com/intel/libva/releases" - -DEPENDS = "libdrm" - -inherit meson pkgconfig - -PACKAGECONFIG ??= " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} \ -" - -PACKAGECONFIG[x11] = "-Dwith_x11=yes,-Dwith_x11=no,virtual/libx11 libxext libxfixes" -PACKAGECONFIG[glx] = "-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa" - -PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native wayland" - -PACKAGES =+ "${PN}-x11 ${PN}-glx ${PN}-wayland" - -RDEPENDS:${PN}-x11 =+ "${PN}" -RDEPENDS:${PN}-glx =+ "${PN}-x11" - -FILES:${PN}-x11 =+ "${libdir}/libva-x11*${SOLIBS}" -FILES:${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}" -FILES:${PN}-wayland =+ "${libdir}/libva-wayland*${SOLIBS}" - -PROVIDES += "libva" -RPROVIDES:${PN} += "libva" -RPROVIDES:${PN}-x11 += "libva-x11" -RPROVIDES:${PN}-glx += "libva-glx" -RPROVIDES:${PN}-wayland += "libva-wayland" diff --git a/recipes-graphics/libva/libva-intel_2.18.0.bb b/recipes-graphics/libva/libva-intel_2.18.0.bb new file mode 100644 index 00000000..cddf87ab --- /dev/null +++ b/recipes-graphics/libva/libva-intel_2.18.0.bb @@ -0,0 +1,55 @@ +SUMMARY = "Video Acceleration (VA) API for Linux" +DESCRIPTION = "Video Acceleration API (VA API) is a library (libVA) \ +and API specification which enables and provides access to graphics \ +hardware (GPU) acceleration for video processing on Linux and UNIX \ +based operating systems. Accelerated processing includes video \ +decoding, video encoding, subpicture blending and rendering. The \ +specification was originally designed by Intel for its GMA (Graphics \ +Media Accelerator) series of GPU hardware, the API is however not \ +limited to GPUs or Intel specific hardware, as other hardware and \ +manufacturers can also freely use this API for hardware accelerated \ +video decoding." + +HOMEPAGE = "https://01.org/linuxmedia/vaapi" +BUGTRACKER = "https://github.com/intel/libva/issues" + +SECTION = "x11" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=2e48940f94acb0af582e5ef03537800f" + +SRC_URI = "https://github.com/intel/libva/releases/download/${PV}/libva-${PV}.tar.bz2 \ + " +SRC_URI[sha256sum] = "a3577eeba0c23924686c7e2f2030073736c8282a80f27b5473e33ea94ccd4982" + +S = "${WORKDIR}/libva-${PV}" + +UPSTREAM_CHECK_URI = "https://github.com/intel/libva/releases" + +DEPENDS = "libdrm" + +inherit meson pkgconfig + +PACKAGECONFIG ??= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', '', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} \ +" + +PACKAGECONFIG[x11] = "-Dwith_x11=yes,-Dwith_x11=no,virtual/libx11 libxext libxfixes" +PACKAGECONFIG[glx] = "-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa" + +PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native wayland" + +PACKAGES =+ "${PN}-x11 ${PN}-glx ${PN}-wayland" + +RDEPENDS:${PN}-x11 =+ "${PN}" +RDEPENDS:${PN}-glx =+ "${PN}-x11" + +FILES:${PN}-x11 =+ "${libdir}/libva-x11*${SOLIBS}" +FILES:${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}" +FILES:${PN}-wayland =+ "${libdir}/libva-wayland*${SOLIBS}" + +PROVIDES += "libva" +RPROVIDES:${PN} += "libva" +RPROVIDES:${PN}-x11 += "libva-x11" +RPROVIDES:${PN}-glx += "libva-glx" +RPROVIDES:${PN}-wayland += "libva-wayland" -- cgit v1.2.3-54-g00ecf