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

Add missing validation for timestamp writes in render and compute passes #6578

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Nov 21, 2024

Connections

-

Description

It turns out, no validation for timestamp writes' indices or even query type was present. Holy crap! Fix that plz. Apply all validation that the WebGPU spec. specifies in:

Testing

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler added type: bug Something isn't working area: validation Issues related to validation, diagnostics, and error handling area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite labels Nov 21, 2024
@ErichDonGubler ErichDonGubler self-assigned this Nov 21, 2024
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner November 21, 2024 15:49
@ErichDonGubler ErichDonGubler force-pushed the validate-timestamp-indices-in-pass-creation branch from 114be5e to 58e75d3 Compare November 21, 2024 15:59
@ErichDonGubler ErichDonGubler requested a review from nical November 21, 2024 16:04
@ErichDonGubler ErichDonGubler force-pushed the validate-timestamp-indices-in-pass-creation branch from 58e75d3 to 666666f Compare November 21, 2024 16:40
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

unit test would be nice :)

CHANGELOG.md Outdated Show resolved Hide resolved
@ErichDonGubler
Copy link
Member Author

@Wumpf:

unit test would be nice :)

Filed #6584 to follow up with it, and updated the OP.

@ErichDonGubler ErichDonGubler merged commit f1ec934 into gfx-rs:trunk Nov 22, 2024
27 checks passed
@ErichDonGubler ErichDonGubler deleted the validate-timestamp-indices-in-pass-creation branch November 22, 2024 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite area: validation Issues related to validation, diagnostics, and error handling type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants