Closed Bug 2019934 Opened 6 months ago Closed 5 months ago

Render images using quad shaders in simple cases

Categories

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

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: nical, Assigned: nical)

References

Details

(Keywords: perf-alert)

Attachments

(6 files)

The image primitive is WebRender's most complex primitive (surprisingly), due to the many combination of special cases it has to handle, so this bug focuses on porting the simple cases to quad shaders (non-tiled, non-external, and without some of the special logic to handle stacking context snapshots).

We have bit to spare in the pattern inputs, that seems a bit less error prone to me.

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED

The textured quad shader is currently only used to composite indirect primitives with a render task per segment.
Once we start segmenting actual image primitives, we need the segments to point to sub-parts of the source image instead of showing the whole image for each segment.

Keywords: leave-open

This is needed for stacking context snapshots which are fallible. This matches the behavior of the brush image primitive.

Backed out for causing wrench build bustages
Backout Link
Push with failures
Failure Log
Failure line REFTEST TEST-UNEXPECTED-FAIL | reftests\gradient\linear-hard-stop-repeat-large.yaml == reftests\gradient\linear-hard-stop-repeat-large-ref.yaml | image comparison, max difference: 1, number of differing pixels: 8200 | 8200 num_differences > 0 and <= 255 (allowed 0);

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(nical.bugzilla)

Backed out for causing wr failures at iframe-and-main-frame-transition-old-main-new-iframe.html
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(nical.bugzilla)
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fa9ee374b8ff https://hg.mozilla.org/integration/autoland/rev/1e00415c84d6 Revert "Bug 2019934, Bug 2020923 - metadata update" for causing wpt-meta failures at list-box-important-colors.html.ini

Backed out for causing wpt-meta failures at list-box-important-colors.html.ini
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(nical.bugzilla)
Keywords: leave-open

Reverted this because it was causing mochitests failures in browser_bug295977_autoscroll_overflow.js.

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(nical.bugzilla)
Keywords: leave-open
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/403431c6882c https://hg.mozilla.org/integration/autoland/rev/2b20bfa2ea0f Revert "Bug 2019934 - Use the ps_quad_textured shader for image primitives in simple cases. r=gw" for causing web failures at content-counter-016.xht

Backout for causing web failures at content-counter-000-ref.xht
Backout link
Push with failure
Failure log
Failure line TEST-UNEXPECTED-FAIL | /css/CSS2/generated-content/content-counter-016.xht | Testing http://web-platform.test:8000/css/CSS2/generated-content/content-counter-016.xht == http://web-platform.test:8000/css/CSS2/generated-content/content-counter-000-ref.xht

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(nical.bugzilla)
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Keywords: leave-open
Resolution: --- → FIXED
Regressions: 2026629
Target Milestone: --- → 151 Branch

(In reply to Serban Stanca [:SerbanS] from comment #27)

https://hg.mozilla.org/mozilla-central/rev/09ac39104443

Perfherder has detected a mozperftest performance change from push 09ac39104443a664cd22ee61e510aad4b77453d1.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
4% tab-restore-shopify org.mozilla.fenix:gpu-cpu-time android-hw-a55-14-0-aarch64-shippable 693.79 ms -> 663.00 ms
4% shopify-applink-startup org.mozilla.fenix:gpu-cpu-time android-hw-a55-14-0-aarch64-shippable 732.83 ms -> 703.50 ms

Need Help or Information?

If you have any questions, please reach out to fbilt@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Keywords: perf-alert
Regressions: 2028326

(In reply to Pulsebot from comment #26)

Pushed by nsilva@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/876e94fd7eb9
https://hg.mozilla.org/integration/autoland/rev/09ac39104443
Use the ps_quad_textured shader for image primitives in simple cases. r=gw

Perfherder has detected a browsertime performance change from push 09ac39104443a664cd22ee61e510aad4b77453d1.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
3% google-search-restaurants LastVisualChange (doc) android-hw-a55-14-0-aarch64-shippable cold webrender 792.90 ms -> 772.39 ms

Need Help or Information?

If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Regressions: 2028958
QA Whiteboard: [qa-triage-done-c152/b151]
Regressions: 2064321
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: