summaryrefslogtreecommitdiff
path: root/media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch')
-rw-r--r--media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch b/media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch
new file mode 100644
index 000000000000..889573ed94a5
--- /dev/null
+++ b/media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/908592
+https://github.com/intel/gmmlib/issues/103
+https://github.com/intel/gmmlib/pull/104
+
+From 2526286f29d8ad3d3a5833bdc29e23e5f3300b34 Mon Sep 17 00:00:00 2001
+From: Nicolas Chauvet <kwizart@gmail.com>
+Date: Mon, 12 Jun 2023 11:49:51 +0200
+Subject: [PATCH] Fix ambiguating new declaration LockMAContextSyncMutex()
+
+This fixes https://github.com/intel/gmmlib/issues/103 introduced by
+commit 5e12695c2c "Multi-threaded fixes for GMM Context info"
+
+Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
+--- a/Source/GmmLib/inc/External/Common/GmmInfo.h
++++ b/Source/GmmLib/inc/External/Common/GmmInfo.h
+@@ -627,8 +627,8 @@ typedef struct _GMM_ADAPTER_INFO_
+ GMM_ADAPTER_INFO * GetAdapterNode(ADAPTER_BDF sBdf); // Replacement for GetAdapterIndex, now get adapter node from the linked list
+
+ // Mutexes which protect the below thread unsafe functions
+- GMM_STATUS LockMAContextSyncMutex();
+- GMM_STATUS UnLockMAContextSyncMutex();
++ GMM_STATUS GMM_STDCALL LockMAContextSyncMutex();
++ GMM_STATUS GMM_STDCALL UnLockMAContextSyncMutex();
+
+ // thread unsafe functions; these must be protected with LockMAContextSyncMutex
+ GMM_ADAPTER_INFO * GetAdapterNodeUnlocked(ADAPTER_BDF sBdf);
+