mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-23 23:15:41 +01:00
texture_cache: Correct format R16U as sibling
This commit is contained in:
parent
d7587842eb
commit
6acdae0e4c
@ -76,6 +76,7 @@ SurfaceParams SurfaceParams::CreateForTexture(Core::System& system,
|
|||||||
params.type = GetFormatType(params.pixel_format);
|
params.type = GetFormatType(params.pixel_format);
|
||||||
if (entry.IsShadow() && params.type == SurfaceType::ColorTexture) {
|
if (entry.IsShadow() && params.type == SurfaceType::ColorTexture) {
|
||||||
switch (params.pixel_format) {
|
switch (params.pixel_format) {
|
||||||
|
case PixelFormat::R16U:
|
||||||
case PixelFormat::R16F: {
|
case PixelFormat::R16F: {
|
||||||
params.pixel_format = PixelFormat::Z16;
|
params.pixel_format = PixelFormat::Z16;
|
||||||
break;
|
break;
|
||||||
|
@ -258,7 +258,7 @@ protected:
|
|||||||
for (u32 i = 0; i < max_formats; i++) {
|
for (u32 i = 0; i < max_formats; i++) {
|
||||||
siblings_table[static_cast<PixelFormat>(i)] = PixelFormat::Invalid;
|
siblings_table[static_cast<PixelFormat>(i)] = PixelFormat::Invalid;
|
||||||
}
|
}
|
||||||
make_siblings(PixelFormat::Z16, PixelFormat::R16F);
|
make_siblings(PixelFormat::Z16, PixelFormat::R16U);
|
||||||
make_siblings(PixelFormat::Z32F, PixelFormat::R32F);
|
make_siblings(PixelFormat::Z32F, PixelFormat::R32F);
|
||||||
make_siblings(PixelFormat::Z32FS8, PixelFormat::RG32F);
|
make_siblings(PixelFormat::Z32FS8, PixelFormat::RG32F);
|
||||||
sampled_textures_stack.resize(64);
|
sampled_textures_stack.resize(64);
|
||||||
|
Loading…
Reference in New Issue
Block a user