From 9a76e94b3d854fadeac19a097538a24f9b3fb7b7 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 21 Aug 2019 01:55:25 -0300 Subject: gpu: Change optional> to T* for FramebufferConfig --- src/video_core/gpu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/video_core/gpu.h') diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 87c96f46b..168a88692 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -247,8 +247,7 @@ public: virtual void PushGPUEntries(Tegra::CommandList&& entries) = 0; /// Swap buffers (render frame) - virtual void SwapBuffers( - std::optional> framebuffer) = 0; + virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0; /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory virtual void FlushRegion(CacheAddr addr, u64 size) = 0; -- cgit v1.2.3 From 8ad7268c75b693a3049e854aa0262af8bfda7d21 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 21 Aug 2019 02:07:56 -0300 Subject: renderer_opengl: Use VideoCore pixel format --- src/video_core/gpu.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/video_core/gpu.h') diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 168a88692..dea9dfef0 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -94,11 +94,6 @@ struct FramebufferConfig { BGRA8 = 5, }; - /** - * Returns the number of bytes per pixel. - */ - static u32 BytesPerPixel(PixelFormat format); - VAddr address; u32 offset; u32 width; -- cgit v1.2.3 From 80702aa88f6f448decfbb06dc14db470c221dd38 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 21 Aug 2019 02:22:54 -0300 Subject: renderer_opengl: Implement RGB565 framebuffer format --- src/video_core/gpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/video_core/gpu.h') diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index dea9dfef0..1a7f5bdf2 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -91,6 +91,7 @@ class DebugContext; struct FramebufferConfig { enum class PixelFormat : u32 { ABGR8 = 1, + RGB565 = 4, BGRA8 = 5, }; -- cgit v1.2.3