Allow featureLevel: "compatibility", which does nothing#4897
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. |
toji
left a comment
There was a problem hiding this comment.
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.
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.
(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.)
* 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 <[email protected]> Commit-Queue: Kai Ninomiya <[email protected]> Cr-Commit-Position: refs/heads/main@{#1392500}
This does nothing yet, so just mark it down for now.
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