Skip to content

feat(agc): draw EQAA color targets at their coverage sample count - #9700

Merged
oneandonlydean merged 16 commits into
boykopovar:mainfrom
frankea:eqaa-color-targets
Nov 4, 2026
Merged

oneandonlydean merged 16 commits into
boykopovar:mainfrom
frankea:eqaa-color-targets

Conversation

@frankea

@frankea frankea commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What

DecodeColorBuffer refused every color target whose CB_COLOR_ATTRIB.NUM_FRAGMENTS is below NUM_SAMPLES (EQAA): "color targets with fewer fragments than samples (EQAA) are unsupported". This accepts such a target when it has FMASK (CB_COLOR_INFO.COMPRESSION and a CB_COLOR*_FMASK base) and no DCC, and draws it as the existing host multisampled target at its coverage sample count.

  • ColorTarget gains eqaaFragments (0 when the fragments equal the samples). The FMASK base is feat(agc): expose expanded FMASK for tracked native owners #7948's fmaskAddress, which main decodes for every multisampled target; CB_COLOR*_FMASK_BASE_EXT (context 0x3a0 + slot) is now in DrawKeyRegisters. samples stays NUM_SAMPLES, as main's coverageSamples is, so pipelines, draws, CMASK fast clears, the FMASK decompress and the CB resolve are the existing MSAA path. eqaaFragments fits in existing padding, so sizeof(State) and the pipeline journal are unchanged; a pipeline depends on the coverage sample count, not the fragment count.
  • The guest footprint (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.
  • The FMASK plane is guarded as a Z_64KB_X surface 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 of retireUnmapped now drops every inactive range, not only metadata ranges.
  • The FMASK guard follows the FMASK base. When a resident EQAA target is drawn again with another CB_COLOR*_FMASK base, 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 bumps main's guarded-range generation (fix(agc): exclude native MSAA spans from BDA tables #6628), as every other guard change does.
  • With fix(agc): retire a multisampled color target the title wrote over #8223 in main, the FMASK range shares the target's TargetUse: 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 (3e3ddc1), so CPU writes made before the draw do not count as overwrites.
  • Sampling an EQAA target through a T# and storage image access to it throw ("... EQAA color target ... is not implemented"). EQAA without FMASK, with DCC, or with more fragments than samples throws. A one-fragment target takes fix(agc): draw a one-fragment multisampled color target as one sample with sample 0's coverage #9450's path on main (one sample, samples 1 and coverageSamples NUM_SAMPLES, FMASK guarded); coverageSamples stays the sample count for this PR's targets too, so fix(agc): draw a one-fragment multisampled color target as one sample with sample 0's coverage #9450's one-fragment checks see them as ordinary N-sample targets.
  • Technical debt: a new "EQAA color targets" entry, which also says the guest-access guard sizes the color plane by fragments; "Multisampled color targets" names the FMASK range. "Multisampled target guest access" is unchanged from main.

GPU semantics, with sources:

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_INFO 0x0000e028, CB_COLOR_ATTRIB 0x0000a000, CMASK and FMASK). The title consumes the target only through a CB resolve.

Overlap with other PRs:

