Skip to content

Commit 07741f4

Browse files
committed
test: restore the correct Present jitter qualification
1 parent eca9f85 commit 07741f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎present_path.hpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3760,7 +3760,9 @@ inline ClaimedPresentFrame IdentifyPresentBaseFrame(ID3D12CommandQueue* native_q
37603760
.sequence = frame.sequence, .output_epoch = frame.swapchain_epoch,
37613761
.pass_count = RequestedStagePlan().At(stage_plan::Stage::PRESENT).count,
37623762
// Missing temporal inputs do not erase the proven SR-to-BB identity.
3763-
.reuse_edits = WantsPresentBaseFrames()};
3763+
.reuse_edits = WantsPresentBaseFrames() && contract.has_jitter
3764+
&& std::isfinite(contract.jitter_x) && std::isfinite(contract.jitter_y)
3765+
&& std::abs(contract.jitter_x) <= 0.5f && std::abs(contract.jitter_y) <= 0.5f};
37643766
if (repeated) {
37653767
if (order->entered.load() == frame.queue_entry
37663768
&& present_frame_policy::Classify(stream->base_frame_clock, current) == present_frame_policy::Claim::REPEATED) {

0 commit comments

Comments
 (0)