summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-23 23:30:48 -0400
committerGravatar GitHub2018-03-23 23:30:48 -0400
commita10baacf9e5ab48af7fb0ccbdc75371c9287d3ba (patch)
tree9ed56f99b9d2564f9250d3754e429eb0c8b43323 /src/video_core/rasterizer_interface.h
parentMerge pull request #255 from Subv/sd_card (diff)
parentgl_rasterizer: Fake render in green, because it's cooler. (diff)
downloadyuzu-a10baacf9e5ab48af7fb0ccbdc75371c9287d3ba.tar.gz
yuzu-a10baacf9e5ab48af7fb0ccbdc75371c9287d3ba.tar.xz
yuzu-a10baacf9e5ab48af7fb0ccbdc75371c9287d3ba.zip
Merge pull request #265 from bunnei/tegra-progress-2
Tegra progress 2
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-rw-r--r--src/video_core/rasterizer_interface.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index 6c7bd0826..a493e1d60 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/gpu.h"
8 9
9struct ScreenInfo; 10struct ScreenInfo;
10 11
@@ -24,14 +25,14 @@ public:
24 virtual void FlushAll() = 0; 25 virtual void FlushAll() = 0;
25 26
26 /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory 27 /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory
27 virtual void FlushRegion(PAddr addr, u32 size) = 0; 28 virtual void FlushRegion(VAddr addr, u64 size) = 0;
28 29
29 /// Notify rasterizer that any caches of the specified region should be invalidated 30 /// Notify rasterizer that any caches of the specified region should be invalidated
30 virtual void InvalidateRegion(PAddr addr, u32 size) = 0; 31 virtual void InvalidateRegion(VAddr addr, u64 size) = 0;
31 32
32 /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory 33 /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory
33 /// and invalidated 34 /// and invalidated
34 virtual void FlushAndInvalidateRegion(PAddr addr, u32 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 display transfer with is_texture_copy = 0
37 virtual bool AccelerateDisplayTransfer(const void* config) { 38 virtual bool AccelerateDisplayTransfer(const void* config) {
@@ -49,7 +50,8 @@ public:
49 } 50 }
50 51
51 /// Attempt to use a faster method to display the framebuffer to screen 52 /// Attempt to use a faster method to display the framebuffer to screen
52 virtual bool AccelerateDisplay(const void* config, PAddr framebuffer_addr, u32 pixel_stride, 53 virtual bool AccelerateDisplay(const Tegra::FramebufferConfig& framebuffer,
54 VAddr framebuffer_addr, u32 pixel_stride,
53 ScreenInfo& screen_info) { 55 ScreenInfo& screen_info) {
54 return false; 56 return false;
55 } 57 }