mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 08:39:16 +01:00
Fixup depth mode init value to allow ignoring redundant calls
This commit is contained in:
parent
7a5c771f44
commit
5c387f5c5a
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user