Commit Graph

45676 Commits

Author SHA1 Message Date
Natalia Csoregi
00e5d5a924 Backed out changeset 2b56c2b2837a (bug 1863914) for causing bustage on CanvasDrawEventRecorder.h. CLOSED TREE 2023-11-22 16:31:15 +02:00
Bob Owen
818e1b42b7 Bug 1863914: Use multiple shmem buffers for remote canvas recording. r=aosmond
This replaces the use of a single large ring buffer.
The buffers are still processed in parallel and are recycled to reduce
allocation. Events that do not fit in the default sized buffer have a separate
buffer created to fit them. These large buffers are not recycled.
Separate shared memory is used for readback, with a single shmem cached for this
purpose. Generally only one cached shmem should be required, because the
operations that usually readback the data do it straight away.

Differential Revision: https://phabricator.services.mozilla.com/D193207
2023-11-22 11:52:08 +00:00
Natalia Csoregi
000c9b4bb4 Backed out 4 changesets (bug 1861985, bug 1860958, bug 1865364) for causing bustage due to CommandEncoder. CLOSED TREE
Backed out changeset 3d6b04449863 (bug 1865364)
Backed out changeset 1e35eb31a789 (bug 1861985)
Backed out changeset e3f53b794c1d (bug 1861985)
Backed out changeset d676e8a3a515 (bug 1860958)
2023-11-22 13:52:44 +02:00
Nicolas Silva
3a7b3c6c1f Bug 1861985 - Handle CommandBuffer/CommandBuffer lifecycle correctly. r=webgpu-reviewers,ErichDonGubler
In wgpu, command encoders and command buffers actually share the same identity and resource, so dropping one drops the other. This commit makes it so that our gecko wrappers take that into account. The lifetime is now tied to the encoder which may be held alive by a command buffer if there is one.

Differential Revision: https://phabricator.services.mozilla.com/D193313
2023-11-22 10:57:58 +00:00
Nicolas Silva
056636220b Bug 1860958 - Implement Texture::Destroy. r=webgpu-reviewers,jimb
Differential Revision: https://phabricator.services.mozilla.com/D192080
2023-11-22 10:57:57 +00:00
sotaro
b0e7e3f3ea Bug 1865986 - Remove ScopedLockTexture r=gfx-reviewers,lsalzman
ScopedLockTexture is not used.

Differential Revision: https://phabricator.services.mozilla.com/D194330
2023-11-22 08:04:52 +00:00
Cristian Tuns
b428472b9e Backed out 3 changesets (bug 1861985, bug 1860958) for causing build bustages in RefPtr.h CLOSED TREE
Backed out changeset 13f07117425f (bug 1861985)
Backed out changeset 0bdc4c60018e (bug 1861985)
Backed out changeset 5e6f2b2e19c6 (bug 1860958)
2023-11-21 14:07:35 -05:00
Nicolas Silva
26eccaa309 Bug 1861985 - Handle CommandBuffer/CommandBuffer lifecycle correctly. r=webgpu-reviewers,ErichDonGubler
In wgpu, command encoders and command buffers actually share the same identity and resource, so dropping one drops the other. This commit makes it so that our gecko wrappers take that into account. The lifetime is now tied to the encoder which may be held alive by a command buffer if there is one.

Differential Revision: https://phabricator.services.mozilla.com/D193313
2023-11-21 18:16:25 +00:00
Nicolas Silva
3710042ff0 Bug 1860958 - Implement Texture::Destroy. r=webgpu-reviewers,jimb
Differential Revision: https://phabricator.services.mozilla.com/D192080
2023-11-21 18:16:24 +00:00
Cosmin Sabou
36dc5703c6 Backed out 3 changesets (bug 1859625) for causing reftest assertion failures on gfxFeature.cpp. CLOSED TREE
Backed out changeset ea804fe0a160 (bug 1859625)
Backed out changeset 7ba7a8156187 (bug 1859625)
Backed out changeset ab1801c9add6 (bug 1859625)
2023-11-21 19:38:28 +02:00
Brad Werth
f1067b5507 Bug 1859625 Part 3: Stop sending the GetOutputColorProfileData message. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D193139
2023-11-21 16:33:48 +00:00
Brad Werth
c4cbd37b5f Bug 1859625 Part 2: Stop sending the GetGraphicsDeviceInitData message. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D192999
2023-11-21 16:33:47 +00:00
Brad Werth
5f4fbb29a9 Bug 1859625 Part 1: Stop sending the GetGfxVars message. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D192996
2023-11-21 16:33:47 +00:00
Jonathan Watt
c96a66c3de Bug 1865480. Rename nsIContentViewer to nsIDocumentViewer. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D193987
2023-11-21 12:45:59 +00:00
sotaro
55a951769f Bug 1865426 - Enable uploading to NV12 ID3D11Texture2D with WebRender(Software D3D11) r=gfx-reviewers,lsalzman
With the change, yuv BufferTexture is uploaded to D3D11 NV12 texture also if webrender supports D3D11 and NV12.

