Skip to content

[vulkan]: adds "color attachment read" dst dependency to subpass - #195714

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
gaaclarke:vulkan-color-loadop-sync
Nov 3, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
gaaclarke:vulkan-color-loadop-sync

Conversation

@gaaclarke

Copy link
Copy Markdown
Member

This fixes a violation flagged by the synch validation layers. It adds a "color attachment read" dst dependency to the subpass.

gemini description:

A color attachment with LoadAction::kLoad is read by its loadOp at COLOR_ATTACHMENT_OUTPUT with COLOR_ATTACHMENT_READ access. The incoming VK_SUBPASS_EXTERNAL dependency only listed COLOR_ATTACHMENT_WRITE in its dstAccessMask, so the layout transition and earlier writes weren't made visible to the load. Add COLOR_ATTACHMENT_READ to the destination scope.

Adds Play/RendererTest.CachesRenderPassAndFramebufferMixed/Vulkan to the Vulkan sync validation shard.

Fixes #195696

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Oct 30, 2026
@gaaclarke
gaaclarke requested a review from andywolff October 30, 2026 21:31
@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Oct 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Vulkan render pass builder to include eColorAttachmentRead in the destination access mask of the self-dependency, ensuring that layout transitions and earlier writes are visible to color attachments with a LOAD loadOp. Additionally, it adds Play/RendererTest.CachesRenderPassAndFramebufferMixed/Vulkan to the Vulkan validation environment test list in run_tests.py. There are no review comments, and I have no additional feedback to provide.

@gaaclarke gaaclarke changed the title [vulkan]: [vulkan]: adds "color attachment read" dst dependency to subpass Oct 30, 2026
andywolff
andywolff previously approved these changes Nov 2, 2026

@andywolff andywolff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but CI is failing, it seems you'll need to merge #195689 and rebase this before trying to land

…oming dependency

A color attachment with LoadAction::kLoad is read by its loadOp at
COLOR_ATTACHMENT_OUTPUT with COLOR_ATTACHMENT_READ access. The incoming
VK_SUBPASS_EXTERNAL dependency only listed COLOR_ATTACHMENT_WRITE in its
dstAccessMask, so the layout transition and earlier writes weren't made
visible to the load. Add COLOR_ATTACHMENT_READ to the destination scope.

Adds Play/RendererTest.CachesRenderPassAndFramebufferMixed/Vulkan to the
Vulkan sync validation shard.

Fixes flutter#195696
@andywolff andywolff added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 3, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Nov 3, 2026
Merged via the queue into flutter:master with commit abb7fa6 Nov 3, 2026
23 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 3, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Nov 4, 2026
flutter/flutter@9347202...3623d2d

2026-11-04 [email protected] Roll Skia from 49ec2655bf51 to aaa39bfcd393 (5 revisions) (flutter/flutter#195956)
2026-11-04 [email protected] Roll pub packages (flutter/flutter#195950)
2026-11-04 [email protected] Roll pub packages (flutter/flutter#195948)
2026-11-04 [email protected] local_engine_builds_common out of bringup (flutter/flutter#195862)
2026-11-04 [email protected] [web][a11y] Initialize slider semantics values when enabling (flutter/flutter#195564)
2026-11-04 [email protected] Drop Android SDK, JDK, and Gradle dependencies from framework_tests_misc (flutter/flutter#195869)
2026-11-04 [email protected] Roll Fuchsia Test Scripts from B6zarykZp6PKWRueg... to Jo-ZgQSNDuPsjlZ4s... (flutter/flutter#195937)
2026-11-04 [email protected] Balance tool_tests_commands and web_tool_tests subshards by duration (flutter/flutter#195863)
2026-11-04 [email protected] Roll Fuchsia Linux SDK from T_-6-6X1lDMghhAvX... to p0HDXLISPIElJfSz7... (flutter/flutter#195939)
2026-11-03 [email protected] Roll Skia from 3eeafac94f07 to 49ec2655bf51 (8 revisions) (flutter/flutter#195933)
2026-11-03 [email protected] Roll pub packages (flutter/flutter#195932)
2026-11-03 [email protected] [flutter_tools] Lazily initialize AppleContext dependencies via builder closures (flutter/flutter#191992)
2026-11-03 [email protected] [Android] Upgrade linux_android_emu_vulkan_stable avd_cipd_version to 36.1.9 (build_id:8670032186093418337) (flutter/flutter#195856)
2026-11-03 [email protected] [vulkan]: adds "color attachment read" dst dependency to subpass (flutter/flutter#195714)
2026-11-03 [email protected] [flutter_tools] Stream web dev server proxy responses instead of buffering them (flutter/flutter#194934)
2026-11-03 [email protected] Roll Skia from d80db8f8f856 to 3eeafac94f07 (6 revisions) (flutter/flutter#195926)
2026-11-03 [email protected] [flutter_tools] Add flutter assemble support for tool extension assemble targets (flutter/flutter#194563)
2026-11-03 [email protected] Manual roll Dart SDK from fe609902984b to e362a23e9738 (2 revisions) (flutter/flutter#195914)
2026-11-03 [email protected] feat(flutter_test): add startHover and startHoverAt helper to WidgetTester (flutter/flutter#190630)
2026-11-03 [email protected] [flutter_tools] Remove trailing dots from bug report URLs (flutter/flutter#194132)
2026-11-03 [email protected] Update skills_lint to 0.5.3 (flutter/flutter#195796)
2026-11-03 [email protected] Roll Skia from 58295d932350 to d80db8f8f856 (5 revisions) (flutter/flutter#195900)
2026-11-03 [email protected] [flutter_tools] Make DeviceLogReader.dispose asynchronous (flutter/flutter#195389)
2026-11-03 [email protected] Roll Packages from 3f34a6f to 1df8447 (10 revisions) (flutter/flutter#195895)
2026-11-03 [email protected] Roll Skia from c733ad3e37cb to 58295d932350 (1 revision) (flutter/flutter#195894)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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
jpohhhh added a commit to Telosnex/flutter that referenced this pull request Nov 4, 2026
…y tests

flutter#195714 added eColorAttachmentRead to the incoming dependency's destination
access, and flutter#195689 landed the depth/stencil masks this PR originally added.
Update the expected masks to match.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD e: impeller Impeller rendering backend issues and features requests engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] Vulkan sync validation: render pass incoming dependency doesn't cover a color attachment's LOAD loadOp

2 participants