diff options
| author | 2018-10-06 23:18:52 -0400 | |
|---|---|---|
| committer | 2018-10-06 23:18:52 -0400 | |
| commit | 2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da (patch) | |
| tree | 071133d1635b154026565875cc16155ea80e2a58 /src/video_core/rasterizer_interface.h | |
| parent | Merge pull request #1437 from FernandoS27/tex-mode2 (diff) | |
| parent | yuzu/yuzu_cmd: Add checks for required extension ARB_copy_image. (diff) | |
| download | yuzu-2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da.tar.gz yuzu-2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da.tar.xz yuzu-2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da.zip | |
Merge pull request #1446 from bunnei/fast_fermi_copy
gl_rasterizer: Implement accelerated Fermi2D copies.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
| -rw-r--r-- | src/video_core/rasterizer_interface.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index cd819d69f..06fc59dbe 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "video_core/engines/fermi_2d.h" | ||
| 8 | #include "video_core/gpu.h" | 9 | #include "video_core/gpu.h" |
| 9 | #include "video_core/memory_manager.h" | 10 | #include "video_core/memory_manager.h" |
| 10 | 11 | ||
| @@ -33,13 +34,9 @@ public: | |||
| 33 | /// and invalidated | 34 | /// and invalidated |
| 34 | virtual void FlushAndInvalidateRegion(VAddr addr, u64 size) = 0; | 35 | virtual void FlushAndInvalidateRegion(VAddr addr, u64 size) = 0; |
| 35 | 36 | ||
| 36 | /// Attempt to use a faster method to perform a display transfer with is_texture_copy = 0 | 37 | /// Attempt to use a faster method to perform a surface copy |
| 37 | virtual bool AccelerateDisplayTransfer(const void* config) { | 38 | virtual bool AccelerateSurfaceCopy(const Tegra::Engines::Fermi2D::Regs::Surface& src, |
| 38 | return false; | 39 | const Tegra::Engines::Fermi2D::Regs::Surface& dst) { |
| 39 | } | ||
| 40 | |||
| 41 | /// Attempt to use a faster method to perform a display transfer with is_texture_copy = 1 | ||
| 42 | virtual bool AccelerateTextureCopy(const void* config) { | ||
| 43 | return false; | 40 | return false; |
| 44 | } | 41 | } |
| 45 | 42 | ||