multimedia/gmmlib: restore upstreamable patch after 41f2281cb3
This commit is contained in:
parent
8f04c23321
commit
be1126b3ed
4 changed files with 3 additions and 42 deletions
|
@ -8,6 +8,7 @@ PATCHFILES+= f17dd87c7f57.patch:-p1 # https://github.com/intel/gmmlib/pull/67
|
|||
PATCHFILES+= 4356a33c787c.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= a75809957583.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= 978f7d56f88a.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= 8ebe65625f71.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= 072810163a05.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= ab150305017a.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
PATCHFILES+= 0d45ab8163e7.patch:-p1 # https://github.com/intel/gmmlib/pull/68
|
||||
|
|
|
@ -9,8 +9,8 @@ SHA256 (a75809957583.patch) = 96fe52e6c1f2c995a2c70b36dbe627cc1b7482c0f5a0ce4939
|
|||
SIZE (a75809957583.patch) = 900
|
||||
SHA256 (978f7d56f88a.patch) = fb290b8d6f2119ad032a445e717f3ce94bb91c2353dbd45ad522d0b3e1be3ef8
|
||||
SIZE (978f7d56f88a.patch) = 731
|
||||
SHA256 (9e844d7c052d.patch) = 27e67ca57a8b8af533af56b4b6f8f9e2166c21574ab28d03e2cf62e924fedbf7
|
||||
SIZE (9e844d7c052d.patch) = 3208
|
||||
SHA256 (8ebe65625f71.patch) = 497abaccf11ce380a05133ab22ab30261d49e08b118450287ff40d5ff2850349
|
||||
SIZE (8ebe65625f71.patch) = 3028
|
||||
SHA256 (072810163a05.patch) = a803ac48e0b281adffd03977f9156477d89f8973d22ed5614fa494a7c485f671
|
||||
SIZE (072810163a05.patch) = 18665
|
||||
SHA256 (ab150305017a.patch) = ca80f780a84ee6f720181adac5bcfa593a2b452fe2b2f1f2319007457ecbb40c
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
--- Source/GmmLib/GlobalInfo/GmmInfo.cpp.orig 2023-07-18 11:43:35 UTC
|
||||
+++ Source/GmmLib/GlobalInfo/GmmInfo.cpp
|
||||
@@ -937,7 +937,7 @@ int32_t GmmLib::Context::IncrementRefCount()
|
||||
{
|
||||
int32_t *Ref = &RefCount;
|
||||
|
||||
-#if defined(__linux__)
|
||||
+#if defined(__GNUC__)
|
||||
// returns 0 only when registering the first client
|
||||
return (__sync_fetch_and_add(Ref, 1));
|
||||
#endif
|
||||
@@ -972,7 +972,7 @@ int32_t GmmLib::Context::DecrementRefCount()
|
||||
{
|
||||
break;
|
||||
}
|
||||
-#if defined(__linux__)
|
||||
+#if defined(__GNUC__)
|
||||
} while(!__sync_bool_compare_and_swap(Ref, CurrentValue, TargetValue));
|
||||
#endif
|
||||
return TargetValue;
|
|
@ -1,20 +0,0 @@
|
|||
--- Source/GmmLib/inc/External/Common/GmmInfo.h.orig 2023-07-18 11:42:34 UTC
|
||||
+++ Source/GmmLib/inc/External/Common/GmmInfo.h
|
||||
@@ -141,7 +141,7 @@ namespace GmmLib
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return(InterlockedIncrement((LONG *)&RefCount) - 1); //InterLockedIncrement() returns incremented value
|
||||
-#elif defined(__linux__)
|
||||
+#elif defined(__GNUC__)
|
||||
return(__sync_fetch_and_add(&RefCount, 1));
|
||||
#endif
|
||||
}
|
||||
@@ -163,7 +163,7 @@ namespace GmmLib
|
||||
}
|
||||
#if defined(_WIN32)
|
||||
} while (!(InterlockedCompareExchange((LONG *)&RefCount, TargetValue, CurrentValue) == CurrentValue));
|
||||
-#elif defined(__linux__)
|
||||
+#elif defined(__GNUC__)
|
||||
} while (!__sync_bool_compare_and_swap(&RefCount, CurrentValue, TargetValue));
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue