Skip to content

Indirect draw validation fixes#9604

Open
teoxoy wants to merge 8 commits into
gfx-rs:trunkfrom
teoxoy:fix-indirect-draw-val
Open

Indirect draw validation fixes#9604
teoxoy wants to merge 8 commits into
gfx-rs:trunkfrom
teoxoy:fix-indirect-draw-val

Conversation

@teoxoy
Copy link
Copy Markdown
Member

@teoxoy teoxoy commented May 28, 2026

Connections
-

Description
See commits.

Testing
Added a test.

Squash or Rebase?
Rebase.

Checklist

  • I self-reviewed and fully understand this PR.
  • WebGPU implementations built with wgpu may be affected behaviorally.
  • Validation and feature gates are in place to confine behavioral changes.
  • Tests demonstrate the validation and altered logic works.
  • CHANGELOG.md entries for the user-facing effects of this change are present.
  • The PR is minimal, and doesn't make sense to land as multiple PRs.
  • Commits are logically scoped and individually reviewable.
  • The PR description has enough context to understand the motivation and solution implemented.

Copy link
Copy Markdown
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of nitpicks. Approving to unblock after resolution.

nitpick: Commit titles don't make it clear they all apply to indirect draws. This might be somewhat confusing for the rebase-and-merge flow, which I assume is what you want with the "commits review gud" checkbox in the OP.

Comment thread wgpu-core/src/instance.rs
}
}

fn adjust_adapter_limits(&self, limits: &mut wgt::Limits) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nitpick: It seems over-generalizing to call this adjust_adapter_limits. Perhaps, for now, we can make it more concretely descriptive, i.e., adjust_limits_for_indirect_validation?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be worth cross-reference comments between this and hal's adjust_raw_limits.

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