Commit Graph

3713 Commits

Author SHA1 Message Date
Glenn Watson
4cb33ca6a0 Bug 1863688 - Fix translucent + opaque RGBA compositor surface overlays. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D193713
2023-11-16 22:08:39 +00:00
Jan-Erik Rediger
48117e62df Bug 1860506 - Update to Glean v55 and glean_parser v10. r=TravisLong,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192960
2023-11-13 14:29:54 +00:00
Emilio Cobos Álvarez
ee9d511231 Bug 1862061 - Fix wrench build bustage.
MANUAL PUSH: Trivial build fix CLOSED TREE
2023-11-01 11:04:11 +01:00
Emilio Cobos Álvarez
c25b3b246f Bug 1862061 - Remove -moz-font-smoothing-background-color. r=gfx-reviewers,desktop-theme-reviewers,devtools-reviewers,dao,gw
See comments in the bug for reasoning. macOS hasn't used subpixel AA for
quite a while.

Emulating this macOS AA on vibrant backgrounds was the only point of
this feature.

This allows to simplify the WebRender code quite a bit, too.

Differential Revision: https://phabricator.services.mozilla.com/D192311
2023-11-01 09:14:29 +00:00
Jonathan Kew
b521628b5f Bug 1803406 - Backout 2 changesets (6a82f1f120aa, 87d83c56fbe5) due to regression reported in bug 1858869.
Differential Revision: https://phabricator.services.mozilla.com/D190908
2023-10-13 08:32:56 +00:00
Jonathan Kew
5032f4321e Bug 1803406 - Ensure consistent font lists across macOS processes, and use the kCTFontOptionsPreferSystemFont option when instantiating Core Text fonts. r=gfx-reviewers,lsalzman
This aims to avoid conflicts with user-installed fonts that shadow system fonts,
where there is a risk that different processes end up using different, incompatible
versions of "the same" font (i.e. they resolve the same font descriptor to different
resources).

Differential Revision: https://phabricator.services.mozilla.com/D170286
2023-10-12 11:54:08 +00:00
Jonathan Kew
19f0c79785 Bug 1803406 - Bump core-text dependency of wr_glyph_rasterizer to 20.1.0, and vendor the updated version. r=jrmuizel,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189005
2023-10-12 11:54:08 +00:00
David Turner
0f291de47e Bug 1854062 - Fix incorrect optimisation with clip between LCA and pic r=gw,gfx-reviewers
My fix for Bug 1836063 didn't take into account that there could be
clips between the old picture clip and the Lowest Common Ancestor (LCA)
clip. In this case, even when the pic clip and LCA clip are identical,
moving the clip root from the former to the latter would cause any clips
between these two to be ignored.

This commit checks that the pic clip is the direct parent of the LCA
clip, so we aren't accidentally skipping any clips between the two.
I've checked that the original optimisation still works in Firefox and
the invalidation reftest still passes.

I also add a new regression reftest for this specific bug, created from
the reported test case.

Differential Revision: https://phabricator.services.mozilla.com/D190040
2023-10-09 12:59:04 +00:00
serge-sans-paille
45d4ac7c0e Bug 1854162 - Use taskcluster-built python for webrender task r=glandium,taskgraph-reviewers,ahal
This required a few changes to work under taskcluster's Python instead
of system one. Most dependencies are now explicit through
gfx/wr/ci-scripts/requirements.txt

Differential Revision: https://phabricator.services.mozilla.com/D188736
2023-10-05 06:30:49 +00:00
Glenn Watson
bd5395c567 Bug 1856656 - Fix subpixel AA calculations for surfaces with underlays r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189985
2023-10-04 21:53:17 +00:00
Norisz Fay
3c3cd26772 Backed out changeset 67f09bb24cd5 (bug 1856656) for causing WR failures on underlay.yaml CLOSED TREE 2023-10-05 00:36:34 +03:00
Glenn Watson
ddb139431c Bug 1856656 - Fix subpixel AA calculations for surfaces with underlays r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189985
2023-10-04 20:02:08 +00:00
Stanca Serban
a4b50e5230 Backed out changeset 46ec6a8d9505 (bug 1854162) for causing wrench bustages. 2023-10-04 09:20:46 +03:00
serge-sans-paille
21f7c79e0d Bug 1854162 - Use taskcluster-built python for webrender task r=glandium,taskgraph-reviewers,ahal
This required a few changes to work under taskcluster's Python instead
of system one. Most dependencies are now explicit through
gfx/wr/ci-scripts/requirements.txt

