diff options
author | bunnei <bunneidev@gmail.com> | 2021-12-22 07:46:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 07:46:49 +0100 |
commit | f1eff447bbd384b9c091f4ff559affae1f05855c (patch) | |
tree | ca01c6afce779d43fa47ef10f589205ccf7a9897 | |
parent | Merge pull request #7604 from ameerj/fullscreen-render-window (diff) | |
parent | video_core/codecs: re-enable VAAPI/VDPAU on BSDs after 72aa418b0b41 (diff) | |
download | yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.gz yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.bz2 yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.lz yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.xz yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.zst yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.zip |
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/video_core/command_classes/codecs/codec.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 18d553f4d..7d9056aa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -508,7 +508,7 @@ set(FFmpeg_COMPONENTS avutil swscale) -if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") +if (UNIX AND NOT APPLE) Include(FindPkgConfig REQUIRED) pkg_check_modules(LIBVA libva) endif() diff --git a/src/video_core/command_classes/codecs/codec.cpp b/src/video_core/command_classes/codecs/codec.cpp index 868b82f9b..04d0f3a2f 100644 --- a/src/video_core/command_classes/codecs/codec.cpp +++ b/src/video_core/command_classes/codecs/codec.cpp @@ -32,7 +32,7 @@ constexpr std::array PREFERRED_GPU_DECODERS = { #ifdef _WIN32 AV_HWDEVICE_TYPE_D3D11VA, AV_HWDEVICE_TYPE_DXVA2, -#elif defined(__linux__) +#elif defined(__unix__) AV_HWDEVICE_TYPE_VAAPI, AV_HWDEVICE_TYPE_VDPAU, #endif |