summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h10
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 37eef5ad0..dbacb7f3d 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -354,7 +354,15 @@ struct SurfaceParams {
354 static_cast<u32>(component_type)); 354 static_cast<u32>(component_type));
355 UNREACHABLE(); 355 UNREACHABLE();
356 case Tegra::Texture::TextureFormat::R16_G16_B16_A16: 356 case Tegra::Texture::TextureFormat::R16_G16_B16_A16:
357 return PixelFormat::RGBA16F; 357 switch (component_type) {
358 case Tegra::Texture::ComponentType::UNORM:
359 return PixelFormat::RGBA16U;
360 case Tegra::Texture::ComponentType::FLOAT:
361 return PixelFormat::RGBA16F;
362 }
363 LOG_CRITICAL(HW_GPU, "Unimplemented component_type={}",
364 static_cast<u32>(component_type));
365 UNREACHABLE();
358 case Tegra::Texture::TextureFormat::BF10GF11RF11: 366 case Tegra::Texture::TextureFormat::BF10GF11RF11:
359 return PixelFormat::R11FG11FB10F; 367 return PixelFormat::R11FG11FB10F;
360 case Tegra::Texture::TextureFormat::R32_G32_B32_A32: 368 case Tegra::Texture::TextureFormat::R32_G32_B32_A32: