diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-13 23:06:45 +0200 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-13 23:06:45 +0200 |
commit | f9ef721ca6f2d562c0174fd091c4135877c7e371 (patch) | |
tree | 7b255971e432d9217998d6d9ef49f6ab0f101ac2 /src | |
parent | Merge pull request #11202 from abouvier/vulkan-config (diff) | |
download | yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar.gz yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar.bz2 yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar.lz yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar.xz yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.tar.zst yuzu-f9ef721ca6f2d562c0174fd091c4135877c7e371.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_pipeline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp index f822fa856..c78bdf17c 100644 --- a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp +++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp @@ -220,7 +220,8 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c ASSERT(num_textures <= MAX_TEXTURES); ASSERT(num_images <= MAX_IMAGES); - const bool assembly_shaders{assembly_programs[0].handle != 0}; + const auto backend = device.GetShaderBackend(); + const bool assembly_shaders{backend == Settings::ShaderBackend::Glasm}; use_storage_buffers = !assembly_shaders || num_storage_buffers <= device.GetMaxGLASMStorageBufferBlocks(); writes_global_memory &= !use_storage_buffers; @@ -230,7 +231,6 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c GenerateTransformFeedbackState(); } const bool in_parallel = thread_worker != nullptr; - const auto backend = device.GetShaderBackend(); auto func{[this, sources_ = std::move(sources), sources_spirv_ = std::move(sources_spirv), shader_notify, backend, in_parallel, force_context_flush](ShaderContext::Context*) mutable { |