summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-15 09:25:15 -0400
committerGravatar GitHub2018-08-15 09:25:15 -0400
commit40f83fee6a5add0249adfe0f9258805054c0aaf9 (patch)
treed6e6c6828c162c52fb705150333448381aca53f5 /src
parentMerge pull request #1076 from bunnei/format-cleanup (diff)
parentgl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat. (diff)
downloadyuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.gz
yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.tar.xz
yuzu-40f83fee6a5add0249adfe0f9258805054c0aaf9.zip
Merge pull request #1077 from bunnei/rgba16u
gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat.
Diffstat (limited to 'src')
-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 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 {
372 static_cast<u32>(component_type)); 372 static_cast<u32>(component_type));
373 UNREACHABLE(); 373 UNREACHABLE();
374 case Tegra::Texture::TextureFormat::R16_G16_B16_A16: 374 case Tegra::Texture::TextureFormat::R16_G16_B16_A16:
375 return PixelFormat::RGBA16F; 375 switch (component_type) {
376 case Tegra::Texture::ComponentType::UNORM:
377 return PixelFormat::RGBA16U;
378 case Tegra::Texture::ComponentType::FLOAT:
379 return PixelFormat::RGBA16F;
380 }
381 LOG_CRITICAL(HW_GPU, "Unimplemented component_type={}",
382 static_cast<u32>(component_type));
383 UNREACHABLE();
376 case Tegra::Texture::TextureFormat::BF10GF11RF11: 384 case Tegra::Texture::TextureFormat::BF10GF11RF11:
377 switch (component_type) { 385 switch (component_type) {
378 case Tegra::Texture::ComponentType::FLOAT: 386 case Tegra::Texture::ComponentType::FLOAT: