这是indexloc提供的服务,不要输入任何密码
Skip to content

Move GPUAdapter isFallbackAdapter attribute to GPUAdapterInfo #5099

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

beaufortfrancois
Copy link
Contributor

FIX #4971

Copy link
Contributor

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

Copy link
Contributor

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

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

I'm not sure if the WG formally approved this change, but LGTM otherwise. I've added it to the next agenda.

@kainino0x kainino0x added this to the Milestone 1 milestone Mar 13, 2025
@kainino0x kainino0x added the api WebGPU API label Mar 13, 2025
@Kangz
Copy link
Contributor

Kangz commented Mar 13, 2025

We did although we had no representation from WebKit. @mwyrzykowski does this look good to you? Chromium will try to move the boolean as well but if we fail to do it without breaking pages, we'll also keep the previous one in the spec for backward compat. (as a wart)

Copy link

@mwyrzykowski mwyrzykowski left a comment

Choose a reason for hiding this comment

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

Do we have any idea on how much usage of isFallbackAdapter exists?

It's technically a breaking change but I'm unaware of anyone using it. I read the spec text on isFallbackAdapter which makes it seem even less useful, rather the UA should implement the specification correctly or report WebGPU does not exist

@kainino0x kainino0x added the api resolved Resolved - waiting for a change to the API specification label Mar 19, 2025
@kainino0x
Copy link
Contributor

kainino0x commented Mar 19, 2025

WG meeting: approved. (Chromium will still do our homework)

@kainino0x kainino0x merged commit 928bd09 into gpuweb:main Mar 19, 2025
4 checks passed
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 19, 2025
Spec PR: gpuweb/gpuweb#5099

Bug: 403172841
Change-Id: Icb3cfdeba682db01d5b8d434a686763743d40513
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6347298
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1434935}
copybara-service bot pushed a commit to google/dawn that referenced this pull request Mar 20, 2025
Spec PR: gpuweb/gpuweb#5099

Bug: 403172841
Change-Id: Icda3d72cae665b0759ae7af674a22c383461c425
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/230674
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
@kainino0x
Copy link
Contributor

I read the spec text on isFallbackAdapter which makes it seem even less useful, rather the UA should implement the specification correctly or report WebGPU does not exist

It would only have performance caveats, but it's still required to be conformant.
It's a UA choice whether they want to provide a low-performance fallback. We just have this here so that applications can opt out of it, if they want.

kainino0x pushed a commit to gpuweb/types that referenced this pull request Mar 21, 2025
Following gpuweb/gpuweb#5099, this PR moves
`isFallbackAdapter` into `GPUAdapterInfo`
@Kangz
Copy link
Contributor

Kangz commented Mar 24, 2025

GPU Web WG 2025-03-19 Atlantic-time
  • No objection to making the spec change. Chrome will add the new one and add telemetry for usage of the old one (and tell the WG about it) before removing it.
  • KG/JB/MW: (thumbs up)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api resolved Resolved - waiting for a change to the API specification api WebGPU API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move isFallbackAdapter into GPUAdapterInfo
5 participants