aboutsummaryrefslogtreecommitdiff
path: root/src/frame_span.cc
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-04-08 12:55:29 +1000
committerNicolas James <nj3ahxac@gmail.com>2026-04-08 12:55:29 +1000
commit453d5b0052bd17ed74d47570ffff403ffcd9ebb3 (patch)
tree14ab71a5ff27d5485faea061f6e8fe26c0e19640 /src/frame_span.cc
parenteb9719cc8b9a308654ccd2c3bce8a7047b6e2a1a (diff)
Fix refactor latency regression for VK_NV_LowLatency2 by checking if work has already completed
Diffstat (limited to 'src/frame_span.cc')
-rw-r--r--src/frame_span.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frame_span.cc b/src/frame_span.cc
index 732d6f3..8764aa1 100644
--- a/src/frame_span.cc
+++ b/src/frame_span.cc
@@ -21,4 +21,11 @@ void FrameSpan::await_completed() const {
this->head_handle->await_end();
}
+bool FrameSpan::has_completed() const {
+ if (this->tail_handle) {
+ return this->tail_handle->has_end();
+ }
+ return this->head_handle->has_end();
+}
+
} // namespace low_latency \ No newline at end of file