Closed Bug 1865344 Opened 8 months ago Closed 8 months ago

Restrict some webgpu limits

Categories

(Core :: Graphics: WebGPU, task, P3)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Some drivers advertise very high limits for some things like maximum bindings of some kind per shader stage. That's great but:

  • I don't trust all drivers with to keep up with their optimism
  • The CTS sometimes goes "OH you can bind 2147483648 uniform buffers? Hold my bear while I verify how you behave around the limit.
    • That causes all sorts of resource exhaustion issues on CI, including time.
    • It causes some chunks to hit the logging limit on CI, so no parsed logs.
  • Some of these limits being pretty small for a lot of GPUs, authors have to target reasonable limits so we don't have to let them the bind 2147483648 uniform buffers. if we cap it to something that is already way higher than useful but reasonable (like 256), it removes a little bit of fingerprinting potential.

Some GPUs/drivers advertise very high limits (many many more orders of magnitudes than other GPUs). These high numbers cause the test suite to generate tests that are so intense that they cause all sorts of resource exhaustions, it's also a potential fingerprinting surface so lets cap them to something reasonable.

Pushed by egubler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/066e630d3ddf
Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d8a8fd9c20d
Fix typo and hopefully unbust builds. a=bustage-fix CLOSED TREE

Apologies for the back-and-forth. I've fixed the compilation issues in landing now; ran my own Try push (try:29dc539c8550) to ensure that such was the case.

Flags: needinfo?(nical.bugzilla)
Pushed by egubler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19ae48adbcb0
Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Pushed by egubler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8df753f9062d
Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Flags: needinfo?(egubler)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: