diff options
| author | 2021-12-21 22:46:49 -0800 | |
|---|---|---|
| committer | 2021-12-21 22:46:49 -0800 | |
| 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.gz yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.tar.xz yuzu-f1eff447bbd384b9c091f4ff559affae1f05855c.zip | |
Merge pull request #7602 from jbeich/freebsd-vaapi
build: enable VA-API on FreeBSD
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 | |||
| 508 | avutil | 508 | avutil |
| 509 | swscale) | 509 | swscale) |
| 510 | 510 | ||
| 511 | if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | 511 | if (UNIX AND NOT APPLE) |
| 512 | Include(FindPkgConfig REQUIRED) | 512 | Include(FindPkgConfig REQUIRED) |
| 513 | pkg_check_modules(LIBVA libva) | 513 | pkg_check_modules(LIBVA libva) |
| 514 | endif() | 514 | 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 = { | |||
| 32 | #ifdef _WIN32 | 32 | #ifdef _WIN32 |
| 33 | AV_HWDEVICE_TYPE_D3D11VA, | 33 | AV_HWDEVICE_TYPE_D3D11VA, |
| 34 | AV_HWDEVICE_TYPE_DXVA2, | 34 | AV_HWDEVICE_TYPE_DXVA2, |
| 35 | #elif defined(__linux__) | 35 | #elif defined(__unix__) |
| 36 | AV_HWDEVICE_TYPE_VAAPI, | 36 | AV_HWDEVICE_TYPE_VAAPI, |
| 37 | AV_HWDEVICE_TYPE_VDPAU, | 37 | AV_HWDEVICE_TYPE_VDPAU, |
| 38 | #endif | 38 | #endif |