Fixup depth mode init value to allow ignoring redundant calls

This commit is contained in:
Billy Laws 2022-03-20 17:56:48 +00:00 committed by PixelyIon
parent 7a5c771f44
commit 5c387f5c5a
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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;
}