Sitelet https://github.com/gpuweb/gpuweb/pull/3626
Skip to content

Fix issues in pass end() validation - #3626

Merged
kdashg merged 1 commit into
gpuweb:mainfrom
kainino0x:pass-end-validation
Dec 1, 2022
Merged

kdashg merged 1 commit into
gpuweb:mainfrom
kainino0x:pass-end-validation

Conversation

@kainino0x

@kainino0x kainino0x commented Nov 22, 2022 •

Copy link
Copy Markdown
Contributor
  • Changed incorrect assertion to a validation rule. This could be a no-op because finish() will have already failed if this is hit, but an error is chosen for consistency since other errors in the API also cascade, e.g. createTexture() into createView().
  • Changed to invalidate the correct encoder when GPURenderPassEncoder.end() fails.

Followup to #2452 / #2751

- Changed incorrect assertion to a validation rule. This could be a no-op
  because finish() will have already failed if this is hit, but an error
  is chosen for consistency since other errors in the API also cascade,
  e.g. createTexture() into createView().
- Changed to invalidate the correct encoder when
  GPURenderPassEncoder.end() fails.
@kainino0x kainino0x added this to the V1.0 milestone Nov 22, 2022
@kainino0x
kainino0x requested a review from toji November 22, 2022 22:19
@github-actions

github-actions Bot commented Nov 22, 2022 •

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (c31c809):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@kainino0x kainino0x added copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue and removed for webgpu editors meeting labels Nov 28, 2022

@toji toji left a comment

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.

LGTM

@kainino0x kainino0x added tacit resolution queue Editors have agreed and intend to land if no feedback is given and removed copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue labels Nov 30, 2022
@kainino0x

Copy link
Copy Markdown
Contributor Author

Testing tracked in gpuweb/cts#1914

@kdashg
kdashg merged commit 108e89c into gpuweb:main Dec 1, 2022
@kainino0x
kainino0x deleted the pass-end-validation branch December 1, 2022 00:07
@kainino0x kainino0x removed the tacit resolution queue Editors have agreed and intend to land if no feedback is given label Dec 7, 2022
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