Support antialiasing each quad edge individually with SWGL
Categories
(Core :: Graphics: WebRender, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Bug 2015400 got AA in a better place for hardware WR, but there are some remaining issues in SWGL, as shown by wrench/reftests/gradient/radial-segments-rotated-clipped.yaml.
| Assignee | ||
Comment 1•7 months ago
|
||
The problem was that the clip prim was baking some anti-aliasing into the indirect task, from the clip itself being anti-aliased. With hardware WR the antialiasing of the clip wasn't affecting the results. It comes down to how SWGL does anti-aliasing in a different way, which we don't need to get into because it does not make sense for the clip to have anti-aliasing. So this patches removes that.
In order to make sure that anti-aliased segments are properly covered by the clip, we inflate primitivce-space clips on the CPU in a qay that is equivalent to the extra coverage it was getting from the shader's AA extrusion. Raster space clips already cover the entire task so they don't need to be inflated.
Backed out for causing wrench bustages
| Assignee | ||
Updated•7 months ago
|
Comment 6•7 months ago
|
||
| bugherder | ||
Updated•6 months ago
|
Description
•