feat(agc): draw EQAA color targets at their coverage sample count #9700
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9700"
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 frankea on 2026-10-22T08:56:48Z.
What
DecodeColorBufferrefused every color target whoseCB_COLOR_ATTRIB.NUM_FRAGMENTSis belowNUM_SAMPLES(EQAA): "color targets with fewer fragments than samples (EQAA) are unsupported". This accepts such a target when it has FMASK (CB_COLOR_INFO.COMPRESSIONand aCB_COLOR*_FMASKbase) and no DCC, and draws it as the existing host multisampled target at its coverage sample count.ColorTargetgainseqaaFragments(0 when the fragments equal the samples). The FMASK base is #7948'sfmaskAddress, whichmaindecodes for every multisampled target;CB_COLOR*_FMASK_BASE_EXT(context 0x3a0 + slot) is now inDrawKeyRegisters.samplesstaysNUM_SAMPLES, asmain'scoverageSamplesis, so pipelines, draws, CMASK fast clears, the FMASK decompress and the CB resolve are the existing MSAA path.eqaaFragmentsfits in existing padding, sosizeof(State)and the pipeline journal are unchanged; a pipeline depends on the coverage sample count, not the fragment count.MultisampledColorBytes, the guarded range, color fills) uses the fragment count, as addrlib sizes the surface: a 4-sample 2-fragment 512x512 RGBA8 target occupies 2 MiB, not 4.Z_64KB_Xsurface of 1, 2 or 4 bytes per pixel, so a T#, CPU or DMA read of it throws by name ("overlaps the FMASK of EQAA color target") instead of reading memory the host never wrote. An unmap or allocation removal of either plane retires all of the target's guards; the second pass ofretireUnmappednow drops every inactive range, not only metadata ranges.CB_COLOR*_FMASKbase,acquire()replaces its FMASK guard with one at the new base and keeps the target and its samples. The target's identity stays surface, format, extent, samples and fragments, so its contents carry over. The move bumpsmain's guarded-range generation (#6628), as every other guard change does.main, the FMASK range shares the target'sTargetUse: a bind of another target over it claims the target, and a CPU write over it after the target's last use retires it, as for the color plane. Each use stamp first collects the FMASK plane's writes (3e3ddc10c), so CPU writes made before the draw do not count as overwrites.main(one sample,samples1 andcoverageSamplesNUM_SAMPLES, FMASK guarded);coverageSamplesstays the sample count for this PR's targets too, so #9450's one-fragment checks see them as ordinary N-sample targets.main.GPU semantics, with sources:
NUM_SAMPLESis the coverage sample count andNUM_FRAGMENTSthe number of colors stored per pixel. PAL and Mesa program them that way: PAL gfx9ColorTargetView.cpp and Mesa ac_descriptors.c.NUM_FRAGMENTSdistinct colors. Where more primitives meet in a pixel, the console marks samples unknown and the CB resolve drops them (radeonsi si_state.c). Which samples it drops is not documented or measured, so a resolve here can differ at those pixels. The debt entry says so.GL_AMD_framebuffer_multisample_advanced, RDNA2) show the split: with 2 or 4 storage samples, draws that cover part of a pixel resolve to blends, as a host color per sample does; with 1 storage sample only what sample 0 covers survives.Why: Gran Turismo 7 (PPSA01317) stops on this refusal when it loads the World Map and when it delivers a purchased car, at a 512x512 RGBA8 target with 4 samples and 2 fragments (
CB_COLOR_INFO0x0000e028,CB_COLOR_ATTRIB0x0000a000, CMASK and FMASK). The title consumes the target only through a CB resolve.Overlap with other PRs:
FMASK8_S4_F2included. With this PR, such a read of a host EQAA target's FMASK throws through the guard until the driver serves FMASK from the host target, as #7948 does for 8-fragment targets.mainmerged in, the two cover disjoint fragment counts in one decode: one fragment takes #9450's branch, two or more below the samples this PR's. #9450's FMASK ranges and this PR's are separate guard kinds with their own messages.!metadataValid && !fmask) would also match this PR's EQAA FMASK range, so whichever lands second keeps that range out of the test. The two also conflict in the libSceAgcDriver debt file.guardedColorBytes(target), as @EagleBearerYS noted.mainnow has that function from #8223, and this PR takes the fragment count there.NUM_FRAGMENTSthanNUM_SAMPLESinDecodeColorBuffer.Tested
Refreshed onto
mainee9a9a66c(47d9c5125; #8223's guard rework resolved as described in the comments), fixed in3e3ddc10c, and refreshed ontomainb1b5353cf(head9465e32e3; #6628), RTX 4090 (NVIDIA 616.92, Windows 11), each test run three times: the 186 ctest entries of the focused set's executables,agc_driver_eqaa_color_targetamong them, pass 186/186 on9465e32e3, and 186/186 under the validation layer (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V): 785Insert instance layerlines, noVUID-line, and 13 warnings, the onesmainshows in the same tests.mainb1b5353cfpasses a 207-entry set holding all of these but the EQAA test in both runs, with noVUID-line. Control:47d9c5125without3e3ddc10cfailsagc_driver_eqaa_color_targetwitha read of the EQAA target's FMASK was not refused by name:(the access retired the target).Refreshed onto
mainbb04a4f1e(head1c1de3695; the debt-file conflict resolved by keepingmain's "Multisampled target guest access" text and moving the fragment-count detail into the "EQAA color targets" entry), RTX 4090, each test run three times: the 176 ctest entries of the focused set's executables pass 176/176, and 176/176 under the validation layer (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V), with 775Insert instance layerlines and noVUID-line orwas not found but was requested by env var VK_INSTANCE_LAYERS.mainbb04a4f1epasses its 175 (noagc_driver_eqaa_color_target) in both runs, 770Insert instance layerlines, noVUID-line.agc_host_import_cut_lifetime(#10746) passes on both now.Control for the
retireUnmappedchange: this head with the old second pass (range.metadataValid && !range.active->load(...)):agc_driver_eqaa_color_targetfails withremoving only the FMASK allocation of an EQAA target left its color plane guarded.Refreshed onto
mainca6e29e83(head802f23b93; the debt-file conflict resolved by keeping both changes): of the 164 ctest entries of the focused set's executables, 163 pass,agc_driver_eqaa_color_targetamong them, and the same 163 under the validation layer (same settings as below), where the loader inserted the layer and the log has noVUID-line orwas not found but was requested by env var VK_INSTANCE_LAYERS. The one failure,agc_host_import_cut_lifetime(the larger side of an unmap of 1440 KiB at the start of the import's first 2 MiB run left the write watch), fails the same way onmainca6e29e83, which passes 162 of its 163 entries (it has noagc_driver_eqaa_color_target) in both runs.On @adriadam10's rebase onto
main8a85a5c84and hise6b1952b5, after mergingmain1c9064435(f9971fc7b) and followingmain's one-fragment decode in two decode-test expectations (51969a15f), RTX 4090, each test run three times. The set is 159 ctest entries of 20 targets: the 19 below plusagc_driver_recorder_tests, whose multisample guest access and one-fragment FMASK guard tests share the guard list this PR extends.agc_host_import_cut_lifetime(#10746), which fails the same way onmain.maind31f372e3: 157/158, the same #10746 failure.maind31f372e3with only this PR's GPU test:agc_driver_eqaa_color_targetfails withmain'scolor targets with more than one but fewer fragments than samples (EQAA) are unsupported.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V) on the same entries, onmainand on this PR: the layer is inserted in both logs (685 and 690Insert instance layerlines), neither has aVUID-line orwas not found but was requested by env var VK_INSTANCE_LAYERS, and both fail only #10746's entry.sizeof(State)stays atmain's 840 (a macOS probe gives 840 for bothmain1c9064435and this head, the value ofmain's Linux guard).Refreshed onto
main0db47b263(head d9024161f; no conflicts), RTX 4090 (NVIDIA 616.92, Windows 11): the 64 ctest entries of the focused set below (withagc_driver_eqaa_color_target) pass 64/64, each test run three times, and 64/64 under the validation layer (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V), with noVUID-line; its only messages aremain's threeUndefined-Value-ShaderOutputNotConsumed-DynamicRenderingwarnings fromagc_driver_alpha_to_coverage.main0db47b263passes the union of the refreshed sets, 115/115, under the same layer settings with noVUID-line.Windows 11 (build 26200), NVIDIA GeForce RTX 4090 (driver 616.92), MinGW GCC Release build with
BUILD_TESTING=ON, all on one machine.Focused set: the 63 ctest entries of 19 targets (62 before the
mainmerge). These areagc_driver_graphics_tests(the CPU decode tests, with a new EQAA case), the newagc_driver_eqaa_color_target_tests, and the MSAA, FMASK, CMASK and journal tests: alpha_to_coverage, cached_image_multisample_guard, cmask_fast_clear, color565_target, fmask_image_reads, image_msaa_address_on_plane, msaa_enable_single_sample, multisample_fill_host_only, multisample_readback, multisample_retirement, multisampled_pass_order, native_multisample_depth, pipeline_journal, pixel_sample_coverage, sample_mask_multisample, sample_multisample_target, staged_clear_sampled_read.This PR (43a91814a, which merges
main7e69be679): 63/63 passed, each test run three times (ctest --repeat until-fail:3).After the merge,
main(#7948) decodes an FMASK base for every multisampled target, so 43a91814a drops the decode test's check that a 4-sample 4-fragment target has none; it still checks that such a target is not EQAA.Control for the FMASK guard move: this head without the move in
acquire(). The new test fails witha read of the FMASK base the EQAA target was last drawn with was not refused by name.Validation layer:
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(Vulkan SDK 1.4.363.0),ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1withctest -V, onmain83462cc57(7e69be679plus eight commits totools/only) (62/62; the new test isn't onmain) and on this PR (63/63). Neither log haswas not found but was requested by env var VK_INSTANCE_LAYERS. Neither log has aVUID-line. Both have the same threeUndefined-Value-ShaderOutputNotConsumed-DynamicRenderingwarnings, frommain'sagc_driver_alpha_to_coverage.Before the
mainmerge (22766abc5 onmain7e2ba73e4): 62/62 three times.maincontrol there:main6ef5a1c4cplus only the new GPU test and its CMake line; the test fails withAGC graphics: color targets with fewer fragments than samples (EQAA) are unsupported.The GPU test draws two slanted triangles, red and green, into a 256x256 RGBA8 target with 4 samples and 2 fragments and into the same target at 4 fragments, then CB-resolves both into one-sample targets. It requires byte-identical results, with edge texels at one-quarter and three-quarter coverage (410 such channels). It also checks that a read of the EQAA FMASK range is refused by name, that the color guard ends at the 2-fragment footprint (512 KiB, not 1 MiB), and that the 4x target's FMASK is not guarded. Then it draws the EQAA color surface again with a second FMASK base and checks that a read of the new base is refused by name and the old base is no longer guarded. Last, it removes only the FMASK allocation of a drawn EQAA target and checks that its color plane is no longer guarded and that the next draw guards a new target, then removes only the color allocation of another and checks that its FMASK range goes.
The CPU tests decode GT7's registers (
PA_SC_AA_CONFIG0x0020c002,CB_COLOR_INFO0xe028,CB_COLOR_ATTRIB0xa000, an FMASK base with pipe-bank bits) through the draw-key register facade (0x3a0 now covered), as well as 8 samples with 4 fragments. They check the refusals: more fragments than samples, noCOMPRESSION, no FMASK base and a badFMASK_BASE_EXT. They also check the CB resolve's source decode and the 4x, 4s/2f and 8s/4f footprints.Not run on Linux.
sizeof(State)stays atmain's 808: a probe built on macOS gives 784, 792 and 808 formain7e2ba73e4, this PR's previous head andmain7e69be679, the values of their Linux guards, and 808 for this head.tools/check_conventions.pypasses.Gran Turismo 7 (PPSA01317) on a local stack of
mainwith the open PRs it needs before this stop (#7243, #7256, #7550, #7978, #8564, #9020, #9335, #9068), with its diagnostic switches that skip refused compute dispatches (at the revision before the one-fragment refusal; GT7's target has two fragments): the run no longer stops on the EQAA refusal, and nothing hits the FMASK or color guard. After CROSS at the main menu it renders the car loading screens, then stops on the next pass:a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with ... DB_EQAA Z interpolation or overrasterization. That pass keeps the EQAA pass's 4xPA_SC_AA_CONFIGwithDB_EQAA0x00050000 (INTERPOLATE_COMP_Z); it is a separate topic for a follow-up PR.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)mainand keeps both. #9533 (with #9717 and #9742) goes after this PR and rebases over it.mainnow coversCB_COLOR*_FMASK_BASE_EXTinDrawKeyRegistersitself, so this PR no longer extends that list and no longer overlaps #9431 there. #10049 (mine): whichever lands second keeps this PR's EQAA FMASK range out of #10049's color-plane test.Imported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-22T09:12:32Z.
Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T10:25:07Z.
Review: COMMENTED
Apple GPU run of 22766abc5: the new test passes on MoltenVK and fails without the change.
Setup: Apple M2 Max, macOS 27.2, x86-64 under Rosetta 2, Release. Base is #8658 (
feat/macos-port) @f48446abb(mainplus the macOS port), notmain; your diff from7e2ba73e4applies cleanly on it. Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363) and MoltenVK main + SPIRV-Cross #2704.ANYPS5_NO_SHADER_CACHE=1,-j1 --timeout 30.agc_driver_eqaa_color_targetpasses 3 of 3 on both drivers:4-sample 2-fragment draws resolve like 4x MSAA (262144 bytes), 410 quarter-coverage channels, FMASK guarded. That is the same 410 channels as on your 4090, so Metal's 4x sample positions give the same edge coverage. Your focused set (32 ctest entries:agc_driver_graphics, the new test, and the MSAA, FMASK, CMASK and journal tests) with--repeat until-fail:3: the only failures aremultisample_retirementandsample_mask_multisample. Both fail the same way on the base without this PR.EqaaColorTarget.cppand its CMake line): fails on both drivers withAGC graphics: color targets with fewer fragments than samples (EQAA) are unsupported, the same as yourmaincontrol.^agc(857 entries, without flip/display/lds_atomics64): MoltenVK main + #2704 gives exactly the base's 16 failures. MoltenVK 1.4.2 gives the base's 17, plusagc_driver_uint8x4_color_target, which is intermittent on Apple without this PR too (it fails in 19 of 150 runs on the base). No new failures.sizeof(State) == 792assert is under__linux__ && __GLIBCXX__, so it doesn't apply to the macOS libc++ build. The macOS build compiles with no errors.GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704).
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-22T12:19:41Z.
Review: DISMISSED
I reviewed the decode, fragment-sized guest footprint, FMASK guard, resolve path, and the execution test. The author reports 62/62 focused tests on an RTX 4090 with three repeats and validation-layer comparison; an independent Apple/MoltenVK report also says the new test passes. I could not independently build or run the C++ tests in this Linux checkout because no configured product build is available.
There is a guard-lifetime issue at
sameTarget(I left an inline comment): the cache key includeseqaaFragmentsbut omitsfmaskAddress. If the same color surface is reused with a different FMASK base,acquire()can return the existing target without refreshing its guard, leaving the new FMASK range unprotected. Please make the target/guard follow the current FMASK address and add a regression that changes the FMASK base for the same color surface.Please also update this branch to current
main(8b3a6ba88d8fc74e768f1a7e8e9e36fb69842768); the current head is based on7e2ba73e4c, 13 commits behind. Rerun the focused tests after rebasing.The overlap report lists shared changes with #7948 and #9450, which this description already discusses, and newly open #9672 through #9675, which touch
State.hpp's register ranges and/orState.cpp's target decode. The repository asks authors to agree on landing order for overlapping code and declareDepends onwhen a stack is required. Please coordinate with those authors and update the checklist if this change depends on a particular order. I am treating these as shared-file coordination needs, not assuming the separate PS4/PS5 behavior is duplicate work.Local checks:
git diff --checkis clean. GitHub conventions, eligibility, intake, labels and report checks pass; product CI jobs are skipped by the repository gates. I did not independently reproduce the author-reported GPU results.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:42:29Z.
@frankea a merge-order note: #9533, with #9717 and #9742 stacked on it, moves the guarded byte count out of
guard()intoguardedColorBytes(target), so its colour-target alias query (whether a host-only colour target covers a D32S8 stencil or depth plane) uses the same range as the guard. This PR changes that count to usestoredFragments(target)in place of the sample count. Composed, the fragment count goes intoguardedColorBytes, so the guard and the alias query keep covering the same bytes. #9533 goes after this PR and rebases over it.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T04:07:37Z.
Review: DISMISSED
Reviewed — changes requested
The EQAA decode, the fragment-sized guard and the FMASK guard build and pass the focused tests on this head, with no validation errors, and the new GPU test fails without the change; the branch conflicts with current
mainin the AgcDriver debt file again, so it needs another merge.What I ran
802f23b930245103e3e9b410c266886055367456(merge baseca6e29e8363e3d10e9e6482bede3d19d6b9f0e6e)main:b433c40f2f46aa2e59e19806010a839ac8572d64The merge with
mainconflicted, so I built and tested the PR head itself.Results
mainb433c40f2docs/dev/debt/libSceAgcDriver.md; the five code and CMake files merge cleanlygit diff --checktools/check_conventions.pydocs/dev/debt/libSceAgcDriver.md:192debt entry is 1956 characters longagc_driver_graphicsprintsEQAA color target decode checks passedmain, validation layermainhas noagc_driver_eqaa_color_target)VUID-linesmainwas not found but was requested by env var VK_INSTANCE_LAYERSInsert instance layerappears once per test in both (12 and 11)sizeof(State)guardNew GPU test, PR head
Merge conflict
mainadded theCB fast-clear eliminate over part of a targetentry right afterMultisampled target guest access. This PR rewrites that entry and addsEQAA color targetsafter it, so the two hunks touch adjacent lines:Negative control
State.hpp,State.cppandMultisampleTarget.cppfromca6e29e83; tests and CMake from this PR):agc_driver_eqaa_color_targetfails withAGC graphics: color targets with more than one but fewer fragments than samples (EQAA) are unsupported.agc_driver_graphics_testsdoesn't compile, because the new decode test usesColorTarget::eqaaFragments.retireUnmappedchange reverted (MultisampleTarget.cpp:821back torange.metadataValid && !range.active->load(...)):agc_driver_eqaa_color_target,agc_multisample_guest_access,agc_driver_multisample_retirementandagc_driver_graphicsall still pass. See the first non-blocking finding.All files were restored to the PR head afterwards.
Findings
Blocking
mainindocs/dev/debt/libSceAgcDriver.md. This confirms @oneandonlydean's note, with the detail above. The head is based onca6e29e83, andmainhas since added theCB fast-clear eliminate over part of a targetentry next to theMultisampled target guest accessentry this PR edits (docs/dev/debt/libSceAgcDriver.md:192-193here). The code files merge without conflicts. Fix: mergemain, keep both entries, and rerun the focused set on the result. I could only test the PR head, not the merged tree.Non-blocking
retireUnmappedchange has no test.core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:821now drops every inactive range, so unmapping only an EQAA target's FMASK plane also removes its color-plane range. Before this change, that range stayed inguarded()withhostOnlyset after its target was retired, soRequireNoMultisampleColorTargetkept refusing reads of a surface no live target owns. The description lists this change, but no test fails without it (control above). Suggested test: draw the EQAA target, remove only the FMASK allocation, and check that a read of the color plane is no longer refused and that the next draw creates a fresh target. The reverse case would also help: remove the color plane and check that the FMASK range goes.core/libs/prx/libSceAgcDriver/tests/Graphics.cpp:4290-4292still asserts that an FMASK-backed EQAA target withCB_COLOR_INFODCC throws. @oneandonlydean asked for this case to be dropped, because it pins a valid form as throwing. It is still present at802f23b93. The productionRequireatState.cpp:2147can stay as it is; only the test case needs to go.tools/check_conventions.pywarns thatMultisampled target guest access(docs/dev/debt/libSceAgcDriver.md:192) is 1956 characters. The entry was already long, and this PR adds two parentheticals to it. While resolving the conflict, consider moving the fragment-count detail into the newEQAA color targetsentry, which already describes the EQAA footprint, so the older entry stops growing.Not verified
main: the conflict meant I built and tested the PR head (2960 commits behindmain) andmainseparately.Z_64KB_Xlayout and byte count against console or addrlib output. I checked only thatfmaskBytesgives 1, 2 and 4 bytes per pixel for 4s/2f, 8s/2f and 8s/4f, as the cited Mesa table does.To get this to a good state
main, resolve the debt-file conflict by keeping both entries, and rerun the focused set with the validation layer on the merge.tests/Graphics.cpp:4290-4292, as requested earlier.retireUnmappedchange.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T21:23:26Z.
Review: DISMISSED
Re-checked — new head, changes requested
The author addressed the prior DCC-test and retirement-coverage findings, but the current head is still based on
bb04a4f1ea, and livemainhas since changed files this PR edits.What I ran
Compared exact PR head
1c1de36955cdc7b114dba1b44d80ab78da3c5d87with livemainc40cef843681418b4d66df2939a92ba8ba6ba5d9on Linux x86-64 using Git and GitHub CLI. The merge preview is clean. I did not build or run tests locally.Results
maingit diff --check1c1de36955merged withbb04a4f1ea; this is not the currentmainintegrationUnedited command output
git diff --checkproduced no output and exited successfully.Findings
Blocking
bb04a4f1ea; livemainisc40cef843681418b4d66df2939a92ba8ba6ba5d9. Commits since that tested base change files this PR edits, includingMultisampleTarget.cpp,State.cpp,Graphics.cpp, anddocs/dev/debt/libSceAgcDriver.md. A clean merge preview does not validate those combined changes. Please merge currentmain, retain its changes, and rerun the focused EQAA tests and validation comparison on the resulting exact base and head.Non-blocking
retireUnmappedregression and its negative control, and remove the invalid DCC-throws assertion. I did not independently reproduce these results.Sources
c40cef843681418b4d66df2939a92ba8ba6ba5d91c1de36955cdc7b114dba1b44d80ab78da3c5d87c40cef843681418b4d66df2939a92ba8ba6ba5d9Not verified
I did not run the focused tests, validation layer, a local build, or a GPU/title run. The author’s results are reported, not independently confirmed.
To get this to a good state
Merge live
main, rerun the focused EQAA and validation-layer checks against the updated exact head, and refresh the report. I will rerun the same integration, whitespace, and relevant test checks on that head.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T22:24:04Z.
Review: APPROVED
Re-checked — approved
The PR now merges cleanly with current
main. Since802f23b93it drops the DCC-refusal test case, adds a regression for theretireUnmappedchange, and adds a fix (3e3ddc10c) that collects FMASK-plane writes before each use stamp. On the merged tree the build passes, the focused tests pass, and three negative controls fail where they should.What changed since my last review
60a182e28(drops the DCC-with-FMASK decode case),1c1de3695(adds the test that removes either plane of an EQAA target), and3e3ddc10c(collectFmaskWrites, called before everystampUseof an EQAA target). Also merges ofmainup to086c0686c8(8efaff36c,8bc11fae3). The last merge adapts the PR to #8223'sTargetUseguards, #6628's guarded-range generation, andguardedColorBytesmoving.What I ran
8bc11fae31b0ef03e768e14938cd5b6036f8d57b,main04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, merged tree3440987aaccb56783b07dd403c97d9c71265210d.main04a9eb4fagit diff --checkcheck_conventions.pylibsmainbaseline.agc_driver_eqaa_color_target,agc_driver_graphics,agc_multisample_guest_accessandagc_driver_multisample_retirementpassVUID-line in any test this PR touches. The only test flagged isagc_driver_image_gather_volume: its sampler address-mode VUIDs are marked "test not run on main", and this PR changes no sampler codegit status --porcelainemptyNegative controls
All three match the controls the author reports in the description.
Previous findings
mainindocs/dev/debt/libSceAgcDriver.md: Resolved. The PR merges cleanly into04a9eb4fa. The merged tree builds and passes the selected tests, as shown above.retireUnmappedchange had no test: Resolved.1c1de3695covers both directions (EqaaColorTarget.cpp L299 and L312). With the old second pass restored, the test fails (control 3).60a182e28removes it, and no DCC case is left ineqaaColorTargetTests. The productionRequirestays, as I suggested.Multisampled target guest accessis nowmain's text unchanged, and the fragment-count detail is in theEQAA color targetsentry. A different entry now trips the same warning (see below).New findings
Blocking
None.
Non-blocking
Multisampled color targetsdebt entry is over 1000 characters.check_conventions.pywarns atdocs/dev/debt/libSceAgcDriver.md:148: 1061 characters. Onmainthe entry is just under the limit. This PR's added clause ", the color plane or an EQAA target's FMASK plane, ... with every guard" pushes it over (head L147). Suggested fix: keep this entry as "An unmap or allocation removal of a whole guarded range also retires it with every guard". Then add "either plane's unmap retires both" to theEQAA color targetsentry, which already lists the FMASK plane.I reviewed
3e3ddc10citself:collectFmaskWritesonly advances the FMASK plane's write generation beforestampUsestores the use generation.CollectWritesstamps generations and does not consume writes, so it hides nothing from other consumers of that range.guard,holdHostOnlyand the reuse path ofacquire(L997-L1001).retireUnmappederase (L978) feeds #6628's generation bump.Not verified
agc_driver_graphicstook 35.0 s here, over the 30 s rule. TechLevelZero's CI reported 36.6 s on an earlier head too. This PR only adds a few decode calls to it, and I did not time it onmain, so I don't attribute this to the PR.Z_64KB_Xfootprint against console or addrlib output, and Gran Turismo 7 behaviour; I did not run any title.