diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-15 15:25:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 15:25:15 +0200 |
commit | 40f83fee6a5add0249adfe0f9258805054c0aaf9 (patch) | |
tree | d6e6c6828c162c52fb705150333448381aca53f5 | |
parent | Merge pull request #1076 from bunnei/format-cleanup (diff) | |
parent | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat. (diff) | |
download | yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.gz yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.bz2 yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.lz yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.xz yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.zst yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index aa222a516..55cf3782c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -372,7 +372,15 @@ struct SurfaceParams { static_cast<u32>(component_type)); UNREACHABLE(); case Tegra::Texture::TextureFormat::R16_G16_B16_A16: - return PixelFormat::RGBA16F; + switch (component_type) { + case Tegra::Texture::ComponentType::UNORM: + return PixelFormat::RGBA16U; + case Tegra::Texture::ComponentType::FLOAT: + return PixelFormat::RGBA16F; + } + LOG_CRITICAL(HW_GPU, "Unimplemented component_type={}", + static_cast<u32>(component_type)); + UNREACHABLE(); case Tegra::Texture::TextureFormat::BF10GF11RF11: switch (component_type) { case Tegra::Texture::ComponentType::FLOAT: |