-
Notifications
You must be signed in to change notification settings - Fork 419
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
sync: Refactor clear attachment code #9478
sync: Refactor clear attachment code #9478
Conversation
DrawAttachmentError does not provide additional information compared to generic Error. We can revisit later if dedicated error message is needed (need to improve ValidateDrawDynamicRenderingAttachment testing at first).
CI Vulkan-ValidationLayers build queued with queue ID 375040. |
CI Vulkan-ValidationLayers build # 19107 running. |
@@ -75,30 +74,6 @@ struct BeginRenderingCmdState { | |||
void InitSubpassContexts(VkQueueFlags queue_flags, const vvl::RenderPass &rp_state, const AccessContext *external_context, | |||
std::vector<AccessContext> &subpass_contexts); | |||
|
|||
struct ClearAttachmentInfo { |
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.
One change is that this structure was updated (and moved to sync_commandbuffer.h) and now is a simple 5 LOC type. Also code reorganization allowed to replace some pointer with references.
CI Vulkan-ValidationLayers build # 19107 passed. |
@@ -675,6 +675,8 @@ bool CommandBufferAccessContext::ValidateDrawAttachment(const Location &loc) con | |||
} | |||
|
|||
bool CommandBufferAccessContext::ValidateDrawDynamicRenderingAttachment(const Location &location) const { | |||
// TODO: Add tests. This is never called by existing tests. |
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.
Maybe create a corresponding issue?
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.
yes
#9480
Some improvements of how clear attachment code is structured before updating corresponding error messages.