diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index f97f4c1e..afaba6df 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -746,7 +746,9 @@ namespace skyline::gpu::interconnect { ShaderSet shaders; PipelineStages pipelineStages; - ShaderCompiler::RuntimeInfo runtimeInfo{}; + ShaderCompiler::RuntimeInfo runtimeInfo{ + .convert_depth_mode = true // This is required for the default GPU register state + }; constexpr static size_t PipelineUniqueDescriptorTypeCount{2}; //!< The amount of unique descriptor types that may be bound to a pipeline constexpr static size_t MaxPipelineDescriptorWriteCount{maxwell3d::PipelineStageCount * PipelineUniqueDescriptorTypeCount}; //!< The maxium amount of descriptors writes that are used to bind a pipeline diff --git a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp index b9ad83b4..5d1ef3d7 100644 --- a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp +++ b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp @@ -570,6 +570,10 @@ namespace skyline::soc::gm20b::engine::maxwell3d { context.SetTexturePoolMaximumIndex(maximumIndex); }) + MAXWELL3D_CASE(depthMode, { + context.SetDepthMode(depthMode); + }) + default: break; } @@ -668,10 +672,6 @@ namespace skyline::soc::gm20b::engine::maxwell3d { BOOST_PP_REPEAT(16, CBUF_UPDATE_CALLBACKS, 0) #undef CBUF_UPDATE_CALLBACKS - MAXWELL3D_CASE(depthMode, { - context.SetDepthMode(depthMode); - }) - default: break; }