diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2021-09-11 23:11:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-11 23:11:32 +0200 |
| commit | be4e1929033aff005472163164ab0ccc80d81c19 (patch) | |
| tree | b3b3f62a3b3e8e3c329ee35411d8d18e20a835ab /src/video_core/video_core.cpp | |
| parent | 82c867164bc37d598f12fac5e8b662ee77b9db02 (diff) | |
| parent | b384129c63c604d8087f72a880adfdc6c68ab9a0 (diff) | |
Merge pull request #6846 from ameerj/nvdec-gpu-decode
nvdec: Add GPU video decoding for all capable drivers and platforms
Diffstat (limited to 'src/video_core/video_core.cpp')
| -rw-r--r-- | src/video_core/video_core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index 3b575db4d..cae543a51 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp @@ -37,7 +37,8 @@ std::unique_ptr<VideoCore::RendererBase> CreateRenderer( namespace VideoCore { std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system) { - const bool use_nvdec = Settings::values.use_nvdec_emulation.GetValue(); + const auto nvdec_value = Settings::values.nvdec_emulation.GetValue(); + const bool use_nvdec = nvdec_value != Settings::NvdecEmulation::Off; const bool use_async = Settings::values.use_asynchronous_gpu_emulation.GetValue(); auto gpu = std::make_unique<Tegra::GPU>(system, use_async, use_nvdec); auto context = emu_window.CreateSharedContext(); |
