aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-02-18 14:51:21 +1100
committerNicolas James <nj3ahxac@gmail.com>2026-02-18 14:51:21 +1100
commitbb7c9b56e1710a7f2a3f4bb57f181e4fa196aba2 (patch)
treee9de8b88afcb339af9a7c87156511f6cc238f829 /src/queue_context.hh
parentb7414a760c183d4987090c110ddacca277983e17 (diff)
Fix missing cpu time between gpu presents, simplify timestamp->get_time()
Diffstat (limited to 'src/queue_context.hh')
-rw-r--r--src/queue_context.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/queue_context.hh b/src/queue_context.hh
index ed13465..219e6fb 100644
--- a/src/queue_context.hh
+++ b/src/queue_context.hh
@@ -48,10 +48,12 @@ class QueueContext final : public Context {
std::deque<submission_ptr_t> submissions;
// In flight frame submissions grouped together.
- // The first element in the vector refers to the first submission that
+ // The first element in the deque refers to the first submission that
// contributed to that frame. The last element is the last submission before
// present was called.
+ // std::size(submissions) >= 1 btw
struct Frame {
+ submission_ptr_t prev_frame_last_submit;
std::deque<submission_ptr_t> submissions;
std::uint64_t sequence;
};