Skip to content

Commit 3b4697d

Browse files
HmnSnMingcongBai
authored andcommitted
intel-media-driver: add arm64 support
- Apply loongarch64 patches on arm64 because simde is compatible with both architectures - Fix redefined on arm64
1 parent 2558f18 commit 3b4697d

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

runtime-devices/intel-gmmlib/autobuild/patches/0001-Disable-AuxTable-test-on-aarch64.patch renamed to runtime-devices/intel-gmmlib/autobuild/patches/0002-Disable-AuxTable-test-on-aarch64.patch

File renamed without changes.

runtime-multimedia/intel-media-driver/autobuild/defines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ BUILDDEP="cmake"
55
PKGDES="Intel Media Driver for VAAPI (for Broadwell+ Intel GPUs)"
66

77
# FIXME: Limited by intel-gmmlib.
8-
FAIL_ARCH="!(amd64|loongarch64)"
8+
FAIL_ARCH="!(amd64|arm64|loongarch64)"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From ab646833d10cf744c79fefcb8344757ac0173fae Mon Sep 17 00:00:00 2001
2+
From: Qing Yun <kf@aosc.io>
3+
Date: Sun, 13 Apr 2025 23:06:17 +0800
4+
Subject: [PATCH] ARM64: fix redefined on arm64
5+
6+
---
7+
media_common/linux/common/os/mos_defs_specific.h | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/media_common/linux/common/os/mos_defs_specific.h b/media_common/linux/common/os/mos_defs_specific.h
11+
index c5b4143..4806b1c 100644
12+
--- a/media_common/linux/common/os/mos_defs_specific.h
13+
+++ b/media_common/linux/common/os/mos_defs_specific.h
14+
@@ -99,6 +99,9 @@ typedef struct _TP_CALLBACK_INSTANCE TP_CALLBACK_INSTANCE, *PTP_CALLBACK_INSTANC
15+
#if defined __x86_64__
16+
#define __stdcall // deprecated for x86-64
17+
#define __cdecl // deprecated for x86-64
18+
+#elif defined(__ARM_ARCH)
19+
+ #define __stdcall
20+
+ #define __cdecl
21+
#else
22+
#define __cdecl __attribute__((__cdecl__))
23+
#define __stdcall __attribute__((__stdcall__))
24+
--
25+
2.49.0

runtime-multimedia/intel-media-driver/autobuild/prepare

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ if ab_match_arch loongarch64; then
44
git config --local user.email "maintainers@aosc.io"
55
git am "$SRCDIR"/autobuild/patches/*.am.loongarch64
66
git submodule update --init --recursive
7+
elif ab_match_arch arm64; then
8+
abinfo "Applying ARM64 support patch ..."
9+
git config --local user.name "AOSC Maintainers"
10+
git config --local user.email "maintainers@aosc.io"
11+
12+
# NOTE: simde is also compatible on arm64,
13+
# so apply loongarch support patches
14+
git am "$SRCDIR"/autobuild/patches/*.am.loongarch64
15+
git am "$SRCDIR"/autobuild/patches/*.am.arm64
16+
git submodule update --init --recursive
717
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
VER=24.4.4
2-
REL=1
2+
REL=2
33
SRCS="git::commit=tags/intel-media-$VER;copy-repo=true::https://github.com/intel/media-driver"
44
CHKSUMS="SKIP"
55
CHKUPDATE="anitya::id=20341"

0 commit comments

Comments
 (0)