mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
Update gpu_format.cpp (#1003)
* Update gpu_format.cpp Fix SRGB render-target formats (k8Srgb, k8_8Srgb) Corrects render_target_bytes_per_element for SRGB formats: - k8Srgb: 1 byte (was 0) - k8_8Srgb: 2 bytes (was 0) These formats appear in ChannelLayout::k8 and k8_8 render-target paths. Incorrect RT byte sizes caused TextureCache render-target validation failures in Lucky's Tale * Fix narrow sRGB render-target format tests --------- Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
@@ -61,8 +61,8 @@ constexpr FormatInfo kFormatInfo[] = {
|
||||
{BufferFormat::k32_32_32_32UInt, 16, 0, 16, true, true},
|
||||
{BufferFormat::k32_32_32_32SInt, 16, 0, 16, true, false, true},
|
||||
{BufferFormat::k32_32_32_32Float, 16, 0, 16, true, false},
|
||||
{BufferFormat::k8Srgb, 1, 0, 0, true, false},
|
||||
{BufferFormat::k8_8Srgb, 2, 0, 0, true, false},
|
||||
{BufferFormat::k8Srgb, 1, 0, 1, true, false},
|
||||
{BufferFormat::k8_8Srgb, 2, 0, 2, true, false},
|
||||
{BufferFormat::k8_8_8_8Srgb, 4, 0, 4, true, false},
|
||||
{BufferFormat::k9_9_9_5Float, 4, 0, 0, true, false},
|
||||
{BufferFormat::k5_6_5UNorm, 2, 0, 2, true, false},
|
||||
|
||||
Reference in New Issue
Block a user