Commit Graph

56 Commits

Author SHA1 Message Date
sotaro
ac27dc04d9 Bug 1744666 - Remove CompositorD3D11::mUseForSoftwareWebRender r=gfx-reviewers,lsalzman
CompositorD3D11 is used only for software WebRender in gecko. We could remove CompositorD3D11::mUseForSoftwareWebRender.

Differential Revision: https://phabricator.services.mozilla.com/D133039
2021-12-07 07:34:00 +00:00
Matt Woodrow
6946693a54 Bug 1730055 - Remove some unused Compositor API. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D125134
2021-09-22 05:27:20 +00:00
sotaro
9e2c6afa08 Bug 1727511 - Add mozlog around WebRenderBridgeParent and RenderThread r=gfx-reviewers,jrmuizel,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D123616
2021-09-01 22:27:15 +00:00
criss
7bdf12d8cb Backed out changeset 25acfe977062 (bug 1727511) for causing valgrind build bustages. CLOSED TREE 2021-08-27 18:24:28 +03:00
sotaro
8d3454c2ea Bug 1727511 - Add mozlog around WebRenderBridgeParent and RenderThread r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123616
2021-08-27 06:37:32 +00:00
Matt Woodrow
346293c213 Bug 1727672 - Remove LayerManagerComposite. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123708
2021-08-26 04:59:57 +00:00
Andrew Osmond
bcf1183b5c Bug 1718329 - Gracefully handle device reset when mapping tiles with SW-WR + D3D11 compositing. r=jrmuizel
If we encounter a device reset in
RenderCompositorD3D11SWGL::TileD3D11::Map, we should fail the call, and
rely upon the device reset checks at the end of a render pass to
recreate our compositor sessions.

Differential Revision: https://phabricator.services.mozilla.com/D121251
2021-07-29 22:45:41 +00:00
Jeff Muizelaar
3ab550bbe8 Bug 1721903 - Add the error code when we fail to Map a tile.
Differential Revision: https://phabricator.services.mozilla.com/D120675
2021-07-22 21:33:56 +00:00
Jeff Muizelaar
436cb3c6ce Bug 1718334 - RELEASE_ASSERT the last map succeeded. r=jgilbert
The RELEASE_ASSERT below is failing so this will help
us narrow down which Map() call it might be.

Differential Revision: https://phabricator.services.mozilla.com/D118866
2021-06-25 20:56:14 +00:00
Jeff Gilbert
f1882eaba6 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-25 19:16:22 +00:00
Iulian Moraru
41e2243475 Backed out changeset 10a229d128c0 (bug 1459526) for causing reftest failures on short.mp4.lastframe.html. CLOSED TREE 2021-06-25 06:34:36 +03:00
Jeff Gilbert
7e7f2da6f6 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-24 23:43:31 +00:00
Jeff Muizelaar
e13c9a7b02 Bug 1717966 - MOZ_RELEASE_ASSERT that we succesfully have a buffer. r=mattwoodrow
If we've failed we're going to crash anyways so might as well
do it sooner and more descriptively.

Differential Revision: https://phabricator.services.mozilla.com/D118665
2021-06-24 00:39:18 +00:00
Jeff Muizelaar
341f5756c1 Bug 1717737 - Probe mapped data to ensure it's writable. r=mattwoodrow
In bug 1717519 we're seeing access violations when writing
to the destination with SWGL. This does some early writes
to try to catch the problem earlier.

