diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-18 01:19:47 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:38:34 +0200 |
commit | 6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4 (patch) | |
tree | ba581e42aa67d799b8f7dfbe890c8957a4d652ce | |
parent | texture_cache: Implement texception detection and texture barriers. (diff) | |
download | yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar.gz yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar.bz2 yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar.lz yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar.xz yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.tar.zst yuzu-6acdae0e4c9d0c20f668cd86250b5d5b0dbd70c4.zip |
-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, params.type = GetFormatType(params.pixel_format); if (entry.IsShadow() && params.type == SurfaceType::ColorTexture) { switch (params.pixel_format) { + case PixelFormat::R16U: case PixelFormat::R16F: { params.pixel_format = PixelFormat::Z16; 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: for (u32 i = 0; i < max_formats; i++) { 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::Z32FS8, PixelFormat::RG32F); sampled_textures_stack.resize(64); |