Avoid enabling certain mac driver bug workarounds on Metal ANGLE
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: jnicol, Assigned: jnicol)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxpe])
Attachments
(1 file)
On macOS we have a few different driver bug workarounds in webrender:
- Blocking texture storage due to lack of BGRA support
- Using a large PBO stride alignment due to AMD bugs
- Only uploading from PBO offsets of 0, due to AMD bugs
The latter two of these only apply to AMD GPUs, but we unconditionally apply the workaround anyway because it's possible that the device is created on another GPU and then migrated to an AMD GPU at runtime.
These bugs presumably don't apply to Metal ANGLE -- I did a quick sanity check on an AMD device, but didn't test in depth. Additionally, Metal ANGLE does not support GPU migration, so there's no need to pessimistically apply the workaround. (Currently we block Metal ANGLE on devices with multiple GPUs, and when we eventually support such devices we'll need to do something like recreating the renderer rather than just migrating the GL context.)
Avoiding the PBO offset limitation looks like it will be especially valuable from the profiles I've looked at, as it will allow us to use the same PBO for multiple uploads, reducing the number of required allocations.
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Metal ANGLE does not appear to be affected by these driver bugs. And
since it does not support GPU migration we don't need to
pessimistically apply them even on unaffected GPUs.
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•16 days ago
|
Description
•