Tested

  • Refreshed onto main ee9a9a6 (47d9c51; fix(agc): retire a multisampled color target the title wrote over #8223's guard rework resolved as described in the comments), fixed in 3e3ddc1, and refreshed onto main b1b5353 (head 9465e32; fix(agc): exclude native MSAA spans from BDA tables #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_target among them, pass 186/186 on 9465e32, 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): 785 Insert instance layer lines, no VUID- line, and 13 warnings, the ones main shows in the same tests. main b1b5353 passes a 207-entry set holding all of these but the EQAA test in both runs, with no VUID- line. Control: 47d9c51 without 3e3ddc1 fails agc_driver_eqaa_color_target with a read of the EQAA target's FMASK was not refused by name: (the access retired the target).

  • Refreshed onto main bb04a4f (head 1c1de36; the debt-file conflict resolved by keeping main'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 775 Insert instance layer lines and no VUID- line or was not found but was requested by env var VK_INSTANCE_LAYERS. main bb04a4f passes its 175 (no agc_driver_eqaa_color_target) in both runs, 770 Insert instance layer lines, no VUID- line. agc_host_import_cut_lifetime (agc_host_import_cut_lifetime fails on Windows since the merge of #9159 #10746) passes on both now.

  • Control for the retireUnmapped change: this head with the old second pass (range.metadataValid && !range.active->load(...)): agc_driver_eqaa_color_target fails with removing only the FMASK allocation of an EQAA target left its color plane guarded.

  • Refreshed onto main ca6e29e (head 802f23b; 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_target among them, and the same 163 under the validation layer (same settings as below), where the loader inserted the layer and the log has no VUID- line or was 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 on main ca6e29e, which passes 162 of its 163 entries (it has no agc_driver_eqaa_color_target) in both runs.

  • On @adriadam10's rebase onto main 8a85a5c and his e6b1952, after merging main 1c90644 (f9971fc) and following main's one-fragment decode in two decode-test expectations (51969a1), RTX 4090, each test run three times. The set is 159 ctest entries of 20 targets: the 19 below plus agc_driver_recorder_tests, whose multisample guest access and one-fragment FMASK guard tests share the guard list this PR extends.

  • Refreshed onto main 0db47b2 (head d902416; no conflicts), RTX 4090 (NVIDIA 616.92, Windows 11): the 64 ctest entries of the focused set below (with agc_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 no VUID- line; its only messages are main's three Undefined-Value-ShaderOutputNotConsumed-DynamicRendering warnings from agc_driver_alpha_to_coverage. main 0db47b2 passes the union of the refreshed sets, 115/115, under the same layer settings with no VUID- 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 main merge). These are agc_driver_graphics_tests (the CPU decode tests, with a new EQAA case), the new agc_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 (43a9181, which merges main 7e69be6): 63/63 passed, each test run three times (ctest --repeat until-fail:3).

  • After the merge, main (feat(agc): expose expanded FMASK for tracked native owners #7948) decodes an FMASK base for every multisampled target, so 43a9181 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 with a 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=1 and ANYPS5_REQUIRE_VULKAN=1 with ctest -V, on main 83462cc (7e69be6 plus eight commits to tools/ only) (62/62; the new test isn't on main) and on this PR (63/63). Neither log has was not found but was requested by env var VK_INSTANCE_LAYERS. Neither log has a VUID- line. Both have the same three Undefined-Value-ShaderOutputNotConsumed-DynamicRendering warnings, from main's agc_driver_alpha_to_coverage.

  • Before the main merge (22766ab on main 7e2ba73): 62/62 three times. main control there: main 6ef5a1c plus only the new GPU test and its CMake line; the test fails with AGC 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_CONFIG 0x0020c002, CB_COLOR_INFO 0xe028, CB_COLOR_ATTRIB 0xa000, 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, no COMPRESSION, no FMASK base and a bad FMASK_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 at main's 808: a probe built on macOS gives 784, 792 and 808 for main 7e2ba73, this PR's previous head and main 7e69be6, the values of their Linux guards, and 808 for this head. tools/check_conventions.py passes.

  • Gran Turismo 7 (PPSA01317) on a local stack of main with the open PRs it needs before this stop (fix(agc): write a replace blend into a packed color target without blending #7243, feat(agc): render layered draws into a depth view of several slices #7256, fix(shader): answer image_get_resinfo on any T# dimension #7550, fix(agc): raise no end-of-pipe event from flips and carry the release's interrupt context #7978, feat(agc): merge partial writes into 4_4_4_4 UNORM color targets #8564, feat(agc): blend into 11_11_10 float color targets in the pixel shader #9020, feat(agc): draw alpha-tested packed-target merges that write depth as a depth pass and an EQUAL merge pass #9335, fix(shader): link table callees that together exceed s_call_b64 range #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 4x PA_SC_AA_CONFIG with DB_EQAA 0x00050000 (INTERPOLATE_COMP_Z); it is a separate topic for a follow-up PR.

Checklist

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 22, 2026
@clairtonmichel

Copy link
Copy Markdown

Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):

  • Built cleanly with zero errors.
  • Ran the AGC driver test suite (640 tests): passed successfully, aligning perfectly with environment baselines (known pre-existing test quirks).
  • EQAA color target changes are stable and ready to merge!

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6146 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6185 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6743 docs/dev/debt/libSceAgcDriver.md
PR 6804 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6970 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6973 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6987 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6989 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6995 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7085 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7410 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7668 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8212 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8246 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8707 docs/dev/debt/libSceAgcDriver.md
PR 9318 docs/dev/debt/libSceAgcDriver.md
PR 9356 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9387 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9489 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9604 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9672 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9673 docs/dev/debt/libSceAgcDriver.md
PR 9674 docs/dev/debt/libSceAgcDriver.md
PR 9675 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9712 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9742 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9748 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9875 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9891 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9892 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9893 docs/dev/debt/libSceAgcDriver.md
PR 9895 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9897 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9898 docs/dev/debt/libSceAgcDriver.md
PR 9915 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10064 docs/dev/debt/libSceAgcDriver.md
PR 10141 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10233 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10249 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 10256 docs/dev/debt/libSceAgcDriver.md
PR 10351 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10469 docs/dev/debt/libSceAgcDriver.md
PR 10472 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10492 docs/dev/debt/libSceAgcDriver.md
PR 10497 docs/dev/debt/libSceAgcDriver.md
PR 10556 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 10743 docs/dev/debt/libSceAgcDriver.md
PR 10779 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 11104 docs/dev/debt/libSceAgcDriver.md
PR 11346 docs/dev/debt/libSceAgcDriver.md
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 11557 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 11566 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 11587 docs/dev/debt/libSceAgcDriver.md
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 11995 docs/dev/debt/libSceAgcDriver.md
PR 11998 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 12066 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 12120 docs/dev/debt/libSceAgcDriver.md
PR 12452 docs/dev/debt/libSceAgcDriver.md
PR 12565 docs/dev/debt/libSceAgcDriver.md
PR 12567 docs/dev/debt/libSceAgcDriver.md
PR 12568 docs/dev/debt/libSceAgcDriver.md
PR 12662 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 12764 docs/dev/debt/libSceAgcDriver.md
PR 12792 docs/dev/debt/libSceAgcDriver.md
PR 12840 docs/dev/debt/libSceAgcDriver.md
PR 12855 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 12904 docs/dev/debt/libSceAgcDriver.md
PR 12980 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 13021 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13023 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13146 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13147 docs/dev/debt/libSceAgcDriver.md
PR 13151 docs/dev/debt/libSceAgcDriver.md
PR 13248 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13474 docs/dev/debt/libSceAgcDriver.md
PR 13599 docs/dev/debt/libSceAgcDriver.md
PR 13707 docs/dev/debt/libSceAgcDriver.md
PR 13793 docs/dev/debt/libSceAgcDriver.md
PR 13809 docs/dev/debt/libSceAgcDriver.md
PR 13858 docs/dev/debt/libSceAgcDriver.md
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13963 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13991 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 13994 docs/dev/debt/libSceAgcDriver.md
PR 14005 docs/dev/debt/libSceAgcDriver.md
PR 14018 docs/dev/debt/libSceAgcDriver.md
PR 14032 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14076 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14085 docs/dev/debt/libSceAgcDriver.md
PR 14212 docs/dev/debt/libSceAgcDriver.md
PR 14220 docs/dev/debt/libSceAgcDriver.md
PR 14243 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14248 docs/dev/debt/libSceAgcDriver.md
PR 14265 docs/dev/debt/libSceAgcDriver.md
PR 14296 docs/dev/debt/libSceAgcDriver.md
PR 14302 docs/dev/debt/libSceAgcDriver.md
PR 14311 docs/dev/debt/libSceAgcDriver.md
PR 14344 docs/dev/debt/libSceAgcDriver.md
PR 14473 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14561 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14621 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14628 docs/dev/debt/libSceAgcDriver.md
PR 14815 docs/dev/debt/libSceAgcDriver.md
PR 14880 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14909 docs/dev/debt/libSceAgcDriver.md
PR 14940 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 14943 docs/dev/debt/libSceAgcDriver.md
PR 14944 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 14950 docs/dev/debt/libSceAgcDriver.md
PR 14963 docs/dev/debt/libSceAgcDriver.md
PR 14964 docs/dev/debt/libSceAgcDriver.md
PR 14976 docs/dev/debt/libSceAgcDriver.md
PR 14982 docs/dev/debt/libSceAgcDriver.md
PR 14993 docs/dev/debt/libSceAgcDriver.md
PR 15058 docs/dev/debt/libSceAgcDriver.md
PR 15059 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp

@jotitadev jotitadev 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.

Apple GPU run of 22766ab: 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) @ f48446a (main plus the macOS port), not main; your diff from 7e2ba73 applies 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.

  • This PR: agc_driver_eqaa_color_target passes 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 are multisample_retirement and sample_mask_multisample. Both fail the same way on the base without this PR.
  • Test only, production files at the base (new EqaaColorTarget.cpp and its CMake line): fails on both drivers with AGC graphics: color targets with fewer fragments than samples (EQAA) are unsupported, the same as your main control.
  • Full ^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, plus agc_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.
  • The sizeof(State) == 792 assert 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.


bool sameTarget(const ColorTarget& a, const ColorTarget& b) {
return a.surfaceAddress == b.surfaceAddress && a.format == b.format && a.extent.width == b.extent.width && a.extent.height == b.extent.height && a.samples == b.samples;
return a.surfaceAddress == b.surfaceAddress && a.format == b.format && a.extent.width == b.extent.width && a.extent.height == b.extent.height && a.samples == b.samples && a.eqaaFragments == b.eqaaFragments;

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.

This cache key distinguishes EQAA fragment count but omits the newly guarded FMASK address. If the same color surface is rendered again with a different fmaskAddress, acquire() finds the existing target and returns it without refreshing guarded(), so the old FMASK range remains protected while the current FMASK range is not. Please include the FMASK address in target identity/recreation or explicitly replace that guard when it changes, and add a regression that renders the same color target with two FMASK bases and verifies the guard follows the active base.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, that was a real gap. Fixed in 53d00af: when acquire() reuses an EQAA target whose FMASK base changed, it replaces the target's FMASK guard with one at the new base, and 81eca78 keeps the FMASK pipe/bank XOR with it. I kept the FMASK base out of the target's identity, so the host target and its samples carry over to the next draw.

The regression is in EqaaColorTarget.cpp: it draws the same color surface again with a second FMASK block, then requires a read of the new base to be refused by name and the old base to be unguarded. Without the change in acquire() it fails with a read of the FMASK base the EQAA target was last drawn with was not refused by name. Results are in the body.

AI-assisted: yes (Claude Code)

@MarcZX10 MarcZX10 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.

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 includes eqaaFragments but omits fmaskAddress. 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 on 7e2ba73e4c, 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/or State.cpp's target decode. The repository asks authors to agree on landing order for overlapping code and declare Depends on when 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 --check is 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.

@EagleBearerYS

Copy link
Copy Markdown
Contributor

@frankea a merge-order note: #9533, with #9717 and #9742 stacked on it, moves the guarded byte count out of guard() into guardedColorBytes(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 use storedFragments(target) in place of the sample count. Composed, the fragment count goes into guardedColorBytes, so the guard and the alias query keep covering the same bytes. #9533 goes after this PR and rebases over it.

@frankea

frankea commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@EagleBearerYS thank you for working that out. I've recorded it in the checklist: #9533, with #9717 and #9742, goes after this PR and takes the fragment count in guardedColorBytes.

AI-assisted: yes (Claude Code)

@frankea

frankea commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 the FMASK guard follows the active FMASK base since 53d00af, with the regression you asked for, and the branch now merges main 0db47b2 (head d902416, no conflicts); the focused set and the paired validation-layer comparison are rerun on it (first bullet under Tested). The checklist now records the order with #9533, #9450 and #9672 to #9675, and I've asked fma-rc and ntamas94 on their PRs.

AI-assisted: yes (Claude Code)

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
#	docs/dev/debt/libSceAgcDriver.md
Main's guards now retire a target on access when watched memory under the accessed range was written after the target's last use. The use stamp collects writes over the color plane only, so CPU writes to the FMASK plane made before the draw were first collected at the access, counted as newer, and retired the EQAA target instead of refusing the access. Collect the FMASK plane before each stamp.
# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 30, 2026
@frankea

frankea commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Merged main ee9a9a6 (47d9c51). main merged #8223 meanwhile, which reworks MultisampleTarget's guards: each target carries a TargetUse (host-only flag, write stamp, claimed flag), a bind of another target over a guarded range claims it, and an access retires a claimed or CPU-overwritten target instead of refusing.

  • This PR's fragment-sized footprint now sits in main's new guardedColorBytes, so the guard and main's write stamp cover the same fragment-sized color plane.
  • The FMASK plane range shares the target's TargetUse, so a bind over it claims the target and a CPU write over it retires it, as for the color plane. A moved FMASK base re-guards with the same use.
  • Debt file: main rewrote the "Multisampled color targets" entry; it is kept, and its unmap sentence now names an EQAA target's FMASK plane among the whole ranges whose unmap retires the target with every guard. The old entry this PR had edited is gone.
  • One fix after that merge, 3e3ddc1: main's canRetire retires a target on access when watched memory under the access was written after the target's use was stamped, and the stamp collects writes over the color plane only. A CPU write to the FMASK plane made before the draw (the test's zero fill) was first collected at the access, looked newer than the stamp, and retired the EQAA target instead of refusing. The stamp now collects the FMASK plane first. Without that commit agc_driver_eqaa_color_target fails with a read of the EQAA target's FMASK was not refused by name: and an empty refusal.
  • Then merged main b1b5353 (9465e32) for fix(agc): exclude native MSAA spans from BDA tables #6628 (MarcZX10), whose guarded ranges carry a generation for the BDA table exclusion: this PR's removal of every inactive range in retireUnmapped counts toward it, and moving an EQAA target's FMASK plane bumps it.

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_target among them, pass 186/186 on 9465e32, 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; 785 layer inserts) with no VUID- line. Its 13 warnings are the ones main b1b5353 shows in the same tests (3 in agc_driver_alpha_to_coverage, 10 in agc_storage_idle_writeback_race). main b1b5353 on a 207-entry set (this set without the EQAA test, plus #10049's): 207/207 three times and under the validation layer, no VUID- line. The same result on 3e3ddc1 (main ee9a9a6).

AI-assisted: yes (Claude Code)

@TechLevelZero

TechLevelZero commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 9465e32 merged onto main 6b48aee · tested 2026-10-31 02:33 UTC · 26 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,409 passed · 4 failed (0 new, 2 also fail on main, 2 unstable on main) · 42 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,455 of 3,041 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (909 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 40.3 s, ⚠️ agc_driver_graphics 36.6 s, ⚠️ agc_driver_graphics_maps_fallback 30.9 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 1 of the last 10 main runs
agc_submit_progress: failed in 6 of the last 10 main runs
Failing on main too (2, not counted against this PR)
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_driver_eqaa_color_target
Validation IDs already present on main (5 IDs in 420 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (420 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, and 412 more
VUID-vkCmdCopyImage-srcImage-01548 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-vkCmdCopyImage-srcImage-01551 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
VUID-vkCmdCopyBuffer-commonparent (1 test): agc_driver_depth_clear_hle
Skipped (42)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or plat
Reproduce
git fetch origin 9465e32e31703a71d8f9bbfdd23be6a84a3ce583 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827
git checkout 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827 && git merge --no-ff 9465e32e31703a71d8f9bbfdd23be6a84a3ce583
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
@oneandonlydean
oneandonlydean dismissed stale reviews from XairRrR and MarcZX10 November 1, 2026 02:25

Stale: the requested main merge is in (8efaff3); it merges cleanly and CI is green on that head.

@TechLevelZero

TechLevelZero commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 8efaff3 merged onto main f2d874c · tested 2026-11-02 00:03 UTC · 25 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,498 passed · 6 failed (0 new, 4 also fail on main, 2 unstable on main) · 46 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,550 of 3,168 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (937 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_graphics 33.6 s, ⚠️ agc_driver_graphics_maps_fallback 32.6 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 1 of the last 10 main runs
agc_submit_progress: failed in 5 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_dcc_keys_first_write
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_driver_eqaa_color_target
Validation IDs already present on main (5 IDs in 483 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (483 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 475 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (46)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_pipeline_binary_vulkan: skipped, the device lacks VK_KHR_pipeline_binary
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fps_limit: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL
Reproduce
git fetch origin 8efaff36c0be57eb48d6d4bdaa87819ea17b95ba f2d874c1fdccf781c0fa5d86619bb5dd8894b958
git checkout f2d874c1fdccf781c0fa5d86619bb5dd8894b958 && git merge --no-ff 8efaff36c0be57eb48d6d4bdaa87819ea17b95ba
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added review queue Next in the maintainer review queue: checks pass, no open change request, no conflict needs rebase Conflicts with main, rebase needed labels Nov 1, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi frankea, main moved today, and this PR no longer merges cleanly with main. These conflicts overlap your changes, so they need your call:

  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp

Could you merge main into this branch and resolve them, keeping what main added? A merge commit is fine; no need to rebase or force-push. Once it's pushed we'll re-review the merge.

MultisampleTarget.cpp: main moved PrimedSharedMutex to libc and guardedColorBytes earlier in the file; GuardedRange keeps the PR's plane member, and guardedColorBytes (at its new place) keeps the PR's storedFragments change.
Debt doc: main's new written type-0/type-1 descriptor line stays, the multisampled color targets line keeps the PR's wording.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 3, 2026

@XairRrR XairRrR 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.

Re-checked — approved

The PR now merges cleanly with current main. Since 802f23b it drops the DCC-refusal test case, adds a regression for the retireUnmapped change, and adds a fix (3e3ddc1) 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

  • New commits: 60a182e (drops the DCC-with-FMASK decode case), 1c1de36 (adds the test that removes either plane of an EQAA target), and 3e3ddc1 (collectFmaskWrites, called before every stampUse of an EQAA target). Also merges of main up to 086c068 (8efaff3, 8bc11fa). The last merge adapts the PR to #8223's TargetUse guards, #6628's guarded-range generation, and guardedColorBytes moving.
  • The description's What and Tested sections are updated for these. The author's comments of 2026-10-29 and 2026-10-30 explain the changes.

What I ran

  • Head 8bc11fae31b0ef03e768e14938cd5b6036f8d57b, main 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, merged tree 3440987aaccb56783b07dd403c97d9c71265210d.
  • Machine: Debian 13 VM (32 vCPU, Xeon Gold 6136), GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6). The script built the merged tree and ran the selected tests and the validation-layer comparison.
git diff --check 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24...8bc11fae31b0ef03e768e14938cd5b6036f8d57b
python3 tools/check_conventions.py --base 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24
# negative control 1: State.hpp, State.cpp, MultisampleTarget.cpp from main
ninja -C build agc_driver_eqaa_color_target_tests
ctest --test-dir build --output-on-failure -R '^agc_driver_eqaa_color_target$'
# negative control 2: merged tree, collectFmaskWrites made to return at once (3e3ddc10c undone)
# negative control 3: merged tree, retireUnmapped second pass back to `range.metadataValid && !range.active->load(...)`
# (same build and ctest for both)
# restore the merged files, then:
ninja -C build agc_driver_eqaa_color_target_tests agc_driver_graphics_tests
ctest --test-dir build -j8 --output-on-failure -R '^(agc_driver_eqaa_color_target|agc_multisample_guest_access|agc_driver_multisample_retirement|agc_driver_native_fmask|agc_driver_fmask_image_reads)$'
git status --porcelain
Check Result
Merge into main 04a9eb4 Clean
git diff --check Clean
check_conventions.py 0 errors, 1 warning (see the non-blocking finding below)
Build, libs OK
Selected tests (2241 run by the script) No new failures and no timeouts. All 7 failures also fail on the main baseline. agc_driver_eqaa_color_target, agc_driver_graphics, agc_multisample_guest_access and agc_driver_multisample_retirement pass
Validation layer (784 tests, layer loaded in 783, missing in none) No new VUID- line in any test this PR touches. The only test flagged is agc_driver_image_gather_volume: its sampler address-mode VUIDs are marked "test not run on main", and this PR changes no sampler code
Focused rerun after restoring the files 5/5 passed
Worktree after the controls git status --porcelain empty
Negative controls
# 1: production files from main
AGC graphics: color targets with more than one but fewer fragments than samples (EQAA) are unsupported
# 2: collectFmaskWrites disabled
AGC graphics: a read of the EQAA target's FMASK was not refused by name:
# 3: old retireUnmapped second pass
AGC graphics: removing only the FMASK allocation of an EQAA target left its color plane guarded

All three match the controls the author reports in the description.

Previous findings

  • Blocking — conflict with main in docs/dev/debt/libSceAgcDriver.md: Resolved. The PR merges cleanly into 04a9eb4. The merged tree builds and passes the selected tests, as shown above.
  • Non-blocking — retireUnmapped change had no test: Resolved. 1c1de36 covers both directions (EqaaColorTarget.cpp L299 and L312). With the old second pass restored, the test fails (control 3).
  • Non-blocking — DCC refusal case still in the decode test: Resolved. 60a182e removes it, and no DCC case is left in eqaaColorTargetTests. The production Require stays, as I suggested.
  • Non-blocking — debt entry length: Resolved for the entry I named. Multisampled target guest access is now main's text unchanged, and the fragment-count detail is in the EQAA color targets entry. A different entry now trips the same warning (see below).

New findings

Blocking

None.

Non-blocking

  1. Multisampled color targets debt entry is over 1000 characters. check_conventions.py warns at docs/dev/debt/libSceAgcDriver.md:148: 1061 characters. On main the 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 the EQAA color targets entry, which already lists the FMASK plane.

I reviewed 3e3ddc1 itself:

  • collectFmaskWrites only advances the FMASK plane's write generation before stampUse stores the use generation. CollectWrites stamps generations and does not consume writes, so it hides nothing from other consumers of that range.
  • It runs on all three stamp paths: guard, holdHostOnly and the reuse path of acquire (L997-L1001).
  • The broader retireUnmapped erase (L978) feeds #6628's generation bump.

Not verified

  • Hardware GPUs. The script ran the GPU tests on lavapipe only. The RTX 4090 runs with the validation layer are as the author reports them; the NVIDIA runs are from TechLevelZero's CI comments.
  • agc_driver_graphics took 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 on main, so I don't attribute this to the PR.
  • The FMASK Z_64KB_X footprint against console or addrlib output, and Gran Turismo 7 behaviour; I did not run any title.

@github-actions github-actions Bot added the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 3, 2026
@RNK123

RNK123 commented Nov 4, 2026

Copy link
Copy Markdown

RADV/RX 9060 XT: the new 4-sample/2-fragment EQAA draw and resolve test passes 3/3 on this head.

Head 8bc11fae31 was merged onto main 1c8c0efc8c. The two existing GPU controls agc_driver_sample_mask_multisample and agc_driver_sample_multisample_target passed 3/3 each on main and on the merge. The PR-only agc_driver_eqaa_color_target passed 3/3 on the merge: it compares a 4-sample/2-fragment draw with 4x MSAA, observes 410 quarter-coverage channels, and exercises the FMASK guard and retirement checks. No skips were reported in these three GPU tests. Khronos validation and the Radeon were confirmed in every run; no VUID- or SYNC-HAZARD- diagnostics appeared. An unrelated LSFG implicit-layer loading failure appeared on both arms; the requested Khronos layer loaded.

Sensitivity control: on the merged tree, temporarily reinstating main's refusal of more than one but fewer fragments than samples made the new GPU test fail 3/3 with the expected EQAA unsupported message. After restoring the PR condition it passed 3/3. This is a deliberate mutation, not an unmodified-main run of the PR-only test.

Host: CachyOS, Linux 7.3.1-1-cachyos, GCC 16.2.1, Release; RX 9060 XT (RADV GFX1200), Mesa 26.2.5-arch3.1, Vulkan 1.4.354; Khronos validation layer 1.4.363.

Reproduction

Build the relevant test targets on main and the PR merged onto it, then run three times on each:

export ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer
export VK_LAYER_PATH="$HOME/.local/share/anyps5-tester/vk-layers/usr/share/vulkan/explicit_layer.d"
ctest --test-dir build-main -V -R '^(agc_driver_sample_mask_multisample|agc_driver_sample_multisample_target)$'

On the merged tree also run ctest --test-dir build-main -V -R '^agc_driver_eqaa_color_target$' three times.

Limits: synthetic tests only, no title or console hardware; this does not establish console EQAA behavior beyond the tested cases. The broader CPU graphics fixture passed on both arms but reported unavailable guest-arena mirror subcases; those are not included in the three GPU results above. AI-assisted independent hardware test run (GPT-6.1 Terra).

@oneandonlydean
oneandonlydean merged commit ea0913b into boykopovar:main Nov 4, 2026
12 checks passed
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 8bc11fa merged onto main 1c8c0ef · tested 2026-11-04 04:41 UTC · 42 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,773 passed · 9 failed (0 new, 8 also fail on main, 1 unstable on main) · 58 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,840 of 3,842 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (1009 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 s, ⚠️ public_headers 75.3 s, ⚠️ check_skips 49.7 s, ⚠️ agc_driver_image_sample_unnormalized 43.4 s, ⚠️ agc_shader_sampler_limits 37.6 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 8 of the last 10 main runs
Failing on main too (8, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (58, not in the main baseline's validation pass)
agc_driver_eqaa_color_target
public_headers
public_headers_compile_0
public_headers_compile_10
public_headers_compile_12
public_headers_compile_14
public_headers_compile_16
public_headers_compile_18
public_headers_compile_2
public_headers_compile_20
public_headers_compile_21
public_headers_compile_22
public_headers_compile_23
public_headers_compile_24
public_headers_compile_25
public_headers_compile_26
public_headers_compile_27
public_headers_compile_28
public_headers_compile_29
public_headers_compile_30
public_headers_compile_31
public_headers_compile_32
public_headers_compile_33
public_headers_compile_34
public_headers_compile_35
public_headers_compile_36
public_headers_compile_37
public_headers_compile_38
public_headers_compile_39
public_headers_compile_4
public_headers_compile_40
public_headers_compile_41
public_headers_compile_42
public_headers_compile_43
public_headers_compile_44
public_headers_compile_45
public_headers_compile_46
public_headers_compile_47
public_headers_compile_48
public_headers_compile_49
public_headers_compile_50
public_headers_compile_51
public_headers_compile_52
public_headers_compile_53
public_headers_compile_54
public_headers_compile_55
public_headers_compile_56
public_headers_compile_57
public_headers_compile_58
public_headers_compile_59
public_headers_compile_6
public_headers_compile_60
public_headers_compile_61
public_headers_compile_62
public_headers_compile_63
public_headers_compile_8
trace_digest_TraceDigestTests_test_cli_rejects_invalid_event_fields_without_partial_output
trace_digest_TraceDigestTests_test_cli_rejects_invalid_summary_records_without_partial_output
Validation IDs already present on main (8 IDs in 518 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (518 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 510 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (58)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
vid
Reproduce
git fetch origin 8bc11fae31b0ef03e768e14938cd5b6036f8d57b 1c8c0efc8c41314402e6966da5bef6ea3d639d10
git checkout 1c8c0efc8c41314402e6966da5bef6ea3d639d10 && git merge --no-ff 8bc11fae31b0ef03e768e14938cd5b6036f8d57b
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants