-
Notifications
You must be signed in to change notification settings - Fork 329
Allow featureLevel: "compatibility"
, which does nothing
#4897
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
Conversation
Previews, as seen when this build job started (caaf346): |
Proposing for M0 because it's important that all implementations do this, so that apps invoking compatibility mode won't break on those implementations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with the only question being would it be worthwhile to set up an enum for the accepted feature levels now? Then the validation would be something like "must be undefined or the string value of an enum from GPUFeatureLevels
" or something like that.
PTAL; if this seems good based on our past WG discussions, we don't need to wait for the next WG meeting. |
Since @kainino0x is out for a bit, @jimblandy: Are you OK with merging this now? |
Updated per F2F decision, plus a non-normative note. |
|
||
Note: | ||
This value is reserved for future use as a way to opt into additional validation restrictions. | ||
Applications should not use this value at this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this note is necessary, otherwise the spec is saying that applications can use "compatibility" now and expect to get "core" validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(FTR, given this, I now have no strong feeling between doing this PR and leaving the spec as it is now. Corentin's point during the F2F is valid: the spec can disallow passing any value here, and browsers not implementing compat can still go slightly ahead of the spec by allowing-and-ignoring "compatibility"
knowing that it's the planned string value.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Briefly document featureLevel * Allow "compatibility" but it does nothing * Define "core" as well, and say "compatibility" shouldn't be used
* Briefly document featureLevel * Allow "compatibility" but it does nothing * Define "core" as well, and say "compatibility" shouldn't be used
GPU Web WG 2024-10-29/30 Mountain View F2F
|
Spec PR: gpuweb/gpuweb#4897 CTS PR: gpuweb/cts#4077 Bug: 366151404 Change-Id: I451a5e66f85468cb433b9f20edf7c09644ac8cd7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6067690 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/main@{#1392500}
One of the core principles of the compatibility mode proposal is that requests for compatibility mode may be ignored. However, browsers must allow
"compatibility"
in order to ignore it.This changes the current spec to allow (but otherwise ignore)
featureLevel: "compatibility"
inrequestAdapter()
.With the compatibility mode proposal, browsers would be allowed to either ignore it or impose compatibility mode validation.
Issue: #4656, #4266