commit | e278da130ce2f40533dfdb64f7f2240beacf1691 | [log] [tgz] |
---|---|---|
author | Matt Buckley <mattbuckley@google.com> | Tue Jun 20 22:51:05 2023 +0000 |
committer | Matt Buckley <mattbuckley@google.com> | Mon Jun 26 22:21:16 2023 +0000 |
tree | 547794f757706511feee7e13f2f0b545af1ee690 | |
parent | 334d43412236fdbf44271a0b5f032881d758ec01 [diff] |
Update ShaderCache to support shared locking Currently, the shadercache can lock for a long time when writing the cache to disk while vulkan is trying to access it, causing frame drops. However, neither operation actually requires write access. By using shared_locks, both operations can happen concurrently eliminating this contention and saving the frame(s). Test: atest hwui_unit_tests:ShaderCacheTest Bug: 288252750 Change-Id: I26c5bee001d44cdd75766e9cb5974bd9337819ab