diff options
| author | 2020-02-17 22:15:43 -0400 | |
|---|---|---|
| committer | 2020-04-22 11:36:11 -0400 | |
| commit | 57fdbd9b8992de4eaf2b262e6a2cece43c141894 (patch) | |
| tree | f7d0bb17daffdffa76c61bd39eef3fa766150d9c /src/video_core/texture_cache | |
| parent | GPU: Implement a Fence Manager. (diff) | |
| download | yuzu-57fdbd9b8992de4eaf2b262e6a2cece43c141894.tar.gz yuzu-57fdbd9b8992de4eaf2b262e6a2cece43c141894.tar.xz yuzu-57fdbd9b8992de4eaf2b262e6a2cece43c141894.zip | |
FenceManager: Implement should wait.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 6629c59ed..04fe69c11 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -322,6 +322,17 @@ public: | |||
| 322 | uncommited_flushes.reset(); | 322 | uncommited_flushes.reset(); |
| 323 | } | 323 | } |
| 324 | 324 | ||
| 325 | bool ShouldWaitAsyncFlushes() { | ||
| 326 | if (commited_flushes.empty()) { | ||
| 327 | return false; | ||
| 328 | } | ||
| 329 | auto& flush_list = commited_flushes.front(); | ||
| 330 | if (!flush_list) { | ||
| 331 | return false; | ||
| 332 | } | ||
| 333 | return true; | ||
| 334 | } | ||
| 335 | |||
| 325 | void PopAsyncFlushes() { | 336 | void PopAsyncFlushes() { |
| 326 | if (commited_flushes.empty()) { | 337 | if (commited_flushes.empty()) { |
| 327 | return; | 338 | return; |