diff options
author | Subv <subv2112@gmail.com> | 2018-04-18 20:51:09 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-18 21:17:27 +0200 |
commit | b2c1672e108333bb38ae15f6c6677a0f3719896a (patch) | |
tree | bba88a87fb5ea959909581bc610c3d1ee443cecf /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #349 from Subv/texturing (diff) | |
download | yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.gz yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.bz2 yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.lz yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.xz yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.zst yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 26d6c3061..0f8f14404 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -52,7 +52,7 @@ enum class ScaleMatch { struct SurfaceParams { enum class PixelFormat { - RGBA8 = 0, + ABGR8 = 0, DXT1 = 1, Invalid = 255, }; @@ -71,7 +71,7 @@ struct SurfaceParams { return 0; constexpr std::array<unsigned int, 2> bpp_table = { - 32, // RGBA8 + 32, // ABGR8 64, // DXT1 }; @@ -85,7 +85,7 @@ struct SurfaceParams { static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) { switch (format) { case Tegra::RenderTargetFormat::RGBA8_UNORM: - return PixelFormat::RGBA8; + return PixelFormat::ABGR8; default: NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); UNREACHABLE(); @@ -95,7 +95,7 @@ struct SurfaceParams { static PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format) { switch (format) { case Tegra::FramebufferConfig::PixelFormat::ABGR8: - return PixelFormat::RGBA8; + return PixelFormat::ABGR8; default: NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); UNREACHABLE(); @@ -106,7 +106,7 @@ struct SurfaceParams { // TODO(Subv): Properly implement this switch (format) { case Tegra::Texture::TextureFormat::A8R8G8B8: - return PixelFormat::RGBA8; + return PixelFormat::ABGR8; case Tegra::Texture::TextureFormat::DXT1: return PixelFormat::DXT1; default: @@ -118,7 +118,7 @@ struct SurfaceParams { static Tegra::Texture::TextureFormat TextureFormatFromPixelFormat(PixelFormat format) { // TODO(Subv): Properly implement this switch (format) { - case PixelFormat::RGBA8: + case PixelFormat::ABGR8: return Tegra::Texture::TextureFormat::A8R8G8B8; case PixelFormat::DXT1: return Tegra::Texture::TextureFormat::DXT1; @@ -148,7 +148,7 @@ struct SurfaceParams { } static SurfaceType GetFormatType(PixelFormat pixel_format) { - if ((unsigned int)pixel_format <= static_cast<unsigned int>(PixelFormat::RGBA8)) { + if ((unsigned int)pixel_format <= static_cast<unsigned int>(PixelFormat::ABGR8)) { return SurfaceType::Color; } |