diff options
| author | 2022-01-30 22:26:01 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:52 +0200 | |
| commit | 2931101e6f5aa755566ef40f6e6dc71909fd3e92 (patch) | |
| tree | 76e847786e355e24a136562d42177b895a03315e /src/video_core/host1x/nvdec.cpp | |
| parent | VideoCore: Refactor syncing. (diff) | |
| download | yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.gz yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.xz yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.zip | |
NVDRV: Refactor Host1x
Diffstat (limited to 'src/video_core/host1x/nvdec.cpp')
| -rw-r--r-- | src/video_core/host1x/nvdec.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/host1x/nvdec.cpp b/src/video_core/host1x/nvdec.cpp index 5f6decd0d..a4bd5b79f 100644 --- a/src/video_core/host1x/nvdec.cpp +++ b/src/video_core/host1x/nvdec.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/assert.h" | 4 | #include "common/assert.h" |
| 5 | #include "video_core/gpu.h" | 5 | #include "video_core/host1x/host1x.h" |
| 6 | #include "video_core/host1x/nvdec.h" | 6 | #include "video_core/host1x/nvdec.h" |
| 7 | 7 | ||
| 8 | namespace Tegra::Host1x { | 8 | namespace Tegra::Host1x { |
| @@ -10,7 +10,8 @@ namespace Tegra::Host1x { | |||
| 10 | #define NVDEC_REG_INDEX(field_name) \ | 10 | #define NVDEC_REG_INDEX(field_name) \ |
| 11 | (offsetof(NvdecCommon::NvdecRegisters, field_name) / sizeof(u64)) | 11 | (offsetof(NvdecCommon::NvdecRegisters, field_name) / sizeof(u64)) |
| 12 | 12 | ||
| 13 | Nvdec::Nvdec(GPU& gpu_) : gpu(gpu_), state{}, codec(std::make_unique<Codec>(gpu, state)) {} | 13 | Nvdec::Nvdec(Host1x& host1x_) |
| 14 | : host1x(host1x_), state{}, codec(std::make_unique<Codec>(host1x, state)) {} | ||
| 14 | 15 | ||
| 15 | Nvdec::~Nvdec() = default; | 16 | Nvdec::~Nvdec() = default; |
| 16 | 17 | ||