Open Bug 1700721 Opened 3 years ago Updated 4 months ago

Support combining sRGB conversion with filtering in brush_blend.glsl

Categories

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

enhancement

Tracking

()

People

(Reporter: jrmuizel, Assigned: nical)

References

(Blocks 2 open bugs)

Details

Currently to implement an SVG color matrix filter, for example, we need to do three filtering passes:

  1. sRGB to linear
  2. Multiply
  3. linear to sRGB

This is quite expensive on SW-WR and probably isn't great on real GPUs either.

Instead we should have the option of doing the conversion as part of the filter.

Blocks: 1700597

Nical, do you have time to look at this in the near term? If we can get something that's upliftable to 88 that would be great.

Flags: needinfo?(nical.bugzilla)
Blocks: wr-perf
Severity: -- → S3
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → All

I'm going into this in the near future. I don't think anything will get uplifted though.

Assignee: nobody → nical.bugzilla
Flags: needinfo?(nical.bugzilla)
Blocks: wr-svg-filter-perf
No longer blocks: wr-perf
Blocks: 1782834

This will be fixed when I get https://phabricator.services.mozilla.com/D174208 to land :)

You need to log in before you can comment on or make changes to this bug.