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.h | |
| 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.h')
| -rw-r--r-- | src/video_core/host1x/nvdec.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/host1x/nvdec.h b/src/video_core/host1x/nvdec.h index 41ba1f7a0..3949d5181 100644 --- a/src/video_core/host1x/nvdec.h +++ b/src/video_core/host1x/nvdec.h | |||
| @@ -9,13 +9,14 @@ | |||
| 9 | #include "video_core/host1x/codecs/codec.h" | 9 | #include "video_core/host1x/codecs/codec.h" |
| 10 | 10 | ||
| 11 | namespace Tegra { | 11 | namespace Tegra { |
| 12 | class GPU; | ||
| 13 | 12 | ||
| 14 | namespace Host1x { | 13 | namespace Host1x { |
| 15 | 14 | ||
| 15 | class Host1x; | ||
| 16 | |||
| 16 | class Nvdec { | 17 | class Nvdec { |
| 17 | public: | 18 | public: |
| 18 | explicit Nvdec(GPU& gpu); | 19 | explicit Nvdec(Host1x& host1x); |
| 19 | ~Nvdec(); | 20 | ~Nvdec(); |
| 20 | 21 | ||
| 21 | /// Writes the method into the state, Invoke Execute() if encountered | 22 | /// Writes the method into the state, Invoke Execute() if encountered |
| @@ -28,7 +29,7 @@ private: | |||
| 28 | /// Invoke codec to decode a frame | 29 | /// Invoke codec to decode a frame |
| 29 | void Execute(); | 30 | void Execute(); |
| 30 | 31 | ||
| 31 | GPU& gpu; | 32 | Host1x& host1x; |
| 32 | NvdecCommon::NvdecRegisters state; | 33 | NvdecCommon::NvdecRegisters state; |
| 33 | std::unique_ptr<Codec> codec; | 34 | std::unique_ptr<Codec> codec; |
| 34 | }; | 35 | }; |