AGC: pipelines use differing per-attachment blend states while independentBlend is never enabled (VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605) #11990
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by maskym on 2026-10-27T15:40:19Z.
What happens
With the Khronos validation layer loaded,
mainreportsVUID-VkPipelineColorBlendStateCreateInfo-pAttachments-0060518 times across theagc*tests: graphics pipelines are created with differing per-attachment blend states while theindependentBlenddevice feature is never enabled. The tests pass; the layer only reports the violation.Title, test or build step
agc_driver_prepared_exports(14 occurrences) andagc_driver_srgb8_color_target(4 occurrences), fromctest --test-dir build -R '^(agc|guest_video_out|video_out)' --parallel 4 -V. No title involved.AnyPS5 commit
2ee8e9751aSystem
Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER (vendor 0x10de, device 0x1e84), Vulkan loader 1.4.357 from the NVIDIA driver, Khronos Validation Layers nightly 1.4.366 (commit b2b44c0d37, 2026-10-27), WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh), Release,
BUILD_TESTING=ON.Steps to reproduce
The full
^(agc|guest_video_out|video_out)set gives 1125/1125 passed (9 skipped), 146 s, nowas not found but was requested by env var VK_INSTANCE_LAYERS, and this is the onlyVUID-reported. CI runs these tests on lavapipe only and did not show it.Log
(1217 is
agc_driver_prepared_exports;agc_driver_srgb8_color_targetprints the same message.)What was checked
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(around lines 1797-1817) enablesdepthClamp,fillModeNonSolid,depthBounds,depthBiasClamp,dualSrcBlend,logicOpand others fromavailable, but notindependentBlend; the identifier occurs nowhere undercore/.VkPipelineColorBlendAttachmentStateper color target (Graphics::State::blends) and passes the whole vector aspAttachmentsincore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpplines 676-700. These states legitimately differ:Graphics/src/Draw.cppmaskedState(lines 2422-2430) zeroescolorWriteMaskof the targets the pixel shader has no output for, so a two-MRT draw whose shader writes one target produces differing attachments;Pipeline.cpplines 682-693 give the second channel of an 8_8 target its own factors and ops; and the guest setsCB_BLENDn_CONTROLper render target.Execution/src/Driver/Draw/DrawRegisterKey.cppsameBlend, line 233), so the driver treats them as independent everywhere except at device creation.mainhas no such guard.independentBlendwhen the device offers it, record it in the graphics context next todualSrcBlendandlogicOp(Graphics/include/Context.hpplines 213-216), andRequireidentical attachments when it is absent, asPipeline.cpplines 468-469 do fordualSrcBlend.AI-assisted: yes (Claude Code); the runs, the numbers and the line references above were checked on this machine.