From 88cc696c7f7ee49bb8a9c552722f4db8d17a7247 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 6 Nov 2022 19:22:20 +0000 Subject: [PATCH] Only use 2D array depth targets when depth > 1 --- .../cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp index be3dc80f..0bb14d14 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp @@ -213,7 +213,7 @@ namespace skyline::gpu::interconnect::maxwell3d { bool thirdDimensionDefinesArraySize{engine->ztSize.control == engine::ZtSize::Control::ThirdDimensionDefinesArraySize}; if (engine->ztSize.control == engine::ZtSize::Control::ThirdDimensionDefinesArraySize) { guest.layerCount = engine->ztSize.thirdDimension; - guest.viewType = vk::ImageViewType::e2DArray; + guest.viewType = engine->ztSize.thirdDimension > 1 ? vk::ImageViewType::e2DArray : vk::ImageViewType::e2D; } else if (engine->ztSize.control == engine::ZtSize::Control::ArraySizeIsOne) { guest.layerCount = 1; guest.viewType = vk::ImageViewType::e2D;