diff options
Diffstat (limited to 'recipes-multimedia/mediasdk')
-rw-r--r-- | recipes-multimedia/mediasdk/files/0001-Don-t-try-to-autheticate-with-render-node.patch | 44 | ||||
-rw-r--r-- | recipes-multimedia/mediasdk/files/fix-gcc13.patch | 15 | ||||
-rw-r--r-- | recipes-multimedia/mediasdk/intel-mediasdk_23.2.2.bb (renamed from recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb) | 20 |
3 files changed, 26 insertions, 53 deletions
diff --git a/recipes-multimedia/mediasdk/files/0001-Don-t-try-to-autheticate-with-render-node.patch b/recipes-multimedia/mediasdk/files/0001-Don-t-try-to-autheticate-with-render-node.patch deleted file mode 100644 index d424b68d..00000000 --- a/recipes-multimedia/mediasdk/files/0001-Don-t-try-to-autheticate-with-render-node.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 6945cd0ad84855ab4a2dc40016879fb5fc7f2b6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Vincent Cheah Beng Keat <vincent.beng.keat.cheah@intel.com> | ||
3 | Date: Wed, 7 Apr 2021 05:30:15 +0000 | ||
4 | Subject: [PATCH] Don't try to autheticate with render node | ||
5 | |||
6 | Replicate similar libVA wayland change. | ||
7 | https://github.com/intel/libva/commit/283f776a9649dcef58b47958c1269499adfa1cd4 | ||
8 | |||
9 | Platform: ADL-S, EHL, TGL | ||
10 | OS: Yocto native wayland weston | ||
11 | Tested: | ||
12 | ./sample_decode h265 -i Puppies_3840x2160.265 -rwld -rgb4 | ||
13 | |||
14 | Issue: #2592 | ||
15 | |||
16 | Upstream-Status: Backport [https://github.com/Intel-Media-SDK/MediaSDK/commit/6945cd0ad84855ab4a2dc40016879fb5fc7f2b6a] | ||
17 | |||
18 | Signed-off-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com> | ||
19 | --- | ||
20 | samples/sample_misc/wayland/src/class_wayland.cpp | 8 ++++++-- | ||
21 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/samples/sample_misc/wayland/src/class_wayland.cpp b/samples/sample_misc/wayland/src/class_wayland.cpp | ||
24 | index 62f326e3..4a0beed3 100644 | ||
25 | --- a/samples/sample_misc/wayland/src/class_wayland.cpp | ||
26 | +++ b/samples/sample_misc/wayland/src/class_wayland.cpp | ||
27 | @@ -433,8 +433,12 @@ void Wayland::DrmHandleDevice(const char *name) | ||
28 | m_device_name << "\n"; | ||
29 | return; | ||
30 | } | ||
31 | - drmGetMagic(m_fd, &magic); | ||
32 | - wl_drm_authenticate(m_drm, magic); | ||
33 | + | ||
34 | + int type = drmGetNodeTypeFromFd(m_fd); | ||
35 | + if (type != DRM_NODE_RENDER) { | ||
36 | + drmGetMagic(m_fd, &magic); | ||
37 | + wl_drm_authenticate(m_drm, magic); | ||
38 | + } | ||
39 | } | ||
40 | |||
41 | void Wayland::DrmHandleAuthenticated() | ||
42 | -- | ||
43 | 2.24.3 | ||
44 | |||
diff --git a/recipes-multimedia/mediasdk/files/fix-gcc13.patch b/recipes-multimedia/mediasdk/files/fix-gcc13.patch new file mode 100644 index 00000000..fb973870 --- /dev/null +++ b/recipes-multimedia/mediasdk/files/fix-gcc13.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Inactive-Upstream | ||
2 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | |||
4 | diff --git a/api/mfx_dispatch/linux/mfxparser.cpp b/api/mfx_dispatch/linux/mfxparser.cpp | ||
5 | index 9d3823ec3e..12e46d1881 100644 | ||
6 | --- a/api/mfx_dispatch/linux/mfxparser.cpp | ||
7 | +++ b/api/mfx_dispatch/linux/mfxparser.cpp | ||
8 | @@ -20,6 +20,7 @@ | ||
9 | |||
10 | #include <ctype.h> | ||
11 | #include <stdio.h> | ||
12 | +#include <stdint.h> | ||
13 | #include <stdlib.h> | ||
14 | #include <string.h> | ||
15 | |||
diff --git a/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb b/recipes-multimedia/mediasdk/intel-mediasdk_23.2.2.bb index b3a30bc4..f00a4404 100644 --- a/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb +++ b/recipes-multimedia/mediasdk/intel-mediasdk_23.2.2.bb | |||
@@ -12,12 +12,14 @@ CVE_DETAILS = "intel:media_sdk" | |||
12 | 12 | ||
13 | # Only for 64 bit until media-driver issues aren't fixed | 13 | # Only for 64 bit until media-driver issues aren't fixed |
14 | COMPATIBLE_HOST = '(x86_64).*-linux' | 14 | COMPATIBLE_HOST = '(x86_64).*-linux' |
15 | COMPATIBLE_HOST_x86-x32 = "null" | 15 | COMPATIBLE_HOST:x86-x32 = "null" |
16 | 16 | ||
17 | inherit features_check | 17 | inherit features_check |
18 | REQUIRED_DISTRO_FEATURES = "opengl" | 18 | REQUIRED_DISTRO_FEATURES = "opengl" |
19 | 19 | ||
20 | DEPENDS += "libdrm libva intel-media-driver" | 20 | DEPENDS += "libva" |
21 | |||
22 | RDEPENDS:${PN} += "intel-media-driver" | ||
21 | 23 | ||
22 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \ | 24 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \ |
23 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \ | 25 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \ |
@@ -27,16 +29,16 @@ PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d) | |||
27 | 29 | ||
28 | PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF" | 30 | PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF" |
29 | PACKAGECONFIG[itt] = "-DENABLE_ITT=ON, -DENABLE_ITT=OFF, itt" | 31 | PACKAGECONFIG[itt] = "-DENABLE_ITT=ON, -DENABLE_ITT=OFF, itt" |
30 | PACKAGECONFIG[opencl] = "-DENABLE_OPENCL=ON, -DENABLE_OPENCL=OFF, ocl-icd opencl-clhpp opencl-headers" | 32 | PACKAGECONFIG[opencl] = "-DENABLE_OPENCL=ON, -DENABLE_OPENCL=OFF, virtual/opencl-icd opencl-clhpp opencl-headers" |
31 | PACKAGECONFIG[samples] = "-DBUILD_SAMPLES=ON, -DBUILD_SAMPLES=OFF" | 33 | PACKAGECONFIG[samples] = "-DBUILD_SAMPLES=ON, -DBUILD_SAMPLES=OFF" |
32 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native" | 34 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native" |
33 | 35 | ||
34 | SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;nobranch=1;lfs=0 \ | 36 | SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;nobranch=1;lfs=0 \ |
35 | file://0001-FindITT.cmake-fix-detection-of-header-library.patch \ | 37 | file://0001-FindITT.cmake-fix-detection-of-header-library.patch \ |
36 | file://0001-Don-t-try-to-autheticate-with-render-node.patch \ | 38 | file://fix-gcc13.patch \ |
37 | " | 39 | " |
38 | 40 | ||
39 | SRCREV = "03164a0b491651c210abd4549ca5275ac974d105" | 41 | SRCREV = "869b60a6c3d7b5e9f7c3b3b914986322dca4bbae" |
40 | S = "${WORKDIR}/git" | 42 | S = "${WORKDIR}/git" |
41 | 43 | ||
42 | UPSTREAM_CHECK_GITTAGREGEX = "^intel-mediasdk-(?P<pver>(\d+(\.\d+)+))$" | 44 | UPSTREAM_CHECK_GITTAGREGEX = "^intel-mediasdk-(?P<pver>(\d+(\.\d+)+))$" |
@@ -45,17 +47,17 @@ inherit cmake pkgconfig | |||
45 | 47 | ||
46 | EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include" | 48 | EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include" |
47 | 49 | ||
48 | do_install_append() { | 50 | do_install:append() { |
49 | mv ${D}${datadir}/mfx/samples ${D}${libdir}/mfx/samples | 51 | mv ${D}${datadir}/mfx/samples ${D}${libdir}/mfx/samples |
50 | } | 52 | } |
51 | 53 | ||
52 | PACKAGE_BEFORE_PN = " ${PN}-samples" | 54 | PACKAGE_BEFORE_PN = " ${PN}-samples" |
53 | 55 | ||
54 | FILES_${PN} += " \ | 56 | FILES:${PN} += " \ |
55 | ${libdir}/mfx \ | 57 | ${libdir}/mfx \ |
56 | ${datadir}/mfx/plugins.cfg \ | 58 | ${datadir}/mfx/plugins.cfg \ |
57 | " | 59 | " |
58 | 60 | ||
59 | FILES_${PN}-samples = "${libdir}/mfx/samples" | 61 | FILES:${PN}-samples = "${libdir}/mfx/samples" |
60 | 62 | ||
61 | INSANE_SKIP_${PN}-samples += "staticdev" | 63 | INSANE_SKIP:${PN}-samples += "staticdev" |