Skip to content
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

[WebGPU] A12x devices and earlier allowed for creation of more samplers than supported by the HW #28730

Conversation

mwyrzykowski
Copy link
Contributor

@mwyrzykowski mwyrzykowski commented May 17, 2024

a19c25f

[WebGPU] A12x devices and earlier allowed for creation of more samplers than supported by the HW
https://bugs.webkit.org/show_bug.cgi?id=274334
<radar://128065020>

Reviewed by Dan Glastonbury.

Apple4 and Apple5 devices have Tier 1 AB support, not tier 2, but
their limits were set according to tier 1 limits.

These are mostly older phones and iPads (iPhone XS, 2018 iPad Pro),
so we can instead use the default WebGPU limits which many websites
may use in any case.

Apple3 is not supported by WebGPU core, rather only WebGPU compat mode, which we
don't have any validation for right now.

* LayoutTests/fast/webgpu/fuzz-274334-expected.txt: Added.
* LayoutTests/fast/webgpu/fuzz-274334.html: Added.
* LayoutTests/TestExpectations
Add regression test.

* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::rawHardwareCapabilities):
(WebGPU::apple3): Deleted.
(WebGPU::apple4): Deleted.
(WebGPU::apple5): Deleted.
Use default limits for Apple3/4/5

Canonical link: https://commits.webkit.org/279016@main

50e84c7

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2   πŸ§ͺ wincairo-tests
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2   πŸ§ͺ api-mac βœ… πŸ§ͺ api-wpe
  πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 βœ… πŸ›  wpe-cairo
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  gtk
  πŸ›  tv   πŸ§ͺ mac-AS-debug-wk2   πŸ§ͺ gtk-wk2
  πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress   πŸ§ͺ api-gtk
βœ… πŸ›  πŸ§ͺ merge   πŸ›  watch
βœ… πŸ›  watch-sim

@mwyrzykowski mwyrzykowski self-assigned this May 17, 2024
@mwyrzykowski mwyrzykowski added the WebGPU For bugs in WebGPU label May 17, 2024
@mwyrzykowski mwyrzykowski force-pushed the eng/WebGPU-A12x-devices-and-earlier-allowed-for-creation-of-more-samplers-than-supported-by-the-HW branch from fd1c424 to 4b46bc3 Compare May 17, 2024 21:24
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 17, 2024
@mwyrzykowski mwyrzykowski removed the merging-blocked Applied to prevent a change from being merged label May 17, 2024
@mwyrzykowski mwyrzykowski requested a review from djg May 17, 2024 23:20
Copy link
Contributor

@djg djg left a comment

Choose a reason for hiding this comment

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

:shipit:

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 18, 2024
@mwyrzykowski mwyrzykowski removed the merging-blocked Applied to prevent a change from being merged label May 20, 2024
@mwyrzykowski mwyrzykowski force-pushed the eng/WebGPU-A12x-devices-and-earlier-allowed-for-creation-of-more-samplers-than-supported-by-the-HW branch from 4b46bc3 to 50e84c7 Compare May 20, 2024 21:30
@mwyrzykowski mwyrzykowski added the merge-queue Applied to send a pull request to merge-queue label May 20, 2024
…rs than supported by the HW

https://bugs.webkit.org/show_bug.cgi?id=274334
<radar://128065020>

Reviewed by Dan Glastonbury.

Apple4 and Apple5 devices have Tier 1 AB support, not tier 2, but
their limits were set according to tier 1 limits.

These are mostly older phones and iPads (iPhone XS, 2018 iPad Pro),
so we can instead use the default WebGPU limits which many websites
may use in any case.

Apple3 is not supported by WebGPU core, rather only WebGPU compat mode, which we
don't have any validation for right now.

* LayoutTests/fast/webgpu/fuzz-274334-expected.txt: Added.
* LayoutTests/fast/webgpu/fuzz-274334.html: Added.
* LayoutTests/TestExpectations
Add regression test.

* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::rawHardwareCapabilities):
(WebGPU::apple3): Deleted.
(WebGPU::apple4): Deleted.
(WebGPU::apple5): Deleted.
Use default limits for Apple3/4/5

Canonical link: https://commits.webkit.org/279016@main
@webkit-commit-queue
Copy link
Collaborator

Committed 279016@main (a19c25f): https://commits.webkit.org/279016@main

Reviewed commits have been landed. Closing PR #28730 and removing active labels.

@webkit-commit-queue webkit-commit-queue force-pushed the eng/WebGPU-A12x-devices-and-earlier-allowed-for-creation-of-more-samplers-than-supported-by-the-HW branch from 50e84c7 to a19c25f Compare May 20, 2024 22:02
@webkit-commit-queue webkit-commit-queue merged commit a19c25f into WebKit:main May 20, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebGPU For bugs in WebGPU
Projects
None yet
5 participants