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: Move command counting to CMD_BUFFER_STATE::RecordCmd() #3184

Merged
merged 3 commits into from
Aug 18, 2021

Conversation

jeremyg-lunarg
Copy link
Contributor

This method can be overriden by validation objects to do more detailed tracking, if desired.

Move some parts of command recording to CMD_BUFFER_STATE.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 21545.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 4451 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 4451 failed.

This method can be overriden by validation objects to do more
detailed tracking, if desired. Add RecordStateCmd() and
RecordTransferCmd() to clean up repeated code blobs found in
many commands.
Move some of the sync related helper methods to the CMD_BUFFER_STATE
file, before moving them to that class. The only part of this change
that isn't a straight cut / paste is
ValidationStateTracker::RecordCmdWriteTimestamp() which will only
exist until the next commit.
Convert sync related ValidationStateTracker methods to be
CMD_BUFFER_STATE methods. This change also adds RecordCmd()
calls to them.
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 21604.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 4453 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 4453 passed.

@jeremyg-lunarg
Copy link
Contributor Author

FYI @nadavgevaAMD you should be able to override RecordCmd() to track all of the commands in a vector.

@jzulauf-lunarg
Copy link
Contributor

@jeremyg-lunarg -- I wonder if we should coordinate command tagging efforts s.t. tagging is consistent between syncval and the other efforts.

Copy link
Contributor

@ncesario-lunarg ncesario-lunarg left a comment

Choose a reason for hiding this comment

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

Looks like a nice cleanup!

@jeremyg-lunarg
Copy link
Contributor Author

@jeremyg-lunarg -- I wonder if we should coordinate command tagging efforts s.t. tagging is consistent between syncval and the other efforts.

Sure... Lets talk offline.

@jeremyg-lunarg jeremyg-lunarg merged commit cefa7fd into KhronosGroup:master Aug 18, 2021
@jeremyg-lunarg jeremyg-lunarg deleted the jeremyg-record-cmd branch August 18, 2021 16:19
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.

4 participants