Calling GpuProcessD3D11TextureMap::GetTexture() is changed from RenderDXGITextureHost::EnsureD3D11Texture2DWithGL() to RenderDXGITextureHost::EnsureD3D11Texture2D(), since the EnsureD3D11Texture2DWithGL() is not called with WebRender(Software D3D11).

Differential Revision: https://phabricator.services.mozilla.com/D194171
2023-11-21 10:45:34 +00:00
Cosmin Sabou
694f8faad6 Backed out 4 changesets (bug 1846935) for mochitest plain failures on test_group_keyboard.
Backed out changeset 1816eff04e52 (bug 1846935)
Backed out changeset bafee3429b03 (bug 1846935)
Backed out changeset eeee628a5706 (bug 1846935)
Backed out changeset 3d4fe7f92237 (bug 1846935)
2023-11-21 12:01:39 +02:00
Botond Ballo
36f510aeb8 Bug 1846935 - Make helper_relative_scroll_smoothness more robust. r=hiro
During local testing, I observed the test failing because we were still
collecting samples after the animations had completed. Since we are
only synthesizing wheel events that trigger animations for a certain
duration (1500 ms), it's safer to only check samples for 1500 ms.

Depends on D194018

Differential Revision: https://phabricator.services.mozilla.com/D194019
2023-11-21 05:25:15 +00:00
Botond Ballo
3805770de1 Bug 1846935 - In APZ tests that need to slow down smooth scroll animations, slow them down with MSD physics too. r=hiro
Depends on D193393

Differential Revision: https://phabricator.services.mozilla.com/D194018
2023-11-21 05:25:15 +00:00
Botond Ballo
6088ae2572 Bug 1846935 - Use FuzzyEqualsCoordinate in the computation of userScrolled. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D193393
2023-11-21 05:25:14 +00:00
sotaro
f933534ddc Bug 1865586 - Remove CompositableClient::CreateTextureClientFromSurface() r=gfx-reviewers,nical
CompositableClient::CreateTextureClientFromSurface() is not used any more.

Differential Revision: https://phabricator.services.mozilla.com/D194038
2023-11-20 23:08:42 +00:00
sotaro
9a6a10b041 Bug 1865282 - Remove D3D9DXVA2Manager r=media-playback-reviewers,alwu
D3D9DXVA2Manager is not necessary any more since Firefox supports only Windows 10+.

Differential Revision: https://phabricator.services.mozilla.com/D193903
2023-11-20 23:07:57 +00:00
Nicolas Silva
62af8e706e Bug 1865585 - Update the wgpu glue after arcanization. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D194049
2023-11-20 19:59:31 +00:00
Nicolas Silva
250afdc9ab Bug 1865585 - Update wgpu to revision 6e21f7a9291db4395192d6b510d906978ae2d251. r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler,teoxoy
Note: This revision contains the arcanization work

# Changelog

 * #4702 Add `WasmNotSendSync`
   By daxpedda in https://github.com/gfx-rs/wgpu/pull/4702
 * #4707 Add more metal keywords
   By fornwall in https://github.com/gfx-rs/wgpu/pull/4707
 * #4706 [naga] remove `span` and `validate` features
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4706
 * #4709 [dx12] filter out haswell iGPUs
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4709
 * #4712 Fix typo in pull request template.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4712
 * #4598 Add more lints
   By daxpedda in https://github.com/gfx-rs/wgpu/pull/4598
 * #4713 [naga wgsl-in] Include base when printing pointer and array types.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4713
 * #4718 [vk] check that adapters are Vulkan compliant
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4718
 * #4719 [naga] Let constant evaluation of `As` preserve `Splat` expressions.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4719
 * #4725 Corrects typo in examples FrameCounter
   By cantudo in https://github.com/gfx-rs/wgpu/pull/4725
 * #3626 Arcanization of wgpu core resources
   By gents83 in https://github.com/gfx-rs/wgpu/pull/3626

