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

remove cvk_command_combine in favor of cvk_event_combine #526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjodinchr
Copy link
Contributor

cvk_command_combine prevents optimization where commands could be batch.
It is needed to have a single event representing the execution of the group of commands. This PR creates a new event (cvk_event_combine) which allows to have a single event grouping several events, thus keeping the single event for the group of commands.

It also allows to make do_action a private function, thus having it called only in one place. This is very convenient to implement future optimization (using VkSemaphore).

@rjodinchr
Copy link
Contributor Author

It can feel like a lot of change, but most of it is just code being moved around.

It is passing the full CTS on Nvidia and Swiftshader on my side.

cvk_command_combine prevents optimization where commands could be batch.
It is needed to have a single event representing the execution of the
group of commands. This PR creates a new event (cvk_event_combine)
which allows to have a single event grouping several events, thus
keeping the single event for the group of commands.

It also allows to make do_action a private function, thus having it
called only in one place. This is very convenient to implement future
optimization (using VkSemaphore).
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.

1 participant