VERY experimental Nintendo Switch 2 emulator
C++
Revert "[video_core] Improve asynchronous shader building (#2560)" (#4512)
John26a03d247378
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cppindex df69eb97f5..277cf222fa 100644--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp@@ -414,6 +414,11 @@ GraphicsPipeline* ShaderCache::BuiltPipeline(GraphicsPipeline* pipeline) const nif (!use_asynchronous_shaders) {return pipeline;}+ // If something is using depth, we can assume that games are not rendering anything which+ // will be used one time.+ if (maxwell3d->regs.zeta_enable) {+ return nullptr;+ }// If games are using a small index count, we can assume these are full screen quads.// Usually these shaders are only used once for building textures so we can assume they// can't be built asyncdiff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cppindex e9403580d5..d4ffcd8317 100644--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp@@ -789,6 +789,11 @@ GraphicsPipeline* PipelineCache::BuiltPipeline(GraphicsPipeline* pipeline) constif (!use_asynchronous_shaders) {return pipeline;}+ // If something is using depth, we can assume that games are not rendering anything which+ // will be used one time.+ if (maxwell3d->regs.zeta_enable) {+ return nullptr;+ }// If games are using a small index count, we can assume these are full screen quads.// Usually these shaders are only used once for building textures so we can assume they// can't be built async