Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layers: Do not create wait timepoint after signal retired #9004

Merged

Conversation

artem-lunarg
Copy link
Contributor

@artem-lunarg artem-lunarg commented Dec 11, 2024

This is follow-up to #9000 and reproduces another assert #8989 (comment)

Wait timepoint should not be registered when signal is already retired.
In this case wait should be resolved againt completed_ state.

There is assert in Semaphore::CanBinaryBeSignaled that checks that
binary timepoint has at least signal op. The new tests will trigger this
assert in case of a regression.

There might be other places to adjust, will continue to inspect code.

Addresses assert part of #9009

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 322262.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18295 running.

}

if (payload <= completed_.payload) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously this was only for timeline semaphores. The test shows it's also needed for binary semaphores.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18295 aborted.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 322458.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18301 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18301 aborted.

This is follow-up to
8a41fe2 - Fix empty timeline assumption in Semaphore::EnqueueWait

Wait timepoint should not be registered when signal is already retired.
In this case wait should be resolved againt completed_ state.

There is assert in Semaphore::CanBinaryBeSignaled that checks that
binary timepoint has at least signal op. The new tests will trigger this
assert in case of a regression.
@artem-lunarg artem-lunarg force-pushed the artem-semaphore-wait-update branch from b6ea498 to 5b01c31 Compare December 12, 2024 10:31
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 322681.

@artem-lunarg artem-lunarg marked this pull request as ready for review December 12, 2024 10:34
@artem-lunarg artem-lunarg requested a review from a team as a code owner December 12, 2024 10:34
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18310 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18310 passed.

@artem-lunarg artem-lunarg merged commit b10d21a into KhronosGroup:main Dec 12, 2024
21 checks passed
@artem-lunarg artem-lunarg deleted the artem-semaphore-wait-update branch December 12, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants