-
Notifications
You must be signed in to change notification settings - Fork 397
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 state tracker methods to CMD_BUFFER_STATE #3149
layers: Move state tracker methods to CMD_BUFFER_STATE #3149
Conversation
Moving these methods requires a back pointer to the state tracker in the command buffer objects for doing handle lookups.
CI Vulkan-ValidationLayers build queued with queue ID 17169. |
CI Vulkan-ValidationLayers build # 4341 running. |
CI Vulkan-ValidationLayers build # 4341 passed. |
FYI @nadavgevaAMD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't look terribly close, but LGTM!
} | ||
|
||
void CMD_BUFFER_STATE::Destroy() { | ||
// Allow any derived class to clean up command buffer state | ||
if (dev_data->command_buffer_reset_callback) { | ||
(*dev_data->command_buffer_reset_callback)(commandBuffer()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any luck with removing these callbacks from state tracker? Or perhaps it doesn't make sense to do so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is coming in a follow on PR. I have it working in a local build.
LGTM -- though with code movement changes, hard to assess. Recommend additional testing (CTS/perf traces). |
This went through perf and error count vvltraces runs last night without regressions. |
Moving these methods requires a back pointer to the state
tracker in the command buffer objects for doing handle lookups.