summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-18 11:33:07 +0100
committerGitHub <noreply@github.com>2021-12-18 11:33:07 +0100
commit2030522d86d1fac7ef95396b9d59d5cdedd7b892 (patch)
tree55ddefd392b4c3514264282b78a882bfea956bb0 /src
parentMerge pull request #7596 from Tatsh/externals-sdl-config-joycon-fix (diff)
parentexternals/ffmpeg: set the cmake variable twice ... (diff)
downloadyuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar.gz
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar.bz2
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar.lz
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar.xz
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.tar.zst
yuzu-2030522d86d1fac7ef95396b9d59d5cdedd7b892.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/command_classes/codecs/codec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/command_classes/codecs/codec.cpp b/src/video_core/command_classes/codecs/codec.cpp
index 2a532b883..868b82f9b 100644
--- a/src/video_core/command_classes/codecs/codec.cpp
+++ b/src/video_core/command_classes/codecs/codec.cpp
@@ -130,6 +130,12 @@ bool Codec::CreateGpuAvDevice() {
}
if (config->methods & HW_CONFIG_METHOD && config->device_type == type) {
av_codec_ctx->pix_fmt = config->pix_fmt;
+ if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX) {
+ // skip zero-copy decoders, we don't currently support them
+ LOG_DEBUG(Service_NVDRV, "Skipping decoder {} with unsupported capability {}.",
+ av_hwdevice_get_type_name(type), config->methods);
+ continue;
+ }
LOG_INFO(Service_NVDRV, "Using {} GPU decoder", av_hwdevice_get_type_name(type));
return true;
}