summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-11-17 21:04:38 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-11-17 21:04:38 +0100
commit2348eb41f38a6e52e52d121adfc4c605763209a7 (patch)
treeb4bdeb539cc1030fb43f17edbdfee459ca2b843a /src/video_core/surface.cpp
parentMerge pull request #7219 from FernandoS27/aristotles-right-testicle (diff)
downloadyuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar.gz
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar.bz2
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar.lz
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar.xz
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.tar.zst
yuzu-2348eb41f38a6e52e52d121adfc4c605763209a7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/surface.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 58d262446..a36015c8c 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -82,6 +82,8 @@ PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format) {
return PixelFormat::D32_FLOAT;
case Tegra::DepthFormat::D16_UNORM:
return PixelFormat::D16_UNORM;
+ case Tegra::DepthFormat::S8_UINT:
+ return PixelFormat::S8_UINT;
case Tegra::DepthFormat::D32_FLOAT_S8X24_UINT:
return PixelFormat::D32_FLOAT_S8_UINT;
default:
@@ -214,6 +216,11 @@ SurfaceType GetFormatType(PixelFormat pixel_format) {
}
if (static_cast<std::size_t>(pixel_format) <
+ static_cast<std::size_t>(PixelFormat::MaxStencilFormat)) {
+ return SurfaceType::Stencil;
+ }
+
+ if (static_cast<std::size_t>(pixel_format) <
static_cast<std::size_t>(PixelFormat::MaxDepthStencilFormat)) {
return SurfaceType::DepthStencil;
}