summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index 43940bd6d..2de25e9ef 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -54,26 +54,26 @@ struct SwapBuffersCommand final {
54 54
55/// Command to signal to the GPU thread to flush a region 55/// Command to signal to the GPU thread to flush a region
56struct FlushRegionCommand final { 56struct FlushRegionCommand final {
57 explicit constexpr FlushRegionCommand(VAddr addr_, u64 size_) : addr{addr_}, size{size_} {} 57 explicit constexpr FlushRegionCommand(DAddr addr_, u64 size_) : addr{addr_}, size{size_} {}
58 58
59 VAddr addr; 59 DAddr addr;
60 u64 size; 60 u64 size;
61}; 61};
62 62
63/// Command to signal to the GPU thread to invalidate a region 63/// Command to signal to the GPU thread to invalidate a region
64struct InvalidateRegionCommand final { 64struct InvalidateRegionCommand final {
65 explicit constexpr InvalidateRegionCommand(VAddr addr_, u64 size_) : addr{addr_}, size{size_} {} 65 explicit constexpr InvalidateRegionCommand(DAddr addr_, u64 size_) : addr{addr_}, size{size_} {}
66 66
67 VAddr addr; 67 DAddr addr;
68 u64 size; 68 u64 size;
69}; 69};
70 70
71/// Command to signal to the GPU thread to flush and invalidate a region 71/// Command to signal to the GPU thread to flush and invalidate a region
72struct FlushAndInvalidateRegionCommand final { 72struct FlushAndInvalidateRegionCommand final {
73 explicit constexpr FlushAndInvalidateRegionCommand(VAddr addr_, u64 size_) 73 explicit constexpr FlushAndInvalidateRegionCommand(DAddr addr_, u64 size_)
74 : addr{addr_}, size{size_} {} 74 : addr{addr_}, size{size_} {}
75 75
76 VAddr addr; 76 DAddr addr;
77 u64 size; 77 u64 size;
78}; 78};
79 79
@@ -122,13 +122,13 @@ public:
122 void SwapBuffers(const Tegra::FramebufferConfig* framebuffer); 122 void SwapBuffers(const Tegra::FramebufferConfig* framebuffer);
123 123
124 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory 124 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
125 void FlushRegion(VAddr addr, u64 size); 125 void FlushRegion(DAddr addr, u64 size);
126 126
127 /// Notify rasterizer that any caches of the specified region should be invalidated 127 /// Notify rasterizer that any caches of the specified region should be invalidated
128 void InvalidateRegion(VAddr addr, u64 size); 128 void InvalidateRegion(DAddr addr, u64 size);
129 129
130 /// Notify rasterizer that any caches of the specified region should be flushed and invalidated 130 /// Notify rasterizer that any caches of the specified region should be flushed and invalidated
131 void FlushAndInvalidateRegion(VAddr addr, u64 size); 131 void FlushAndInvalidateRegion(DAddr addr, u64 size);
132 132
133 void TickGPU(); 133 void TickGPU();
134 134