Differential Revision: https://phabricator.services.mozilla.com/D194048
2023-11-20 19:59:30 +00:00
Botond Ballo
631e6a8b90 Bug 1864554 - Ensure that the destination passed to ScrollAnimationPhysics::Update() takes into account any previous content shift. r=hiro
It needs to work this way because GenericScrollAnimation can receive
an absolute destination in UpdateDestination(), and the caller will
pass in a destination which does take into account any previous
content shift.

(And the caller needs to work this way because e.g. it may adjust
the destination to nearby snap points, and we want snap points near
the actual final destination, not an intermediate value that will
have a content shift applied on top of it.)

This fixes APZCSmoothScrollTester.ContentShiftThenUpdateDeltaBezier.

Depends on D193717

Differential Revision: https://phabricator.services.mozilla.com/D193978
2023-11-20 18:39:39 +00:00
Botond Ballo
79b409d4e2 Bug 1864554 - Add a test that a large content shift followed by a second wheel event does not result in a wheel animation overshooting its ultimate destination. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D193717
2023-11-20 18:39:38 +00:00
Botond Ballo
488f926cec Bug 1864554 - Add a test that a content shift followed by a second wheel event updates the destination of a wheel animation correctly. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D193711
2023-11-20 18:39:38 +00:00
Jamie Nicol
cf198fa5f7 Bug 1865224 - Avoid invalidating render targets on more Mali GPUs. r=gfx-reviewers,aosmond
We had previously encountered a driver bug on Mali Valhall GPUs where
invalidating render targets once they are no longer required results
in rendering artefacts. This invalidation was purely an optimization,
which probably doesn't help much on Mali architecture anyway, so we
can workaround the bug by skipping the invalidation. See bug 1787520
for details.

The latest Mali Valhall GPUs are also affected. This patch therefore
applies the workaround to *all* "Mali-G" models apart from a list of
known working ones. This means we will avoid hitting this issue again
when the next generation of GPUs are released. Once ARM move on to the
next family we can see whether it is still affected and update the
code accordingly if required.

Differential Revision: https://phabricator.services.mozilla.com/D194063
2023-11-20 17:26:30 +00:00
Emilio Cobos Álvarez
f27edbd417 Bug 1861730 - Remove transition prefixes from nightly too. r=jwatt
Code like the one from comment 7 seems reasonable. Let's try to disable
prefixed transitions along with prefixed transforms in order to minimize
the compat fallout from CSS zoom.

While I was at it I also fixed the prefixed animation entries in the
property database and crashtests. But those aliases remain enabled.

Differential Revision: https://phabricator.services.mozilla.com/D192129
2023-11-20 12:36:30 +00:00
Emilio Cobos Álvarez
ec7a1d06ff Bug 1864425 - Remove PendingAnimationTracker. r=birtles
Instead of starting transitions and animations as a result of a paint,
use the refresh driver tick to do this.

This sets the transition-ready time to the current time during the next
refresh driver tick that it was started on (see mSawTickWhilePending).

This is similar to what's described in the bugs comments, and seems to
work nicely in practice.

We could easily change that (current time) by a paint-based time if
needed (when available), which would be more similar to what we were
doing. But I'd rather do the simple thing for now, and land this shortly
after the soft freeze is over so that we have time to watch out for
regressions.

There's one regression on a test that birtles wrote (using an XHR doc
and switching the timeline to a rendered doc's timeline).

We use the timeline's document rather than the target document to
determine whether to trigger animations now. That's one of the cases
where we'd keep vsync perma-running without this patch, and Chrome also
fails that test. Maybe the test should be removed / the spec should be
tweaked to allow this behavior?

This causes some progression in some CSS transitions tests too, and I
added an extra test for the vsync behavior.

Over-all this is much simpler to reason about and I think we should try
to do this.

Differential Revision: https://phabricator.services.mozilla.com/D193583
2023-11-20 09:31:41 +00:00
Cristian Tuns
d7102b46e2 Backed out changeset b403bb5b1c83 (bug 1861730) for causing mochitest failures in test_moz_prefixed_properties.html CLOSED TREE 2023-11-19 07:03:19 -05:00
Emilio Cobos Álvarez
0fbcd96216 Bug 1861730 - Remove transition prefixes from nightly too. r=jwatt
Code like the one from comment 7 seems reasonable. Let's try to disable
prefixed transitions along with prefixed transforms in order to minimize
the compat fallout from CSS zoom.

