diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-03-11 23:17:09 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-03-11 23:17:09 +1100 |
| commit | 6c7c4770e840a467ec55266bedb20eaa21a9ae86 (patch) | |
| tree | ac26f6d1e374486204cbeb6c1dc6a2ad5c28728c /src/queue_context.cc | |
| parent | dcfcd17a2b38c4efd50063a8c84821ac5fce5b1d (diff) | |
Don't inject timestamps when we have no reason to
Diffstat (limited to 'src/queue_context.cc')
| -rw-r--r-- | src/queue_context.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/queue_context.cc b/src/queue_context.cc index 9fe25b3..a3ff8a3 100644 --- a/src/queue_context.cc +++ b/src/queue_context.cc @@ -390,6 +390,14 @@ bool QueueContext::should_inject_timestamps() const { return false; } + // Don't bother injecting timestamps during queue submission if both AL1 and + // AL2 are disabled. + if (!this->device_context.was_antilag_requested && + !pd.instance.layer.is_antilag_1_enabled) { + + return false; + } + assert(pd.queue_properties); const auto& queue_props = *pd.queue_properties; assert(this->queue_family_index < std::size(queue_props)); |
