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

sync: Fix creating dynamic rendering attachments in sync val #9093

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ziga-lunarg
Copy link
Contributor

Syncval would assert if dynamic rendering contains a depth attachment without depth aspect or stencil attachment without stencil aspect

@ziga-lunarg ziga-lunarg requested a review from a team as a code owner December 27, 2024 08:41
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 333005.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18454 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18454 passed.

@@ -976,9 +976,11 @@ syncval_state::DynamicRenderingInfo::Attachment::Attachment(const SyncValidator
if (view) {
if (type == AttachmentType::kColor) {
view_gen = view->MakeImageRangeGen(offset, extent);
} else if (type == AttachmentType::kDepth) {
} else if (type == AttachmentType::kDepth &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it a core validation error when depth attachment does not have depth aspect (and similar for stencil)?

If this above check is to skip situation that is not valid in core checks, that one option to consider not to create DynamicRenderingInfo::Attachment objects at all, if that's something that works with current design.

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