summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 544340ecd..78bc0601a 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -95,14 +95,10 @@ class DebugContext;
95struct FramebufferConfig { 95struct FramebufferConfig {
96 enum class PixelFormat : u32 { 96 enum class PixelFormat : u32 {
97 ABGR8 = 1, 97 ABGR8 = 1,
98 RGB565 = 4,
98 BGRA8 = 5, 99 BGRA8 = 5,
99 }; 100 };
100 101
101 /**
102 * Returns the number of bytes per pixel.
103 */
104 static u32 BytesPerPixel(PixelFormat format);
105
106 VAddr address; 102 VAddr address;
107 u32 offset; 103 u32 offset;
108 u32 width; 104 u32 width;
@@ -253,8 +249,7 @@ public:
253 virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0; 249 virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0;
254 250
255 /// Swap buffers (render frame) 251 /// Swap buffers (render frame)
256 virtual void SwapBuffers( 252 virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0;
257 std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) = 0;
258 253
259 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory 254 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
260 virtual void FlushRegion(CacheAddr addr, u64 size) = 0; 255 virtual void FlushRegion(CacheAddr addr, u64 size) = 0;