While I was at it I also fixed the prefixed animation entries in the
property database and crashtests. But those aliases remain enabled.

Differential Revision: https://phabricator.services.mozilla.com/D192129
2023-11-19 11:07:57 +00:00
Nicolas Silva
cda6d17d86 Bug 1865344 - Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193917
2023-11-17 23:10:14 +00:00
Sandor Molnar
faa8b18a42 Backed out changeset 19ae48adbcb0 (bug 1865344) for causing build bustages. CLOSED TREE 2023-11-18 00:41:48 +02:00
Nicolas Silva
8a299d5548 Bug 1865344 - Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193917
2023-11-17 22:17:08 +00:00
Cosmin Sabou
67fb6731e0 Backed out 2 changesets (bug 1865344) for causing build bustages. CLOSED TREE
Backed out changeset 5d8a8fd9c20d (bug 1865344)
Backed out changeset 066e630d3ddf (bug 1865344)
2023-11-17 22:58:29 +02:00
Cosmin Sabou
b85f977f48 Bug 1865344 - Fix typo and hopefully unbust builds. a=bustage-fix CLOSED TREE 2023-11-17 22:35:52 +02:00
Nicolas Silva
2620a4921c Bug 1865344 - Cap a few WebGPU limits to reasonable values. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193917
2023-11-17 20:11:38 +00:00
Nicolas Silva
782a28a3e5 Bug 1857929 - Set the wgpu flag to filter out labels. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193812
2023-11-17 18:39:06 +00:00
Teodor Tanasoaia
efa811a62f Bug 1865218 - Update wgpu to revision 3ec547cdcaaa14488327d8f1b5f7736278c4178d. r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193850
2023-11-17 18:26:48 +00:00
Sebastian Hengst
e246c64e78 Bug 1863630 - adjust reftest expectations on Windows after directWrite update. r=jfkthame
Since the upgrade of the Windows testers to the October 2023 version of Windows,
the anti-aliasing returns different results. The directWrite version changed
from 10.0.22621.1635 to 10.0.22621.2428

Differential Revision: https://phabricator.services.mozilla.com/D193926
2023-11-17 17:17:29 +00:00
Natalia Csoregi
37349c99af Backed out changeset 6c001801363e (bug 1857929) for causing build bustages. CLOSED TREE 2023-11-17 18:46:10 +02:00
Nicolas Silva
aef69a4d8e Bug 1857929 - Set the wgpu flag to filter out labels. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193812
2023-11-17 16:15:59 +00:00
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
stransky
61f8c45661 Bug 1856560 [Wayland] Rename SavedGLSurface to WaylandOffscreenGLSurface r=lsalzman
Depends on D190152

Differential Revision: https://phabricator.services.mozilla.com/D193545
2023-11-15 08:54:58 +00:00
stransky
f84a5585aa Bug 1856560 Implement GLContextEGL::DestroySurface() and use to release EGL surfaces r=lsalzman
Use sigle point of release for EGL surfaces (GLContextEGL::DestroySurface()) and also release Wayland related structures here.

Differential Revision: https://phabricator.services.mozilla.com/D190152
2023-11-15 08:54:58 +00:00
Jonathan Kew
3ce96c6ffa Bug 1803406 - Activate supplementary fonts in all processes, to ensure consistent font lists across macOS processes. r=gfx-reviewers,lsalzman
Removed the use of kCTFontOptionsPreferSystemFont that was in the previous version
of this patch, given the issues we saw in bug 1858869 -- that option appears to be
much too aggressive about using system fonts rather than user-installed ones. So
we retain only the gfxPlatformMac font-activation change.

Differential Revision: https://phabricator.services.mozilla.com/D170286
2023-11-14 17:30:53 +00:00
Jeff Muizelaar
8263a24232 Bug 1864537 - Drop an unused deviceOffset parameter. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D193487
2023-11-14 04:48:54 +00:00
Otto Länd
32fb91a53b Bug 1863367: apply code formatting via Lando
# ignore-this-changeset
2023-11-14 02:14:37 +00:00
Andrew Osmond
c13f529a55 Bug 1863367 - Part 8. Implement NVImage::BuildSurfaceDescriptorBuffer. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D193083
2023-11-14 02:04:07 +00:00
Andrew Osmond
c889b9bee9 Bug 1863367 - Part 7. Implement BuildSurfaceDescriptorBuffer on Image subclasses for Windows. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D193082
2023-11-14 02:04:06 +00:00