Signed-off-by: Lim Siew Hoon <[email protected]>
---
 .../files/0001-Add-missing-libva.def.patch    | 115 ++++++++++++++++++
 ...-intel_2.16.0.bb => libva-intel_2.17.0.bb} |   6 +-
 2 files changed, 119 insertions(+), 2 deletions(-)
 create mode 100644 
recipes-graphics/libva/files/0001-Add-missing-libva.def.patch
 rename recipes-graphics/libva/{libva-intel_2.16.0.bb => libva-intel_2.17.0.bb} 
(91%)

diff --git a/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch 
b/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch
new file mode 100644
index 00000000..a6dafd61
--- /dev/null
+++ b/recipes-graphics/libva/files/0001-Add-missing-libva.def.patch
@@ -0,0 +1,115 @@
+From 124cea5f0ecb94320502d9f1923df53df61fa9f1 Mon Sep 17 00:00:00 2001
+From: Lim Siew Hoon <[email protected]>
+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 <[email protected]>
+---
+ 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.16.0.bb 
b/recipes-graphics/libva/libva-intel_2.17.0.bb
similarity index 91%
rename from recipes-graphics/libva/libva-intel_2.16.0.bb
rename to recipes-graphics/libva/libva-intel_2.17.0.bb
index 3077a7e8..4225b09f 100644
--- a/recipes-graphics/libva/libva-intel_2.16.0.bb
+++ b/recipes-graphics/libva/libva-intel_2.17.0.bb
@@ -17,8 +17,10 @@ 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] = 
"115faca0db2c417a37da49830870e260450fa13066f5e24e252a20c36d920a1c"
+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}"
 
-- 
2.39.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7814): 
https://lists.yoctoproject.org/g/meta-intel/message/7814
Mute This Topic: https://lists.yoctoproject.org/mt/96822763/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to