-
Notifications
You must be signed in to change notification settings - Fork 353
Add GPURequestAdapterOptions.allowSoftware #1634
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
| </script> | ||
|
|
||
| <script type=idl> | ||
| enum GPUAllowSoftwareOption { |
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.
Why can't this just be a boolean? It's up to the UA to figure out when this should be preferred, anyway.
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.
For extensibility, see [1]
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, if you want to have rich controls like this, then the "allow" part becomes confusing. I.e. allowSoftware = "always" doesn't read to me like a thing that would prefer software over hardware adapters.
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.
with plural requestAdapters, I envisioned "always" would still list software adapters last, effectively keeping the same preference order but not hiding software adapters.
| </script> | ||
|
|
||
| <script type=idl> | ||
| enum GPUAllowSoftwareOption { |
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.
For extensibility, see [1]
| Issue: | ||
| Additional possible options here include `"always"`, if requestAdapter is pluralized, | ||
| and `"only"`, if we want to allow apps to force software | ||
| (e.g. as a driver bug workaround, or for automated testing). |
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.
[1]
|
Editors meeting resolution: This solution is not ideal as it doesn't actually solve all cases - for example, it doesn't allow an application to implement logic to blocklist known buggy GPUs and fall back to software (or to another GPU in the system). Plural @toji is looking at a proposal that incorporates plural |
|
Closing in favor of #1734 |
Proposal for the direction I think we agreed upon; alternative to #1302, related to #1439
💥 Error: 500 Internal Server Error 💥
PR Preview failed to build. (Last tried on Apr 14, 2021, 6:52 PM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 HTML Diff Service - The HTML Diff Service is used to create HTML diffs of the spec changes suggested in a pull request.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.