feat(agc): preserve initial native multisample color contents #6973
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6973"
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 Amoenus on 2026-10-16T23:03:17Z.
What
Review snapshot — 4 November:
ef2bcde6b320fbd0ae33f898c3873d6f2fc6bf2eincludes tested mainc37bd59e6f08a1a0eb3ad4573f1c9273da42e8e2. This pass enlarges the address-reuse fixture allocation to cover its entire 64KiB multisample surface placed at +32KiB; production topic code is unchanged.Remaining gates: Reviewer reassessment of the earlier change request and current-head hosted CI.
Current qualification, controls and limitations. Clean merge preview against later main
9ab6a281ea61c9e62a7eb07eb4cef8f19ede1c5c; its AGC driver/shader trees and relevant memory primitives are unchanged.Preserve guest-written color samples when a native multisample target is first created. Main clears a target without DCC to zero, so a partial first draw loses untouched samples.
Credited carried layout work: #6971, original head
f65cecddab, original authorship preserved. Its remaining sampled-layout transition is carried here under the maintainer's landing plan; that PR was closed unmerged as a duplicate and is not a standalone prerequisite. #6215's owner/retirement and merged #7948/#8847 behavior remain.The lifetime follows the existing DepthSurface recorder-upload pattern and changes no console format semantics. Image/view usage follows Vulkan view usage and image-format query contracts.
Related: #6480 and PPSA99902 bring-up #4443. This capability is carried in the Sonic composition, but its necessity for an isolated Sonic stop/wrong result remains unproved. General metadata import/publication is outside this root change.
Removed the regression pinning a valid nonuniform D_X initial target to refusal. The corrected drawn-owner replacement regression is in #6995, where automatic publication is implemented.
Tested
Full configured native libraries, relinker and actual selected fixtures build at the head above; conventions against origin/main and whitespace checks pass. This head: 10 physical-GPU fixture passes, no skip, timeout or selected validation error/warning/VUID. Main comparison: 8 common physical-GPU passes. Capability tests absent on main are recorded separately.
Windows11 Enterprise26200; NVIDIA GeForce RTX5080 /621.01 (32.0.16.2101), AMD Radeon Graphics 1002:13c0 /26.10.1 (32.0.21045.16010). Required Vulkan, shader cache off, pipeline journal off, loaded Khronos1.4.363, verbose serial CTest, 30-second limit. Exact pins, commands and raw logs.
Historical evidence retains its original sources: earlier descriptions and independent runs. No new title/FPS, full-suite, console-equivalence or combined foreign-stack claim.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T23:05:55Z.
Integration note: my draft #6971 addresses #6957 by tracking the native multisample image layout across storage writes, sampled reads, and later attachment/storage use. It overlaps this branch in
MultisampleTarget.cppand the sampledTextureview path, including your new initial-sample upload. #6971 is already waiting for #6635 to land per its author’s requested order. A source-levelgit merge-treecheck against #6973 confirms content conflicts inMultisampleTarget.hppandMultisampleTarget.cpp; I have not resolved or validated the combined implementation. I will keep #6971 draft and verify that the layout tracking preserves this initializer/upload path before marking it ready. Please let me know if you prefer a specific merge order for the two changes.Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T08:09:48Z.
Runtime datapoint on NVIDIA hardware. RTX 3070, Ampere, driver 617.42, Windows 11 26200, WinLibs GCC 15.2.0, Release, ANYPS5_NO_SHADER_CACHE=1. Head 82bfd5250, all binaries rebuilt on this head, ctest serial:
All pass on Ampere — the guest-initial-content path into native MSAA color holds.
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-17T08:42:37Z.
Intel and AMD Windows data for head
82bfd5250. It no longer merges intomain:tests/Graphics.cppconflicts with5f61879a9. So I ran the head as published. It predates #6452, soagc_driver_gpu_indirect_arguments_misaligned_writer_aheaddoesn't build on Windows; everything else built.Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release,
ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, withVkCacheemptied first. All 27 multisample tests of this head,agc_driver_graphicsincluded:agc_driver_sample_multisample_target(#6957)agc_driver_multisampled_pass_orderinitial multisample color footprint is not implementedagc_driver_multisample_readback_uploadreadback mismatch: format=13 first=0 byte=1 expected=0x1f actual=0x00multisampled_pass_ordercomes from #6175 (f52e3f5a1). It stops at the refusal that 8c639dc64 adds inMultisampleTarget.cpp:382. Neither is onmain, so the two only meet in this composition.multisample_readback_uploadfails only on the UHD 770; the RTX 3070 run above passes it.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T08:44:01Z.
Rebase handoff for the stack base — since #6973 is the base your four follow-ups (#6987, #6989, #6995, #7002) are commit-stacked on, rebasing it onto
mainre-anchors the whole series; they should rebase onto it rather than ontomainindividually.The rebase (22 commits, one resolved empty and dropped — its content was already carried by an earlier resolution) is on
blawesom:rebase/6973(1c33df60d): the conflicted commits were reconciled againstmain's newerallocate()/Allocation/makeStorablearchitecture —Allocationnow carries the bytes your reclaim needs, andMultisampleTarget.cpp/.hppend up byte-identical to your head. One intermediate commit in the series does not build on its own (thedca54b2state, also true of your own integration history — it self-heals two commits later), so per-commit builds will show that one red.Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; conventions pass; full suite 1333/1336 — beyond the knownmainregression (agc_driver_tessellationsegfault, #4727), two failures, and I checked them against your original head as a control: both fail identically there (agc_driver_multisampled_pass_orderthrows "initial multisample color footprint is not implemented" in 0.01 s;agc_driver_depth_storage_dispatchfails too), so they are the series' own on this device rather than rebase artifacts — possibly resolved by the upper stack PRs, but the base alone carries them.To pick it up:
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T09:26:18Z.
@blawesom thanks for the rebase handoff; I adopted it, reviewed the range diff and incorporated main through
ef674f5af3e4d0fe44fda10e46d36ead2c262c0e. The refreshed head isb64742f8679010aba1209c01f1155f91f27ec860.@savvaniss I reproduced the pass-order failure, and the depth-storage failure @blawesom reported, on NVIDIA, AMD and llvmpipe. Both fixtures still described their MSAA color target as linear, so they stopped at initial import before reaching their intended assertions. The fixture-only correction gives them RenderTarget geometry and a complete 64 KiB color allocation; production refusals and existing test assertions are unchanged. Both corrected tests and initial-samples pass 3/3 on all three devices (27/27 fresh processes). Windows and Linux relinker/libs builds and conventions pass. Exact pins, devices, the failing pre-correction control and analysis limitations are in the updated description.
The Intel upload mismatch is still open evidence: upload passes 3/3 on each of our three devices, which does not validate the Intel case. AI-assisted implementation and validation.
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-17T13:29:46Z.
Retest of head
b64742f86on the Intel UHD 770, with the cause of the remaining upload failure.Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release,
ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, withVkCacheemptied first. The head is tested as published: it conflicts withmain23f142350inSampleMultisampleTarget.cpp.b64742f86agc_driver_multisample_readback_uploadfails:readback mismatch: format=13 first=0 byte=1 expected=0x1f actual=0x00agc_driver_multisampled_pass_orderandagc_driver_depth_storage_dispatchnow pass on both GPUs.The upload failure is #6957 on the fixture's verification read.
CheckReadbackrunsDispatchMultisampleReadback, which binds the array view as a sampled image inGENERAL. It runs right afterDispatchMultisampleImagehas written the same image with storage stores, also inGENERAL. This is the pattern this driver gets wrong. I made a local experiment, not a proposal: the readback descriptor usesSHADER_READ_ONLY_OPTIMAL(DEPTH_STENCIL_READ_ONLY_OPTIMALfor D32), andCheckReadbackmoves the image to that layout before the dispatch and back toGENERALafter it. With that change,agc_driver_multisample_readback_uploadpasses 3 of 3 on the UHD 770, and all sevenagc_driver_multisample_readback*tests pass 3 of 3 on both GPUs. The diff is below.At this head,
DispatchMultisampleReadbackhas no caller outside tests. #6987 (8e8afdc68) adds one atMultisampleTarget.cpp:341, which samples a snapshot filled byvkCmdCopyImageinGENERAL. At that head the 30 multisample tests pass 3 of 3 on the UHD 770, except the same upload test. So the copy-filled snapshot reads correctly on this driver; the failure needs storage stores into the sampled image itself. The descriptor change in the diff would also need #6987's caller to move its snapshot to the read-only layout.Experiment diff (local, against b64742f86)
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T11:17:57Z.
I carried the reporter's three-file layout experiment onto the current #6973 head (
8068e758b8) in a local worktree. The driver and focusedagc_driver_multisample_readback_testsexecutable build successfully, and the patch passesgit diff --checkpluscheck_conventions.py.I also ran the seven focused CTest cases here. They abort before reaching their assertions because this Linux host's Xeon E5-1620 v2 lacks CPU extensions required by AnyPS5 (LZCNT, BMI1/2, MOVBE, AVX2 and FMA), so I cannot claim local runtime validation. The reporter's earlier UHD 770 and RX 9070 XT results remain the runtime evidence; they offered to rerun once the follow-up has a head.
The changed readback sources exist only in #6973's stack, so I am keeping this as a dependent follow-up rather than opening a competing
mainPR. After #6973 lands, I can rebase and publish the focused change for the offered GPU rerun.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T09:31:48Z.
FYI, I published the readback-layout follow-up as Amoenus/AnyPS5#3, based on this PR's exact head
cafd4f749f68244322404b9468b8cd46bd58715c. It is a separate stacked branch; I did not modify this branch.PR #3's conventions check and one-off CodeRabbit review pass with no actionable findings. The focused Linux CTest still aborts before assertions on this host's CPU-feature guard, so the offered UHD 770/RX 9070 XT retest remains useful.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T17:54:53Z.
Thanks for the stack. One composition problem with current main: it comes from main, not from your commits, but it only shows once they're merged together. Could you fix it on the rebase you need anyway for the debt-doc conflict?
Main's
388527d6b2("reimport a multisampled target recreated with another pipe-bank XOR") landed after this stack's base and merges in textually clean. Its path doesn't go through #6971's layout tracking:acquire(MultisampleTarget.cpp), whenrecreated(target->target, use)is true, it callstarget->Recreate(use),guard(...)andtarget->ApplyFastClear(use), then returns. It never reachesPrepareForColorAttachment(use).RecreaterecordsvkCmdClearColorImage(image, VK_IMAGE_LAYOUT_GENERAL, ...)withoutensureGeneralLayout()first.ApplyFastClearreturns before itsensureGeneralLayout()when no fast clear is pending.So take a target that was sampled (its tracked layout is now
SHADER_READ_ONLY_OPTIMAL) and is then recreated with another pipe-bank XOR. It gets cleared in GENERAL while it's actually inSHADER_READ_ONLY_OPTIMAL, and then it's used as an attachment with no transition back. The tracked layout no longer matches the image. That's the same class of bug #6971 fixes.Suggested fix:
Recreate, callensureGeneralLayout()before recording its clear.acquire's recreate branch, calltarget->PrepareForColorAttachment(use)before returning, as the non-recreate branch does.Test: main's recreate case in
tests/execution/AlphaToCoverage.cppnever samples the target before recreating it, so it can't catch this. Could you add a case that renders the target, samples it (so its layout becomesSHADER_READ_ONLY_OPTIMAL), recreates it with another pipe-bank XOR, and then renders and reads it back? Check the samples against the expected values. Running it underVK_LAYER_KHRONOS_validationshould also flag the layout mismatch on main's current path, and the fixed version should run clean under it.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-20T21:12:17Z.
@oneandonlydean addressed in 419ad899c6: recreation now prepares GENERAL before clearing, then prepares color-attachment use on the acquire return path. Added the requested render → sample → change DCC/XOR → render/sample → resolve regression.
The identical test fails 3/3 per GPU without those calls (the two layout VUIDs you identified) and passes 3/3 per GPU with them under loaded Khronos. Full Windows build and the broader selected matrix pass: 54 physical-GPU checks plus 9 CPU/mock checks. Literal-main AMD's separate resolved-output failure is retained and distinguished in the maintained report.
#6971 authorship and the agreed dependency order are preserved. Could you re-review and request fresh full Linux/Windows CI when ready? The dependency PRs still need to land first. AI-assisted: yes (Codex); author responsible.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T21:21:14Z.
@Amoenus thanks, 419ad899c6 fixes the composition issue: recreation now moves the image to GENERAL before its clear, and the acquire return path prepares it for color-attachment use on the same image, so the tracked layout stays valid.
One non-blocking note on the new regression test: it only fails through the
Validation Error:regular expression, and CI doesn't load the Khronos validation layer, so in CI it passes with or without the fix. Could it either require the layer (skip with 77 when the layer isn't present) or be marked as a manual check in its description?#7002 doesn't have 419ad899c6 yet and now conflicts with main. When you have a moment, could you restack it on top of this head? The stack's CI and gate run after that.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-20T21:47:44Z.
@oneandonlydean the manual validation-layer designation remains in the description/report. The restack is now pushed through #7002; all four follow-ups retain exact #6973
419ad899c6and tested maine25333e39a.6185950ed7d5df0079b915a590902f86571871acEach full incremental default build and explicit library/relinker build passes. The PR descriptions retain actual-device/layer verification, groups, analyzer limitations and historical controls at their own pins. The sources merge cleanly with checked newer main
5b59fbc553; that newer composition is not runtime-tested here.The newer #6973/main parent and snapshot head both fail the AMD recreation numeric resolve assertion 3/3; NVIDIA passes 3/3. Rebuilding the parent and restoring the snapshot repeats the same result, with no VUIDs or validation errors/warnings. The maintained report separates this from the original successful
419/main-aa composition and from #7936's distinct DCC-clear assertion. #7002 additionally retains nine original DCC2/4/8 assertions matching literal main. These are failed tests, not skips or claimed passes; a common cause is unconfirmed.AI-assisted: yes (Codex).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T10:14:38Z.
@Amoenus a heads-up for the native colour publish stack (#6973 → #6987 → #6989 → #6995 → #7002).
main's MSAA sample-order work, most recently #6683, changed the code this stack builds on, so the conflicts inTexture.hppandMultisampleTarget.cppneed rework, not just a text merge:Textureconstructor onmainnow takesownerandusage(Texture.hpp:66). #6973 adds a second overload with animageLayoutargument (:67). Please fold the layout intomain's constructor or add it there, without a parallel overload.MultisampleTargetnow creates its image withallocate(usage, orderFlags)(MultisampleTarget.cpp:105), so the image can also be viewed in the sample-order format, and it addsOrderView()(:295). #6973'sPrepareForColorAttachment()(:335) sits in the same place and callsallocate(usage, flags). It has to keeporderFlagsand work alongsideOrderView().Since every PR above #6973 inherits those hunks, the order is: rework #6973 on current
mainfirst, then rebase #6987, #6989, #6995 and #7002 on it in turn. We'll review each one as it lands, starting with #6973.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:42:25Z.
@Amoenus a merge-order note for this stack (#6973 → #6987 → #6989 → #6995 → #7002) and #9533, which has #9717 and #9742 stacked on it. They meet in
MultisampleTarget.cpp, in the constructor and inRecreate, through #6973's lines; the four PRs above it conflict with #9533 only there.clearedvalue and adrawnflag, soAlias()can say what a host-only colour target over a D32S8 stencil or depth plane holds: a fast clear, a fill, a clear with no draw since, or drawn.clearedtakesinitialonly when it's a clear (the known clear, DCC or CMASK), and stays empty when the target starts from the guest's contents, so a plane under it stays unproven.Recreatekeeps both yourensureGeneralLayout()and #9533's two assignments.#9533 goes after #6973 and rebases over it, as well as after #7371 as agreed.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-22T13:05:37Z.
@EagleBearerYS Agreed: #9533 should follow #6973 as well as #7371. I checked the constructor and
Recreateagainst our published #6973 head77dd406ddb. The constructor can import guest sample contents, so that path must leaveclearedempty; only the known-clear/DCC/CMASK branches can supply clear provenance. Please retainensureGeneralLayout()together with yourclearedanddrawnassignments inRecreate.The four child PRs inherit that constructor change; they do not need separate implementations of the composition. This is source review of the proposed ordering, not a combined runtime result. Thanks for keeping the attribution and dependencies explicit.
Refresh is now published at
9290696549on main8b3e39832a, retaining that constructor provenance distinction andensureGeneralLayout(). #8847's twin views/per-format resolve passes are retained. The shared current qualification and explicit unrelated-alias refusal expectation are in this PR's updated description; #7371 has now merged.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T13:38:00Z.
@Amoenus a heads-up for this stack: #8847 merged a few minutes ago (
8b3e39832a) and also changesGraphics/src/MultisampleTarget.cpp, so #6973 through #7002 no longer merge cleanly.git merge-treeagainst currentmainshows two hunks, both from #6973:colorTwinFormat, checks it can be a colour attachment and storage image, and setsVK_IMAGE_CREATE_MUTABLE_FORMAT_BIT. Your change builds the initial-contents storage image in the same place (initial/ImageElementFormat/MUTABLE_FORMAT | EXTENDED_USAGE). The composed version needs both: the twin's format checks and flags, plus your initial-storage requirements and usage.resolvePasswith aresolvePassesmap (one per format) and destroys each entry; your branch destroysinitialViewand the singleresolvePass. Composed: destroyinitialView, then every entry inresolvePasses.The four PRs above #6973 only conflict through #6973's lines, so rebasing #6973 and replaying the others should be enough. Once the stack is up again, I'll run the full CI on the new heads and then the stack gate.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:31:52Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The NVIDIA report for head
13aba93cbca83f5b1c892eed508df7e2ad33ffb3identifies a sampled-read regression and a new test that fails on a known validation message before reaching its target assertions.What I ran
Reviewed head
13aba93cbca83f5b1c892eed508df7e2ad33ffb3, PR basebb04a4f1ea0175e9e4f149f0359a764d62ff3296; the local merge preview against currentupstream/main(4c8cff191609bc5f28bf9ee2f93672b531285aa4) merged cleanly. On Linux, without invoking a compiler, I ran:I also read the exact-head source, the new NVIDIA report, and its rerun log. I did not build or run tests locally.
Results
git diff --checkf58debcc81b60b1295ac0b44919c1e9635bd88a3.agc_driver_sample_multisample_targetfailed on the PR and passed on main with the PR's test changes;agc_driver_msaa_dcc_recreate_layoutfailed on the PR. Not independently run by me.Relevant raw output from the linked NVIDIA rerun log
Negative control
FAIL_REGULAR_EXPRESSIONVUID-VkDeviceCreateInfo-pNext-pNextduring device creation, before the DCC test's success message.Findings
Blocking
agc_driver_sample_multisample_target, while this head throws whenCheckFirstSampleReadsreads the guest range after drawing a 4× target. Please preserve the behavior exercised by that existing test, or provide a narrowly scoped implementation and test change that demonstrates the supported contract without silently converting a previously passing guest read into an error.Validation Error:expression because device creation emitsVUID-VkDeviceCreateInfo-pNext-pNext; the same ID is listed in the report as already present on main. Please isolate test execution from that known startup message or compare/filter known baseline IDs so this test fails only for a new validation issue and reaches its DCC assertions.Non-blocking
bb04a4f1ea0175e9e4f149f0359a764d62ff3296, while current main is4c8cff191609bc5f28bf9ee2f93672b531285aa4. The merge preview is clean. Since this PR is in a dependency stack and #8223 remains open, I am not asking for a standalone rebase; rerun the focused checks on the dependency-safe, current integrated head when that stack is refreshed.Sources
Not verified
I did not independently run the GPU tests, compile, or verify behavior on another GPU, OS, or console. The hardware results above are from the report on an NVIDIA RTX 2000 Ada under Ubuntu 26.04.1.
To get this to a good state
Resolve both failures, then rerun
agc_driver_sample_multisample_targetandagc_driver_msaa_dcc_recreate_layoutwith the validation layer on a dependency-safe current-main integration. I will recheck the exact new head and rerun the non-building checks above; the GPU run remains author/CI evidence unless independently available.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T21:44:11Z.
Review: COMMENTED
A Linux run of the stack, since the qualification so far is Windows. One test fails on both of my devices, and it is the stack's own test, not the device.
Setup. Ubuntu 26.04, GCC 15.2, Release. RTX 3070 (NVIDIA 595.99.02, the driver the NVIDIA CI uses) and lavapipe (Mesa 26.0.3).
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest-j1, Khronos validation layer 1.4.341 unless noted. #7002 head8628c2da1a(it carries this PR'sf8e5f3cca7) merged ontomain7d9a2fc713. I ran the 125 tests that use the eight test binaries the stack changes (recorder, sample_multisample_target, alpha_to_coverage, multisample_readback, srgb_twin, retirement, pass_order, depth_storage_dispatch).Result. 124/125 pass 3/3 on the 3070 and 3/3 on lavapipe, with no
VUID-errors. On lavapipe the 2-sample cases skip (native_color_initial_reuseand others: no 2-sample color). The failure isagc_driver_multisample_srgb_twin, 3/3 on each device:Cause.
225b170a9d("claim reused color memory before initialization") addsClaimMultisampleTargetMemory(use.address, ...)before a new owner is created inacquire(). InTwinFormatsShareTheirSamples, theR16G16_SFLOATacquire over the residentR8G8B8A8_UNORMtarget now claims the range and retires that owner. It then reads guest memory without hitting the guard, so nothing throws andrefusalstays empty. I printed it locally:refusal=[]. The test (changed earlier in this PR) still expects the "overlaps multisampled color target" refusal and an unchanged resident owner.main7d9a2fc713aa4706c4e1(the parent of225b170a9d)f8e5f3cca710f005d00f8628c2da1a, unmergedmainSo the claim fix and the refusal this test asserts contradict each other, and one of them has to change: the test expects the retirement, or the claim skips a resident owner that the guard should refuse. I don't see anything Linux-specific in that path, so I'd expect it on Windows too if
agc_driver_multisample_srgb_twinis added to the selection. The NVIDIA CI reports for this head and for #6987, #6989, #6995 and #7002 do not list it, and I can't tell from them whether it ran there.DCC test. This confirms your reading on Linux.
agc_driver_msaa_dcc_recreate_layoutfails on both devices with the layer the CI uses, VVL 1.3.275 (the ubuntu:24.04 package). Its only message isVUID-VkDeviceCreateInfo-pNext-pNextfor sType 1000574000. It passes with 1.4.341 and with no layer.main's ownagc_driver_image_table, which also has aVUID-fail regex, fails the same way under 1.3.275 on the 3070. With 1.3.275, the rest of the 125 report only IDs already present onmain(pNext-pNext,vkCmdCopyImage-srcImage-01548/01551).GPUs tested: NVIDIA RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3).
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T01:07:43Z.
Review: COMMENTED
Re-run after
dcbc99ddf7:agc_driver_multisample_srgb_twinnow passes on both of my devices. That was the failure from my earlier run.The whole stack was tested at #7002's head
6cd9f661f8(it contains this PR'sdcbc99ddf7), merged ontomainde96e3efbd. Setup as before: Ubuntu 26.04, GCC 15.2, Release, RTX 3070 (NVIDIA 595.99.02) and lavapipe (Mesa 26.0.3),ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1,ctest -j1.VUID-lines. The run includesmultisample_srgb_twin,sample_multisample_target,alpha_to_coverage,multisample_retirementand the recorder tests.agc_driver_msaa_dcc_recreate_layoutstill fails on the RTX 3070, as in the NVIDIA CI. That is the layer'spNext-pNextmessage against the test'sValidation Error:regex, which I described earlier; it passes with 1.4.341 (above).GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux); lavapipe (Mesa 26.0.3, Linux).
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T02:02:08Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The new
agc_driver_msaa_dcc_recreate_layouttest fails in the NVIDIA run because its broadValidation Error:filter catches a device-creation VUID that the report also records onmain, after the test's DCC assertions pass.What I ran
Reviewed head
dcbc99ddf7f634a26cb8d2ff92bc37a1c924a6bb, PR basee8efeed58af48d0682ab2e0eab72cfaf996e4886; the precheck's merge preview was clean against currentmain4b7af94e1dfd1f7b601e8f1ca1dbe460f7680729. Environment: Linux 6.1.0-54-amd64, Python 3.11.2; no compiler or local build was run.Results
git diff --check4b7af94e1dfd1f7b601e8f1ca1dbe460f7680729.agc_driver_msaa_dcc_recreate_layoutfailed CTest on exact headdcbc99ddf7f634a26cb8d2ff92bc37a1c924a6bb. The report lists the sameVUID-VkDeviceCreateInfo-pNext-pNextamong validation IDs seen onmain.Relevant unedited log lines
Findings
Blocking
CMakeLists.txtsetsFAIL_REGULAR_EXPRESSION "Validation Error:"for this test. That rejects any validation error printed during device initialization, including the reportedVUID-VkDeviceCreateInfo-pNext-pNext, even though the DCC recreation and read-back assertions complete. The same VUID is reported onmain, so this filter makes the new test fail on the NVIDIA CI environment without demonstrating a regression in this change. Please keep checking validation output, but distinguish this known baseline diagnostic from errors produced by the tested operation, or use a validation-layer version that recognizes the structure and demonstrate the test passes in CI.Non-blocking
mainbecause the test is not defined there; a same-layer baseline comparison would help confirm the diagnostic source.Sources
dcbc99ddand its rerun log pinned to the Gist revisionNot verified
To get this to a good state
Adjust the filter or CI validation-layer setup so the known baseline device-creation diagnostic does not fail this test while new diagnostics remain detectable, then rerun the focused test and NVIDIA CI on the updated head. I will repeat the same precheck and inspect the new run.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T01:32:14Z.
Review: DISMISSED
Re-checked — new head, changes requested
The current head still adds a DCC test whose blanket validation-error filter failed on the prior exact NVIDIA run, and the new multisample initialization path has no matched GPU evidence for this head.
What I ran
Reviewed head
ad0429b7642174f08ae285f11dfd30e1ca6b5208, with PR basea9ae365e546067b1ea98d209b1f045346691281f; the stack checker reports a clean preview onto currentmain5f438847c5064961808425ce0465ed8675474dde. Environment: Linux 6.1.0-54-amd64, Python 3.11.2, GCC/G++ 12.2.0. No build or C++/GPU test was run.Results
5f438847c5064961808425ce0465ed8675474dde.Unedited output: conventions and precheck
Findings
Blocking
agc_driver_msaa_dcc_recreate_layoutregistration still setsFAIL_REGULAR_EXPRESSION "Validation Error:"(current-head registration). On the previous exact headdcbc99ddf7f634a26cb8d2ff92bc37a1c924a6bb, the NVIDIA report recorded that this test failed because the filter caughtVUID-VkDeviceCreateInfo-pNext-pNext, which the report also saw onmain(run report, pinned rerun log). This head retains the same registration, so that known baseline diagnostic can still fail the new test. Please narrow the check to errors attributable to the operation under test, or use a validation-layer setup that does not emit the baseline diagnostic, then rerun the focused test.main/PR run for this exact head was available. The repository requires the same focused tests withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationon the same machine and GPU, with new VUIDs compared againstmain(contribution rule at this head). Please attach those paired results and identify GPU, driver, and OS.Non-blocking
Not verified
To get this to a good state
Fix the test's baseline-sensitive validation filter and provide the required matched GPU runs for the exact head. I will rerun the same no-build checks and reassess the updated head.