Differential Revision: https://phabricator.services.mozilla.com/D188736
2023-10-04 05:26:24 +00:00
Glenn Watson
6ef1e9fd99 Bug 1850869 - Support pictures that require source and target masks for correctness r=gfx-reviewers,lsalzman
Rather than selecting all clips to be drawn in the source or target space,
allow them to be separate masks when required. In the common case, the spaces
match and so all masks get drawn on to the picture surface. In the rare case
of a mask that requires drawing in source surface space, _and_ a mask in a
parent non-aligned space, support rendering and applying them as separate masks.

Differential Revision: https://phabricator.services.mozilla.com/D189885
2023-10-03 19:51:18 +00:00
Lee Salzman
9db3916bc9 Bug 1855721 - Ensure surface has all interior tiles before occluding. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D189637
2023-09-29 20:08:41 +00:00
Butkovits Atila
dc4f0dd2a4 Backed out 3 changesets (bug 1803406) for causing WR bustages. CLOSED TREE
Backed out changeset 91f12411aff1 (bug 1803406)
Backed out changeset edb458dfa8b8 (bug 1803406)
Backed out changeset 9c4a875ec67d (bug 1803406)
2023-09-29 21:33:03 +03:00
Jonathan Kew
d7baedb599 Bug 1803406 - Ensure consistent font lists across macOS processes, and use the kCTFontOptionsPreferSystemFont option when instantiating Core Text fonts. r=gfx-reviewers,lsalzman
This aims to avoid conflicts with user-installed fonts that shadow system fonts,
where there is a risk that different processes end up using different, incompatible
versions of "the same" font (i.e. they resolve the same font descriptor to different
resources).

Differential Revision: https://phabricator.services.mozilla.com/D170286
2023-09-29 17:58:17 +00:00
Jonathan Kew
d16c15c284 Bug 1803406 - Bump core-text dependency of wr_glyph_rasterizer to 20.1.0, and vendor the updated version. r=jrmuizel,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189005
2023-09-29 17:58:17 +00:00
Mike Hommey
f553129f78 Bug 1855870 - Upgrade webrender to bitflags 2. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D189605
2023-09-29 08:20:59 +00:00
Sandor Molnar
877328b180 Backed out changeset 5e882222f60d (bug 1855870) for causing build bustages. CLOSED TREE 2023-09-29 05:11:00 +03:00
Mike Hommey
9bcd21ef72 Bug 1855870 - Upgrade webrender to bitflags 2. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D189605
2023-09-29 01:50:47 +00:00
Mike Hommey
ae28ced110 Bug 1852209 - Avoid using bitflags internals in webrender. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D189314
2023-09-27 19:56:16 +00:00
Glenn Watson
f10a62a723 Bug 1849680 - Add support for masks on opaque compositor surfaces. r=gfx-reviewers,lsalzman
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-25 23:11:23 +00:00
Cosmin Sabou
1a00bbd859 Backed out changeset d3828ca7337d (bug 1849680) for causing android bustages on underlay.yaml. 2023-09-26 02:04:05 +03:00
Glenn Watson
ba49bf562c Bug 1849680 - Add support for masks on opaque compositor surfaces r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-25 21:28:33 +00:00
Iulian Moraru
c8cba7bbad Backed out changeset 0cca5d3b5a43 (bug 1849680) for causing wrench build bustages. CLOSED TREE 2023-09-25 23:38:09 +03:00
Glenn Watson
f0ab8716b3 Bug 1849680 - Add support for masks on opaque compositor surfaces r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-25 19:58:48 +00:00
Jamie Nicol
261fd5a578 Bug 1850815 - Make cs_border_solid's vColorLine highp. r=gfx-reviewers,bradwerth
This varying's precision being reduced to mediump in bug bug 1823411
is causing rendering glitches on certain Mali devices. It should never
have been reduced in the first place, as calculations regarding
positions may require the extra precision. This patch therefore
reverts it to highp.

Differential Revision: https://phabricator.services.mozilla.com/D188984
2023-09-22 16:07:00 +00:00
Jamie Nicol
374e0b9059 Bug 1853573 - Avoid shader miscompile on Adreno 3xx. r=gfx-reviewers,lsalzman
The repeated if-statements in the existing shader code appear to be
miscompiled on certain Adreno 3xx devices. Replacing them with a mix()
statement appears to avoid the bug.

Depends on D188818

