From 7016d95eb17ee572fd6fe373f2b4c05e4a576dd6 Mon Sep 17 00:00:00 2001
From: gdkchan <gab.dark.100@gmail.com>
Date: Sun, 7 Feb 2021 20:23:56 -0300
Subject: Implement ETC2 (RGB) texture format (#2000)

* Implement ETC2 format

* Fix component counts for compressed formats
---
 Ryujinx.Graphics.Gpu/Image/FormatTable.cs | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'Ryujinx.Graphics.Gpu/Image/FormatTable.cs')

diff --git a/Ryujinx.Graphics.Gpu/Image/FormatTable.cs b/Ryujinx.Graphics.Gpu/Image/FormatTable.cs
index a1911d56..b4b88179 100644
--- a/Ryujinx.Graphics.Gpu/Image/FormatTable.cs
+++ b/Ryujinx.Graphics.Gpu/Image/FormatTable.cs
@@ -78,7 +78,9 @@ namespace Ryujinx.Graphics.Gpu.Image
             { 0xa4917, new FormatInfo(Format.Bc7Srgb,           4,  4,  16, 4) },
             { 0x7ff90, new FormatInfo(Format.Bc6HSfloat,        4,  4,  16, 4) },
             { 0x7ff91, new FormatInfo(Format.Bc6HUfloat,        4,  4,  16, 4) },
+            { 0x24906, new FormatInfo(Format.Etc2RgbUnorm,      4,  4,  8,  3) },
             { 0x2490b, new FormatInfo(Format.Etc2RgbaUnorm,     4,  4,  16, 4) },
+            { 0xa4906, new FormatInfo(Format.Etc2RgbSrgb,       4,  4,  8,  3) },
             { 0xa490b, new FormatInfo(Format.Etc2RgbaSrgb,      4,  4,  16, 4) },
             { 0x24940, new FormatInfo(Format.Astc4x4Unorm,      4,  4,  16, 4) },
             { 0x24950, new FormatInfo(Format.Astc5x4Unorm,      5,  4,  16, 4) },
-- 
cgit v1.2.3-70-g09d2