Revert "Implement BGRA8 framebuffer format"

This reverts commit f6e998f6ad.

Conflicts:
	src/video_core/gpu.h
	src/video_core/surface.cpp
This commit is contained in:
greggameplayer
2019-02-09 23:47:46 +01:00
parent 92bd4fc8eb
commit 5abf93266e
3 changed files with 0 additions and 6 deletions

View File

@@ -16,7 +16,6 @@ namespace Tegra {
u32 FramebufferConfig::BytesPerPixel(PixelFormat format) { u32 FramebufferConfig::BytesPerPixel(PixelFormat format) {
switch (format) { switch (format) {
case PixelFormat::ABGR8: case PixelFormat::ABGR8:
case PixelFormat::BGRA8:
return 4; return 4;
case PixelFormat::RGB565: case PixelFormat::RGB565:
return 2; return 2;

View File

@@ -81,7 +81,6 @@ struct FramebufferConfig {
enum class PixelFormat : u32 { enum class PixelFormat : u32 {
ABGR8 = 1, ABGR8 = 1,
RGB565 = 4, RGB565 = 4,
BGRA8 = 5,
}; };
/** /**

View File

@@ -408,10 +408,6 @@ PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat
switch (format) { switch (format) {
case Tegra::FramebufferConfig::PixelFormat::ABGR8: case Tegra::FramebufferConfig::PixelFormat::ABGR8:
return PixelFormat::ABGR8U; return PixelFormat::ABGR8U;
case Tegra::FramebufferConfig::PixelFormat::BGRA8:
return PixelFormat::BGRA8;
case Tegra::FramebufferConfig::PixelFormat::RGB565:
return PixelFormat::RGB565U;
default: default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE(); UNREACHABLE();