Differential Revision: https://phabricator.services.mozilla.com/D118556
2021-06-23 02:33:20 +00:00
Alexandru Michis
e99faba1e5 Backed out changeset f7016db57a2e (bug 1459526) for causing reftest failures.
CLOSED TREE
2021-06-18 07:49:06 +03:00
Jeff Gilbert
c5e0b83a15 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-17 23:43:34 +00:00
Butkovits Atila
bfe44a96dd Backed out changeset 318f32313091 (bug 1459526) for causing wrench bustages. CLOSED TREE 2021-06-17 04:45:11 +03:00
Jeff Gilbert
990bd2a1b6 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-17 01:12:18 +00:00
Nicolas Silva
dfc9df51f1 Bug 1711648 - Move all device rects to the Box2D representations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116401
2021-06-02 12:47:03 +00:00
Csoregi Natalia
7ed99ffc26 Backed out 3 changesets (bug 1713544, bug 1711648) for valgrind failures. CLOSED TREE
Backed out changeset 9449ea40b4fd (bug 1713544)
Backed out changeset 3d51bfaa0d8d (bug 1711648)
Backed out changeset c6c83dc97cbb (bug 1711648)
2021-06-02 10:43:16 +03:00
Nicolas Silva
f5d56e52c1 Bug 1711648 - Move all device rects to the Box2D representations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116401

Depends on D116266
2021-06-01 21:25:19 +00:00
Butkovits Atila
4743378987 Backed out 2 changesets (bug 1711648) for causing wrench bustages. CLOSED TREE
Backed out changeset 7f1ae1fdd305 (bug 1711648)
Backed out changeset 71807d4e6302 (bug 1711648)
2021-06-02 01:28:29 +03:00
Nicolas Silva
fec70994ee Bug 1711648 - Move all device rects to the Box2D representations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116401
2021-06-01 21:25:19 +00:00
Butkovits Atila
4678b0836d Backed out 2 changesets (bug 1711648) for causing failures at grid-max-sizing-flex-002.html. CLOSED TREE
Backed out changeset 9cf4e612dbac (bug 1711648)
Backed out changeset 7d8bba559407 (bug 1711648)
2021-06-01 21:07:34 +03:00
Nicolas Silva
91ac17f69b Bug 1711648 - Move all device rects to the Box2D representations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116401
2021-06-01 16:30:36 +00:00
Robert Mader
59e46e798f Bug 1707943 - webrender_bindings: Fix warnings and apply suggestions form static analysis, r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D113603
2021-04-28 12:33:55 +00:00
sotaro
f35c1cbf22 Bug 1697335 - Fallback from WebRender (Software D3D11) to WebRender (Software) when ID3D11Texture2D allocation of tile fails r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D107766
2021-03-10 05:22:45 +00:00
sotaro
6c1d79b6b1 Bug 1696325 - Handle StagingTexture allocation failure in RenderCompositorD3D11SWGL r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D107176
2021-03-08 23:41:58 +00:00
sotaro
72951b87d4 Bug 1694822 - Fix return of RenderCompositorD3D11SWGL::DoCreateTile() r=mattwoodrow
"return" was removed by mistake.

Differential Revision: https://phabricator.services.mozilla.com/D106360
2021-02-26 03:56:40 +00:00
Andrew Osmond
293ca6b311 Bug 1688096 - Part 2. Add flag to CompositorOptions to allow SW-WR on a per widget basis. r=mattwoodrow
The pref gfx.webrender.software.unaccelerated-widget.allow may be used
to allow software WebRender to be used with new windows/popups that have
transparency on Windows. Otherwise they would fallback to basic layers.

Similarly, the pref gfx.webrender.software.unaccelerated-widget.force
may be used to force software WebRender for all windows that would
fallback to basic layers.

Differential Revision: https://phabricator.services.mozilla.com/D104855
2021-02-24 19:40:00 +00:00
sotaro
05ffac7d97 Bug 1677459 - Split platform independent part to RenderCompositorCompositorSWGL r=mattwoodrow
The change is a preparation of Bug 1673342

Differential Revision: https://phabricator.services.mozilla.com/D99046
2021-02-23 08:57:27 +00:00
Mihai Alexandru Michis
b718dcf4ee Backed out changeset 8908ec20b487 (bug 1677459) for causing reftest assertion failures in LayersTypes.cpp
CLOSED TREE
2021-02-23 03:11:50 +02:00
sotaro
c5f8aa7340 Bug 1677459 - Split platform independent part to RenderCompositorCompositorSWGL r=mattwoodrow
The change is a preparation of Bug 1673342

