27465 Commits

Author SHA1 Message Date
Jonah Williams
833a31300a [Impeller] dont create mipmap when mipcount == 1 (flutter/engine#39950)
[Impeller] dont create mipmap when mipcount == 1
2023-02-28 19:47:07 +00:00
Greg Spencer
c55ce6d9be Reland: Add testing hints (#39868) (flutter/engine#39931)
Reland: Add testing hints (#39868)
2023-02-28 19:39:46 +00:00
Jonah Williams
59191dd6c0 [Impeller] remove emulation of clamp, repeat, and mirror tile modes (flutter/engine#39948)
[Impeller] remove emulation of clamp, repeat, and mirror tile modes
2023-02-28 19:02:46 +00:00
skia-flutter-autoroll
8ed659cce3 Roll Fuchsia Mac SDK from 7eLQAJldHyttOlid3... to CyF7Zv5YjfR_wEsCI... (flutter/engine#39951)
Roll Fuchsia Mac SDK from 7eLQAJldHyttOlid3... to CyF7Zv5YjfR_wEsCI...
2023-02-28 18:15:22 +00:00
skia-flutter-autoroll
851f35fadf Roll Skia from 272946c7c142 to 7e0367e830b8 (5 revisions) (flutter/engine#39949)
Roll Skia from 272946c7c142 to 7e0367e830b8 (5 revisions)
2023-02-28 18:02:01 +00:00
skia-flutter-autoroll
c7114a689d Roll Skia from b36fa840c424 to 272946c7c142 (1 revision) (flutter/engine#39942)
Roll Skia from b36fa840c424 to 272946c7c142 (1 revision)
2023-02-28 09:05:15 +00:00
skia-flutter-autoroll
a5923aa4fa Roll Skia from d34e9e59922c to b36fa840c424 (3 revisions) (flutter/engine#39940)
Roll Skia from d34e9e59922c to b36fa840c424 (3 revisions)
2023-02-28 07:11:57 +00:00
skia-flutter-autoroll
ab8cac02f7 Roll Skia from 7a03a0e52abb to d34e9e59922c (3 revisions) (flutter/engine#39939)
Roll Skia from 7a03a0e52abb to d34e9e59922c (3 revisions)
2023-02-28 05:34:52 +00:00
skia-flutter-autoroll
39495e89d0 Roll Fuchsia Mac SDK from MJVDOc_XyHzPOTAY7... to 7eLQAJldHyttOlid3... (flutter/engine#39938)
Roll Fuchsia Mac SDK from MJVDOc_XyHzPOTAY7... to 7eLQAJldHyttOlid3...
2023-02-28 05:29:18 +00:00
Chinmay Garde
605e76a154 [Impeller] Patch up sundry issues in the Vulkan backend. (flutter/engine#39905)
Kaushik already did most of the great work. This patch gets us to a point where
all the playgrounds tests pass and the common performance optimizations are in
place. All known non-compute Impeller features should be implemented. There are
iOS only performance optimizations that haven’t been opted into because these
are behind define guards. These need to be generalized. Without that, the
performance of this backend will lag behind that of the Metal backend but only
because it is not an apples to apples comparison.

The general rubric was to keep the code and concepts as similar to the Metal
backend as possible.

The list of updates, all to the Vulkan Impeller backend:

* MSAA is wired up.
* Depth and stencil attachments and pipeline states are wired up.
* Got rid of Vulkan specific hacks in the inline pass context that were
  preventing clips from working.
* Storage modes for both device buffer and texture allocation are respected.
  This includes optimal usage of tile memory for device transient attachments.
* Host coherent memory for textures is no longer a requirement with explicit
  mapping management and write flushes.
* Texture uploads should be optimized for the UMA case without needing a staging
  buffer. That entire pipeline has been reworked.
* Textures track their current layout and ensure they get to the right layout
  based on usage without redundant transitions.
* Cube textures are now supported.
* Mipmapping has been reworked to correct image layout errors. With the new
  texture layout transition management, blit passes should be a whole lot easier
  to read and reason about.
* Allocator allocations are named using Vulkan debug utilities and the allocator
  (VMA). Comes in handy when chasing leaks. All of which are chased down.
* Left some handy utilities in there to debug resource leaks after context
  shutdown.  These are validation errors.
* Debug groups are pushed around render pass command encoding as well as the
  entire pass contents. This mimics the behavior of the Metal backend and it
  should be easy to map traces using both backends in Xcode and RenderDoc.
* Command buffer submission allows for tracking the life cycles of all resources
  referenced in the command stream and ensuring that the objects stay alive till
  past the submission of the command buffer. All use-after-free issues due to
  this class of issue have been chased down.
* Command pools are now context global instead of being created per pass.
* Descriptor pool are now context global instead of being created per pass.
  Individual descriptor types are now reference counted and returned to the pool
  when not needed. The pool is still fixed size though (and hence relatively
  large).
* All instances of global waitIdle on the device are removed during normal
  operation. The only times a waitIdle may happen is during swapchain recreation
  and context destruction.
* Swapchain adapt to them going out of date with the underlying surface and
  seamlessly resize as necessary on the next drawable acquisition.
* Playgrounds are resizable.
* Pipeline front face and cull modes are respected.
* Clears for all attachments are respected.
* Maximum textures sizes supported on the device are respected instead of
  hardcoding the minimum Vulkan requirement.

Fixes https://github.com/flutter/flutter/issues/112388
Fixes https://github.com/flutter/flutter/issues/112648
Fixes https://github.com/flutter/flutter/issues/112647 and a few other issues...
2023-02-27 21:14:06 -08:00
Brandon DeRosier
c5c9a0bb62 [Impeller] Use blit for root pass copy (flutter/engine#39933) 2023-02-27 20:08:01 -08:00
skia-flutter-autoroll
873ec421ff Roll Skia from 40d29bfd33c3 to 7a03a0e52abb (8 revisions) (flutter/engine#39929)
Roll Skia from 40d29bfd33c3 to 7a03a0e52abb (8 revisions)
2023-02-28 02:08:14 +00:00
luckysmg
81ca014db1 [Impeller] Share LazyGlyphAtlas across EntityPass (flutter/engine#38244)
[Impeller] Share LazyGlyphAtlas across EntityPass
2023-02-28 02:00:21 +00:00
Brandon DeRosier
a623c8ee4f Fix pylint error (flutter/engine#39934) 2023-02-27 17:23:17 -08:00
Xilai Zhang
97d8b0a936 [gn + codesign] add metadata for path ops (flutter/engine#39698)
[gn + codesign] add metadata for path ops
2023-02-28 00:14:15 +00:00
Xilai Zhang
067d157989 [gn + codesign] add android artifact metadata to legacy build target (flutter/engine#39696)
[gn + codesign] add android artifact metadata to legacy build target
2023-02-28 00:06:46 +00:00
Xilai Zhang
4bf5a04e84 [gn + codesign] move snapshot meta data to generators (flutter/engine#39726)
[gn + codesign] move snapshot meta data to generators
2023-02-28 00:06:43 +00:00
Dan Field
d2b6e2e0a6 Actually print out if xcrun metal fails (flutter/engine#39926)
Actually print out if xcrun metal fails
2023-02-27 23:39:06 +00:00
Brandon DeRosier
e2094f6128 [Impeller] Add texture->texture blits to device capabilities (flutter/engine#39924) 2023-02-27 15:16:00 -08:00
Jackson Gardner
3d9c2fcfc9 Remove unused flag skia_canvaskit_enable_particles (flutter/engine#39925)
Remove unused flag `skia_canvaskit_enable_particles`
2023-02-27 22:21:57 +00:00
Michael Goderbauer
01bb2e24bc Fix shader doc references (flutter/engine#39855)
Fix shader doc references
2023-02-27 22:09:48 +00:00
Jonah Williams
a832a60560 [Impeller] texture coordinates implementation (flutter/engine#39781)
[Impeller] texture coordinates implementation
2023-02-27 22:01:16 +00:00
Jaeheon Yi
203ba859ed [fuchsia] Avoid log spam (flutter/engine#39862)
[fuchsia] Avoid log spam
2023-02-27 21:55:15 +00:00
Brandon DeRosier
f52e760893 [Impeller] Fix test failure for IMPELLER_ENABLE_3D (flutter/engine#39919)
[Impeller] Fix test failure for IMPELLER_ENABLE_3D
2023-02-27 21:36:42 +00:00
skia-flutter-autoroll
51985242f9 Roll Skia from 92f1d2274214 to 40d29bfd33c3 (18 revisions) (flutter/engine#39916)
Roll Skia from 92f1d2274214 to 40d29bfd33c3 (18 revisions)
2023-02-27 21:15:18 +00:00
Dan Field
1d111e1732 [Impeller] Change Path::CreatePolyline from tolerance to scale, and make it required (flutter/engine#39917)
[Impeller] Change Path::CreatePolyline from tolerance to scale, and make it required
2023-02-27 21:12:09 +00:00
Zachary Anderson
a3d5c25a5c Revert "Add testing hints (#39868)" (flutter/engine#39921)
Revert "Add testing hints"
2023-02-27 20:36:03 +00:00
Greg Spencer
2f30f0c6a4 Add testing hints (flutter/engine#39868)
Add testing hints
2023-02-27 20:08:53 +00:00
Jonah Williams
2fb0258c8c [Impeller] move most texture flips to vertex shader (flutter/engine#39872)
[Impeller] move most texture flips to vertex shader
2023-02-27 20:07:05 +00:00
gaaclarke
e52501822b Turned off wide gamut color pixel format for the simulator since it (flutter/engine#39825)
Turned off wide gamut color pixel format for the simulator
2023-02-27 18:19:14 +00:00
Jonah Williams
dc786470e6 [Impeller] dont append to existing atlas if type changed (flutter/engine#39913)
[Impeller] dont append to existing atlas if type changed
2023-02-27 17:02:48 +00:00
Jason Simmons
ad789d08f8 [Impeller] drawAtlas performance improvements (flutter/engine#39865)
[Impeller] drawAtlas performance improvements
2023-02-27 17:01:41 +00:00
skia-flutter-autoroll
083ab1488a Roll Fuchsia Mac SDK from EUG2_YQagdm0RPRlc... to MJVDOc_XyHzPOTAY7... (flutter/engine#39912)
Roll Fuchsia Mac SDK from EUG2_YQagdm0RPRlc... to MJVDOc_XyHzPOTAY7...
2023-02-27 15:55:23 +00:00
skia-flutter-autoroll
30e3738f62 Roll Dart SDK from 046c78d307d7 to 6095d12c274b (1 revision) (flutter/engine#39911)
Roll Dart SDK from 046c78d307d7 to 6095d12c274b (1 revision)
2023-02-27 14:36:09 +00:00
skia-flutter-autoroll
714b98b7c4 Roll Dart SDK from 2a2b8bc0b434 to 046c78d307d7 (1 revision) (flutter/engine#39907)
Roll Dart SDK from 2a2b8bc0b434 to 046c78d307d7 (1 revision)
2023-02-27 09:25:13 +00:00
skia-flutter-autoroll
99a4fd92e8 Roll Fuchsia Mac SDK from lz0NIfjcTGrVbRkV2... to EUG2_YQagdm0RPRlc... (flutter/engine#39901)
Roll Fuchsia Mac SDK from lz0NIfjcTGrVbRkV2... to EUG2_YQagdm0RPRlc...
2023-02-27 03:04:22 +00:00
skia-flutter-autoroll
746a699d0f Roll Dart SDK from 30f20b81c857 to 2a2b8bc0b434 (3 revisions) (flutter/engine#39902)
Roll Dart SDK from 30f20b81c857 to 2a2b8bc0b434 (3 revisions)
2023-02-27 02:58:21 +00:00
skia-flutter-autoroll
b3464b8b25 Roll ICU from c6b685223182 to 1e49ac26ddc7 (1 revision) (flutter/engine#39899)
Roll ICU from c6b685223182 to 1e49ac26ddc7 (1 revision)
2023-02-27 00:22:22 +00:00
skia-flutter-autoroll
3cc1ae3a19 Roll Fuchsia Mac SDK from jmdJzdnm_5bNiNAB5... to lz0NIfjcTGrVbRkV2... (flutter/engine#39894)
Roll Fuchsia Mac SDK from jmdJzdnm_5bNiNAB5... to lz0NIfjcTGrVbRkV2...
2023-02-26 13:46:02 +00:00
skia-flutter-autoroll
efcd9623eb Roll Fuchsia Mac SDK from wtSn1iCpHYqcNOWFY... to jmdJzdnm_5bNiNAB5... (flutter/engine#39888)
Roll Fuchsia Mac SDK from wtSn1iCpHYqcNOWFY... to jmdJzdnm_5bNiNAB5...
2023-02-26 00:59:25 +00:00
skia-flutter-autoroll
6f65849f11 Roll Skia from 26d0fec03f78 to 92f1d2274214 (1 revision) (flutter/engine#39884)
Roll Skia from 26d0fec03f78 to 92f1d2274214 (1 revision)
2023-02-25 20:20:17 +00:00
skia-flutter-autoroll
5ed35a7f63 Roll Skia from 9b91a4116d13 to 26d0fec03f78 (1 revision) (flutter/engine#39883)
Roll Skia from 9b91a4116d13 to 26d0fec03f78 (1 revision)
2023-02-25 19:12:28 +00:00
skia-flutter-autoroll
a096982121 Roll Fuchsia Mac SDK from yH66bYEkvZAwnmz1h... to wtSn1iCpHYqcNOWFY... (flutter/engine#39879)
Roll Fuchsia Mac SDK from yH66bYEkvZAwnmz1h... to wtSn1iCpHYqcNOWFY...
2023-02-25 09:29:18 +00:00
Dan Field
2b5621327b [Impeller] Avoid printing inactionable warning from Metal compiler (flutter/engine#39859)
[Impeller] Avoid printing inactionable warning from Metal compiler
2023-02-25 07:51:08 +00:00
skia-flutter-autoroll
1fb215e23b Roll Skia from 84dbaef3909d to 9b91a4116d13 (1 revision) (flutter/engine#39877)
Roll Skia from 84dbaef3909d to 9b91a4116d13 (1 revision)
2023-02-25 07:51:06 +00:00
Jonah Williams
d1f897af08 [Impeller] all vertex UBOs now named VertInfo, all fragment ubos now named FragInfo (flutter/engine#39869)
[Impeller] all vertex UBOs now named FrameInfo, all fragment ubos now named FragInfo
2023-02-25 05:36:08 +00:00
skia-flutter-autoroll
ef2885de89 Manual roll Dart SDK from 602941be8007 to 30f20b81c857 (6 revisions) (flutter/engine#39873)
Manual roll Dart SDK from 602941be8007 to 30f20b81c857 (6 revisions)
2023-02-25 04:57:13 +00:00
skia-flutter-autoroll
79d81f93a0 Roll Skia from ce6d48da7883 to 84dbaef3909d (4 revisions) (flutter/engine#39867)
Roll Skia from ce6d48da7883 to 84dbaef3909d (4 revisions)
2023-02-25 02:02:35 +00:00
Jim Graham
7ac53d958d delete DL ops no longer needed after removing SkCanvasRecorder (flutter/engine#39863)
delete DL ops no longer needed after removing SkCanvasRecorder
2023-02-25 01:42:20 +00:00
skia-flutter-autoroll
fe2238aa8e Roll Skia from 11f351576a5e to ce6d48da7883 (9 revisions) (flutter/engine#39864)
Roll Skia from 11f351576a5e to ce6d48da7883 (9 revisions)
2023-02-25 00:08:34 +00:00