You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Impeller] Vulkan pipeline cache can miss async-compiled pipelines because the dirty flag is set on request #197081
P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team
In PipelineLibraryVK (impeller/renderer/backend/vulkan/pipeline_library_vk.cc), cache_dirty_ is set in GetPipeline when a pipeline is requested, before it's compiled. Compiles are usually asynchronous (compile_queue_ for graphics pipelines, the worker task runner for compute). So the periodic save in DidAcquireSurfaceFrame can run before a requested pipeline has finished compiling:
A pipeline is requested, which sets cache_dirty_ = true and queues the compile.
The 50-frame save runs. It clears cache_dirty_ and reads the Vulkan pipeline cache, which doesn't include the new
pipeline yet.
The compile finishes and the pipeline is added to the Vulkan pipeline cache, but nothing marks the cache dirty again.
P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Activity
Persist the vulkan shader cache on teardown (flutter#197017)