Differential Revision: https://phabricator.services.mozilla.com/D99046
2021-02-22 21:55:50 +00:00
sotaro
c5f2693130 Bug 1690491 - Add Texture2D allocation failure handling to RenderCompositorD3D11SWGL r=mattwoodrow
Texture2D allocation could fail by oom or device reset.

Differential Revision: https://phabricator.services.mozilla.com/D105406
2021-02-18 00:38:12 +00:00
sotaro
43490d488b Bug 1682483 - Make RenderCompositorD3D11SWGL::AttachExternalImage() fallible r=mattwoodrow
Make RenderCompositorD3D11SWGL::AttachExternalImage() to fallible like RenderThread::GetRenderTexture().

Differential Revision: https://phabricator.services.mozilla.com/D103422
2021-02-01 03:06:18 +00:00
Matt Woodrow
3e44e18ebf Bug 1685437 - Add multiple texture methods to RenderCompositorD3D11SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D100972
2021-01-10 22:49:39 +00:00
sotaro
799da0c966 Bug 1682753 - Add device reset handling to RenderCompositorD3D11SWGL r=aosmond
Implementation is borrowed from RenderCompositorANGLE::IsContextLost().

Differential Revision: https://phabricator.services.mozilla.com/D100376
2020-12-24 16:35:56 +00:00
sotaro
c6a5bf2915 Bug 1683606 - Avoid crash by using ID3D11Texture2D that uses obsoleted ID3D11Device r=mattwoodrow
Usage of ID3D11Texture2D that uses obsoleted ID3D11Device caused crash.

Differential Revision: https://phabricator.services.mozilla.com/D100225
2020-12-21 23:40:14 +00:00
sotaro
d07770a47f Bug 1681869 - Add screenshots and frame recording support to RenderCompositorD3D11SWGL r=mstange
Implementation mimics RenderCompositorNative and uses Compositor screenshot handling.

Differential Revision: https://phabricator.services.mozilla.com/D99418
2020-12-11 21:41:45 +00:00
Lee Salzman
77670103bd Bug 1677236 - don't require padding for SWGL FBO textures. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97061
2020-11-16 16:43:23 +00:00
Matt Woodrow
42b3726235 Bug 1677211 - Add Read access flags to D3D11 staging textures to avoid slow accesses when reading our intermediate results. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97106
2020-11-16 03:21:52 +00:00
Matt Woodrow
f42eabe29c Bug 1676332 - Use D3D11 staging textures within RenderCompositorD3D11SWGL for faster uploads. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D96665
2020-11-12 01:21:41 +00:00
smolnar
7432d825bb Backed out 1 changesets (bug 1676332) for causing reftest failures. CLOSED TREE
Backed out changeset e767b7053baa (bug 1676332)
2020-11-11 10:27:34 +02:00
Matt Woodrow
f367354b17 Bug 1676332 - Use D3D11 staging textures within RenderCompositorD3D11SWGL for faster uploads. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D96665
2020-11-11 03:54:36 +00:00
Matt Woodrow
89e6da142a Bug 1675665 - Don't draw surfaces if we're not currently presenting a frame. r=lsalzman
WR can run an update which outputs the compositor surfaces, but never calls Begin/EndFrame.

Differential Revision: https://phabricator.services.mozilla.com/D96380
2020-11-09 22:05:46 +00:00
Matt Woodrow
c516921248 Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95800
2020-11-06 00:01:54 +00:00
Matt Woodrow
f86b268b7f Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95799
2020-11-06 00:01:36 +00:00
Matt Woodrow
80914cf793 Bug 1673983 - Add D3D11 RenderCompositor for SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95797
2020-11-06 00:00:47 +00:00
Narcis Beleuzu
f50b91d160 Backed out 4 changesets (bug 1673983) for linting failure on moz.build CLOSED TREE
Backed out changeset f408fc890ba1 (bug 1673983)
Backed out changeset 49ae9de85ab9 (bug 1673983)
Backed out changeset 91d8f0f829fd (bug 1673983)
Backed out changeset 91cb8ee8ddd8 (bug 1673983)
2020-11-06 00:10:34 +02:00
Matt Woodrow
e687f1e42b Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95800
2020-11-05 19:27:23 +00:00