diff options
| -rw-r--r-- | src/video_core/texture_cache/surface_params.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp index 290ba438d..a670fc1a9 100644 --- a/src/video_core/texture_cache/surface_params.cpp +++ b/src/video_core/texture_cache/surface_params.cpp | |||
| @@ -76,6 +76,7 @@ SurfaceParams SurfaceParams::CreateForTexture(Core::System& system, | |||
| 76 | params.type = GetFormatType(params.pixel_format); | 76 | params.type = GetFormatType(params.pixel_format); |
| 77 | if (entry.IsShadow() && params.type == SurfaceType::ColorTexture) { | 77 | if (entry.IsShadow() && params.type == SurfaceType::ColorTexture) { |
| 78 | switch (params.pixel_format) { | 78 | switch (params.pixel_format) { |
| 79 | case PixelFormat::R16U: | ||
| 79 | case PixelFormat::R16F: { | 80 | case PixelFormat::R16F: { |
| 80 | params.pixel_format = PixelFormat::Z16; | 81 | params.pixel_format = PixelFormat::Z16; |
| 81 | break; | 82 | break; |
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 353fa4e31..78821503e 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -258,7 +258,7 @@ protected: | |||
| 258 | for (u32 i = 0; i < max_formats; i++) { | 258 | for (u32 i = 0; i < max_formats; i++) { |
| 259 | siblings_table[static_cast<PixelFormat>(i)] = PixelFormat::Invalid; | 259 | siblings_table[static_cast<PixelFormat>(i)] = PixelFormat::Invalid; |
| 260 | } | 260 | } |
| 261 | make_siblings(PixelFormat::Z16, PixelFormat::R16F); | 261 | make_siblings(PixelFormat::Z16, PixelFormat::R16U); |
| 262 | make_siblings(PixelFormat::Z32F, PixelFormat::R32F); | 262 | make_siblings(PixelFormat::Z32F, PixelFormat::R32F); |
| 263 | make_siblings(PixelFormat::Z32FS8, PixelFormat::RG32F); | 263 | make_siblings(PixelFormat::Z32FS8, PixelFormat::RG32F); |
| 264 | sampled_textures_stack.resize(64); | 264 | sampled_textures_stack.resize(64); |