diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-11 00:39:37 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-11 01:00:09 +0200 |
commit | 20c2928c2b157b8a322a128732cd00cabbfa9d6d (patch) | |
tree | f7db86f1b27135d7cc352c6eb5de4f2949d7e0f4 /src/video_core/gpu.cpp | |
parent | renderer_base: Remove unused kFramebuffer enumeration (diff) | |
download | yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.gz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.bz2 yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.lz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.xz yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.tar.zst yuzu-20c2928c2b157b8a322a128732cd00cabbfa9d6d.zip |
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r-- | src/video_core/gpu.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 4ff4d71c5..40d323956 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "common/assert.h" #include "video_core/engines/fermi_2d.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/engines/maxwell_compute.h" @@ -11,6 +12,15 @@ namespace Tegra { +u32 FramebufferConfig::BytesPerPixel(PixelFormat format) { + switch (format) { + case PixelFormat::ABGR8: + return 4; + } + + UNREACHABLE(); +} + GPU::GPU(VideoCore::RasterizerInterface& rasterizer) { memory_manager = std::make_unique<MemoryManager>(); maxwell_3d = std::make_unique<Engines::Maxwell3D>(rasterizer, *memory_manager); |