diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-09-13 22:51:02 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2021-11-15 12:41:14 +0000 |
commit | 222372fc400a7a391beecd86f183ef9222ae39f2 (patch) | |
tree | 9a5b2c8b94e78eaf9f4cf2c2e4cc35f6e33f6e31 /multimedia/onevpl/files/patch-sched | |
parent | editors/linux-sublime-text4: update to 4122 (diff) |
multimedia/onevpl: add new port
The oneAPI Video Processing Library (oneVPL) provides a single video
processing API for encode, decode, and video processing that works
across a wide range of accelerators.
This package contains the following components of oneVPL:
- Copies of the oneVPL Specification API header files
- oneVPL dispatcher
- Examples demonstrating API usage
- oneVPL command line tools
https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html
Diffstat (limited to 'multimedia/onevpl/files/patch-sched')
-rw-r--r-- | multimedia/onevpl/files/patch-sched | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/multimedia/onevpl/files/patch-sched b/multimedia/onevpl/files/patch-sched new file mode 100644 index 000000000000..8012f025d8bb --- /dev/null +++ b/multimedia/onevpl/files/patch-sched @@ -0,0 +1,33 @@ +Disable non-POSIX scheduling policies if not supported + +tools/legacy/sample_common/src/vm/thread_linux.cpp:279:16: error: use of undeclared identifier 'SCHED_BATCH' + type = SCHED_BATCH; + ^ +tools/legacy/sample_common/src/vm/thread_linux.cpp:282:16: error: use of undeclared identifier 'SCHED_IDLE' + type = SCHED_IDLE; + ^ + +--- tools/legacy/sample_common/src/vm/thread_linux.cpp.orig 2021-09-13 22:51:02 UTC ++++ tools/legacy/sample_common/src/vm/thread_linux.cpp +@@ -275,15 +275,21 @@ mfxStatus msdk_thread_get_schedtype(const msdk_char* s + else if (!msdk_strcmp(str, MSDK_STRING("other"))) { + type = SCHED_OTHER; + } ++#ifdef SCHED_BATCH + else if (!msdk_strcmp(str, MSDK_STRING("batch"))) { + type = SCHED_BATCH; + } ++#endif ++#ifdef SCHED_IDLE + else if (!msdk_strcmp(str, MSDK_STRING("idle"))) { + type = SCHED_IDLE; + } ++#endif ++ //#ifdef SCHED_DEADLINE + // else if (!msdk_strcmp(str, MSDK_STRING("deadline"))) { + // type = SCHED_DEADLINE; + // } ++ //#endif + else { + return MFX_ERR_UNSUPPORTED; + } |