Differential Revision: https://phabricator.services.mozilla.com/D188819
2023-09-21 14:30:12 +00:00
Jamie Nicol
0694aeb5d3 Bug 1853573 - Implement vec2_scalar fract() in swgl. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188818
2023-09-21 14:30:12 +00:00
Jan-Erik Rediger
8dd4f8a708 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-19 08:18:12 +00:00
Sandor Molnar
1f5dbccdb3 Backed out changeset 1e582a0e5593 (bug 1852921) for causing build bustages 2023-09-19 01:43:08 +03:00
Jan-Erik Rediger
a98db88b61 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-18 14:09:18 +00:00
Iulian Moraru
01339f2b82 Backed out changeset c369e42eb572 (bug 1849680) for causing Bug 1853691. 2023-09-18 17:39:49 +03:00
Glenn Watson
98e7bbf614 Bug 1849680 - Add support for masks on opaque compositor surfaces r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-17 22:44:04 +00:00
Noemi Erli
edbcdc5c97 Backed out changeset 4333e71e3754 (bug 1849680) for causing wrench bustages CLOSED TREE 2023-09-18 02:44:38 +03:00
Glenn Watson
331bbfed93 Bug 1849680 - Add support for masks on opaque compositor surfaces r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-17 22:44:04 +00:00
Cosmin Sabou
432ec143bf Backed out changeset 14877179e1a7 (bug 1849680) for causing mda failures on test_video_low_power_telemetry.html. CLOSED TREE 2023-09-15 10:03:57 +03:00
Glenn Watson
4b1b65aec9 Bug 1849680 - Add support for masks on opaque compositor surfaces r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188155
2023-09-15 02:19:27 +00:00
Glenn Watson
82c19dea77 Bug 1851508 - Fix rendering artifacts on clip masks with nested perspective r=gfx-reviewers,lsalzman
Add support for drawing clip masks in the same reference frame as
the raster space without the perspective transform, which fixes
some complex edge cases with nested complex perspective transforms.

Differential Revision: https://phabricator.services.mozilla.com/D187864
2023-09-11 22:46:28 +00:00
Glenn Watson
0cc2ca2efe Bug 1851101 - Remove old image-mask clip code path r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D187253
2023-09-04 02:50:35 +00:00
Glenn Watson
83e7dec8ce Bug 1849661 - Use new clip-mask render paths for picture primitives r=gfx-reviewers,nical
This patch removes use of the legacy clip-mask paths for picture
primitives. It makes use of render task sub-pass functionality
to apply the mask directly on top of the picture primitive when
the coordinate systems match (the common case). In the case of
complex transforms it renders them to a screen-space mask which
can be applied by the old clip-mask sampling code. In future,
we'll likely apply these as a sub-pass too.

Differential Revision: https://phabricator.services.mozilla.com/D186638
2023-08-28 20:08:39 +00:00
Glenn Watson
ceb6c4bba6 Bug 1849530 - Add support for sub-passes on a single render task r=gfx-reviewers,ahale
This adds support for sub-passes to individual render tasks, which
allow subsequent rendering to be configured on top of an existing
render task.

This patch introduces no functional change, it's preparation for
follow up patches.

The follow up patches will make use of this to apply clip masks to
picture primitives directly, where applicable, rather than allocating
a screen-space clip mask and drawing to that.

Differential Revision: https://phabricator.services.mozilla.com/D186614
2023-08-21 20:00:03 +00:00
Glenn Watson
c5251a9715 Bug 1848066 - Support image-mask clips in new clip rendering paths r=gfx-reviewers,lsalzman
This will be used by a follow up patch to enable picture prims to
use the clip rendering paths.

Differential Revision: https://phabricator.services.mozilla.com/D185878
2023-08-13 20:34:19 +00:00
Glenn Watson
219c46b1c5 Bug 1847472 - Simplify logic in build_mask_tasks r=gfx-reviewers,lsalzman
This switches mask rendering to use an exact local bounds when
the clip is the same coord system as the raster root, and a
conservative estimate when there is a complex transform.

This simplifies the next patch to allow using the new clip-mask
paths for picture rendering (which are always raster roots).

Differential Revision: https://phabricator.services.mozilla.com/D185520
2023-08-07 20:22:30 +00:00
Jamie Nicol
44c0132291 Bug 1847319 - Block QCOM_tiled_rendering on all driver version on Adreno 308 GPUs. r=gfx-reviewers,lsalzman
In bug 1843749 we received reports of QCOM_tiled_rendering causing
glitches on Adreno 308 GPUs. As using this extension is a performance
win, especially on less powerful GPUs such as the Adreno 308, we
decided to block it only on the driver versions which we knew were
broken: V@331 and V@415.

However, we have now received a report that it is additionally broken
on version V@0502. As it now seems likely the bug affects all driver
versions, or at least more than originally hoped, this patch blocks
the extension on the Adreno 308 regardless of driver version.

Differential Revision: https://phabricator.services.mozilla.com/D185530
2023-08-07 16:11:48 +00:00
Travis Long
aa6cb926b7 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-07 11:02:56 +00:00
Cristina Horotan
29d764fc02 Backed out changeset 672918ecc3bc (bug 1626969) for causing mach failures on a CLOSED TREE 2023-08-04 22:09:05 +03:00
Travis Long
de399e3600 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-04 18:41:55 +00:00