[Impeller] fold memory check into allocator_vk#51187
[Impeller] fold memory check into allocator_vk#51187auto-submit[bot] merged 7 commits intoflutter:mainfrom
Conversation
matanlurey
left a comment
There was a problem hiding this comment.
It was a little tough to review 5 changes at once, especially as I'm not super familiar. If these changes aren't interconnected I'd recommend splitting them up somewhat, if they are then I suppose it's fine 😅
| // Query texture support. | ||
| // TODO(jonahwilliams): | ||
| // https://github.com/flutter/flutter/issues/129784 | ||
| physical_device.getMemoryProperties(&memory_properties_); |
There was a problem hiding this comment.
Wasn't this already done above on line 182? Or is the scope significant somehow?
There was a problem hiding this comment.
oh good call. Will fix
| for (auto i = 0u; i < memory_properties_.memoryTypeCount; i++) { | ||
| if (memory_properties_.memoryTypes[i].propertyFlags & | ||
| vk::MemoryPropertyFlagBits::eLazilyAllocated) { | ||
| supports_memoryless_textures_ = true; |
There was a problem hiding this comment.
break after since it doesn't seem relevant to iterate through once we find one?
046b052 to
99c9ce7
Compare
Framework side to flutter/engine#51187 Part of #144617
flutter/engine@44405ae...5bbac1a 2024-03-06 [email protected] [Impeller] fold memory check into allocator_vk (flutter/engine#51187) 2024-03-06 [email protected] Roll Fuchsia Linux SDK from ujOkbeYbrC8loPbfR... to y67DIBX84h7pAekIp... (flutter/engine#51233) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from ujOkbeYbrC8l to y67DIBX84h7p If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
|
A reason for requesting a revert of flutter/engine/51187 could |
This reverts commit 5bbac1a.
…1243) Reverts: #51187 Initiated by: jonahwilliams Reason for reverting: unexpected benchmark regression https://flutter-flutter-perf.skia.org/e/?queries=device_type%3DPixel_7_Pro%26sub_result%3D90th_percentile_frame_rasterizer_time_millis%26sub_result%3D99th_percentile_frame_rasterizer_time_millis%26sub_result%3Daverage_frame_rasterizer_time_millis%26sub_result%3Dworst_frame_rasterizer_time_millis%26test%3Dnew_gallery_impeller__transition_perf&selected=commit%3D396 Original PR Author: jonahwilliams Reviewed By: {matanlurey} This change reverts the following previous change: Various cleanups to Vulkan allocator implementation: 1. Fixes flutter/flutter#137454 2. Fold device transient cap check into allocator. 3. adds debug tracking for total memory usage in MB (a followup change needs to be made to driver to plumb it through) 4. Small cleanups to mock vulkan so an allocator can be created from it. 5. depth/stencil shouldn't be input attachments. Part of flutter/flutter#144617
) Part of flutter/flutter#144617 Adds MemoryBudgetUsageMB which includes the MB of VMA allocated GPU and host memory, approximately per frame. This will be recorded in the devicelab and used to track how much memory pressure we're creating. Split out from #51187 since that was reverted (and doing big changes is a bad idea anyway).
Various cleanups to Vulkan allocator implementation:
Part of flutter/flutter#144617