diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-01-30 03:04:46 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-01-30 03:32:12 +0100 |
commit | 720ff380978e4e353ec878953c261b3a1b6451d7 (patch) | |
tree | 02a7fe6182ec18f933ede578a4602e0cc757b6d0 /src/video_core/renderer_opengl/gl_compute_pipeline.h | |
parent | gl_graphics_pipeline: Force context flush when loading shader cache (diff) | |
download | yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar.gz yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar.bz2 yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar.lz yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar.xz yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.tar.zst yuzu-720ff380978e4e353ec878953c261b3a1b6451d7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_compute_pipeline.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_compute_pipeline.h b/src/video_core/renderer_opengl/gl_compute_pipeline.h index 6534dec32..9bcc72b59 100644 --- a/src/video_core/renderer_opengl/gl_compute_pipeline.h +++ b/src/video_core/renderer_opengl/gl_compute_pipeline.h @@ -50,7 +50,8 @@ class ComputePipeline { public: explicit ComputePipeline(const Device& device, TextureCache& texture_cache_, BufferCache& buffer_cache_, ProgramManager& program_manager_, - const Shader::Info& info_, std::string code, std::vector<u32> code_v); + const Shader::Info& info_, std::string code, std::vector<u32> code_v, + bool force_context_flush = false); void Configure(); @@ -65,6 +66,8 @@ public: } private: + void WaitForBuild(); + TextureCache& texture_cache; BufferCache& buffer_cache; Tegra::MemoryManager* gpu_memory; @@ -81,6 +84,11 @@ private: bool use_storage_buffers{}; bool writes_global_memory{}; + + std::mutex built_mutex; + std::condition_variable built_condvar; + OGLSync built_fence{}; + bool is_built{false}; }; } // namespace OpenGL |