diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-06 05:46:40 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-06 09:20:04 +0200 |
commit | 9aec85d39c0c95419bd086ccac158dbb77c20002 (patch) | |
tree | 3140c57d26f721f3a0fb8045e52b15cbb898db8d /src/video_core/engines/fermi_2d.h | |
parent | gl_rasterizer: Add rasterizer cache code to handle accerated fermi copies. (diff) | |
download | yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar.gz yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar.bz2 yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar.lz yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar.xz yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.tar.zst yuzu-9aec85d39c0c95419bd086ccac158dbb77c20002.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/fermi_2d.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h index 021b83eaa..81d15c62a 100644 --- a/src/video_core/engines/fermi_2d.h +++ b/src/video_core/engines/fermi_2d.h @@ -12,6 +12,10 @@ #include "video_core/gpu.h" #include "video_core/memory_manager.h" +namespace VideoCore { +class RasterizerInterface; +} + namespace Tegra::Engines { #define FERMI2D_REG_INDEX(field_name) \ @@ -19,7 +23,7 @@ namespace Tegra::Engines { class Fermi2D final { public: - explicit Fermi2D(MemoryManager& memory_manager); + explicit Fermi2D(VideoCore::RasterizerInterface& rasterizer, MemoryManager& memory_manager); ~Fermi2D() = default; /// Write the value to the register identified by method. @@ -94,6 +98,8 @@ public: MemoryManager& memory_manager; private: + VideoCore::RasterizerInterface& rasterizer; + /// Performs the copy from the source surface to the destination surface as configured in the /// registers. void HandleSurfaceCopy(); |