test(agc): support draw profiling in the graphics fixture #11566
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11566"
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 B-Howell on 2026-10-26T20:31:19Z.
What
Extend the mocked Vulkan timestamp-query lifecycle in the AGC graphics test fixture and register
agc_graphics_profile_drawso the fixture exercises draw profiling.Tested
Current-main integration verification: merge commit
c6cbfa693601609cb2209fda8b1b5b1fc65c56d4(tree5e019e0213794591df8d0e2869aaf7dfd5087796) preserves published ancestry and merges frozenorigin/mainfdd1753204a4732e1011539cc9d3bb69f70b27a6. The contribution against that main remains only the two test-related files, with 45 additions and 2 deletions. Candidate and baseline production source both use that exact main commit and recursive submodule pins. For a fair paired fixture check, the baseline received a byte-identical test-only overlay of the same two files (SHA-256 values recorded); this does not create a production-code difference or a negative-control result.Both focused Release builds passed with WinLibs GCC 15.2.0, the same Release/testing options and FFmpeg dependency pin. The baseline and candidate each built
agc_driver_graphics_testsandagc_driver_recorder_testswith parallelism 2; no install-rule skip was used.agc_driver_graphicspasses 1/1 (8.712s) andagc_graphics_profile_drawpasses 1/1 (8.781s). These run the enlarged graphics fixture with mocked Vulkan, respectively without and withAPS5_PROFILE_DRAW=1; they exercise query-pool lifecycle and profiling plumbing.agc_driver_graphicspasses 1/1 (9.496s) andagc_graphics_profile_drawpasses 1/1 (9.401s). This is a paired fixture compatibility check on main production source with the test-only overlay, not evidence that unmodified main registers the profile test.agc_gpu_timing_completeandagc_gpu_timing_incomplete. All six invocations ran serially under one exclusive GPU-lock acquisition; no test was skipped, and every individual test ran under 30 seconds.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,APS5_NO_PIPELINE_JOURNAL=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the same pinned local validation-layer package and verbose CTest. Each real recorder arm shows two Khronos instance insertions and two device insertions; neither log has aVUID-message or the requested-layer-missing diagnostic.VK_INSTANCE_LAYERSadds Khronos validation and two informational lookups where the installed AMD implicit layer lacksvkGetDeviceProcAddr. Mock fixture runs are not used as evidence of real Vulkan layer insertion.Historical published-head b1d/319621 qualification (retained verbatim):
Current-main integration verification: commit
b1d83958a3e225477f61fc2ac812a6eb71923398(verified source treebdfba15fe64927bf7c3ea8c35a062c166f9f8509), preserving published ancestry and merging pinned main319621ba2e578bd053b0baba2877fe70520e0737. Both focused Release builds passed with WinLibs GCC 15.2.0, using the same compiler, Release/testing options and FFmpeg dependency pin. The contribution against that main remains only the two test-related files, with 45 additions and 2 deletions.agc_driver_graphicsandagc_graphics_profile_draweach pass 1/1. These run the full enlarged graphics fixture with mocked Vulkan, respectively without and withAPS5_PROFILE_DRAW=1; they verify mock query lifecycle and profiling plumbing. Separately, real-deviceagc_gpu_timing_completeandagc_gpu_timing_incompletepass 2/2.agc_driver_graphicspasses 1/1, and the two real-device recorder timing checks pass 2/2. Running main's default graphics fixture withAPS5_PROFILE_DRAW=1fails with the exact control diagnosticAGC graphics: missing Vulkan function: vkCreateQueryPool(CTest exit 8). Main has noagc_graphics_profile_drawregistration; the control selectsagc_driver_graphicsexplicitly.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,APS5_NO_PIPELINE_JOURNAL=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the same local validation-layer package and verbose CTest. Each real recorder arm proves two actual Khronos instance insertions and two device insertions, with zeroVUID-messages, no missing requested validation layer and zero skips. The mock fixture runs do not establish actual validation-layer insertion. Both recorder arms retain the same four environment-layer warnings and two implicit AMD-layervkGetDeviceProcAddrlookup diagnostics.Earlier published-head evidence (historical pins and qualifications retained):
Windows 11 Pro 10.0.26300; MSYS2 UCRT64 GCC; NVIDIA GeForce RTX 4080 SUPER, driver 617.42. The retained baseline receipt is
b9c30ee505; its build and both GPU timing tests passed. Final candidate1e38ada86fis based on mainda1d222d52. The only intervening AGC-file change is PCH wiring for execution-test targets, outside these focused graphics/recorder targets, so the baseline was not rebuilt. Baselineagc_driver_graphicspassed; withAPS5_PROFILE_DRAW=1, it failed as expected on missing mockvkCreateQueryPool. On the candidate,agc_graphics_profile_draw,agc_driver_graphics,agc_gpu_timing_complete, andagc_gpu_timing_incompletepassed. The Vulkan validation layer loaded fromVkLayer_khronos_validation.dll; validation reported 0 VUIDs and no requested-layer-missing warning. Builds used CMake'sCMAKE_SKIP_INSTALL_RULES=ONto skip unused install/export generation without changing compile, runtime, ABI, or unwind settings. Mock timestamps verify query lifecycle and profiling plumbing only; they are not real GPU performance evidence.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)2026-10-31 test-registration split follow-through
Candidate
9d7892e7f91aca9a29790f401bd7638e77e9d01f(tree27573dbc13fa89a250bee1c2690baa9d753e7a1a) is an ordinary merge of publishedc6cbfa693601609cb2209fda8b1b5b1fc65c56d4with frozen main613f9b8edf056318b14ff96fe3aceda59a419323, which contains the landed #12862 registration split. The only resolution moves this PR's profile-test registration and properties intotests/cmake/agc_driver_graphics_tests.cmake; the mock timestamp source is retained. Against that main, the contribution remains two test-related files, 45 additions and 2 deletions. This is a frozen-main qualification, not a claim that the remote tip cannot advance.Windows Release/Ninja with WinLibs GCC 15.2.0 r7: both focused graphics-target builds passed, with at most two compiler jobs. The same cache/options, recursive dependency pins and existing FFmpeg package at pin
9ac4cfd195f1were used for both arms. Generated CTest metadata preserves all 3,200 baseline registrations and adds exactly oneagc_graphics_profile_draw, including its profiling/no-shader-cache environment, skip code 77, 60-second timeout, source working directory and Windows runtime-library path.agc_driver_graphicspassed 1/1 (14.31s). WithAPS5_PROFILE_DRAW=1, that same registered test failed with the specific control diagnosticAGC graphics: missing Vulkan function: vkCreateQueryPool(CTest exit 8, 0.94s). Main does not register the new profile test.agc_driver_graphicspassed 1/1 (13.69s), andagc_graphics_profile_drawpassed 1/1 (14.13s). All four executions were serial, with no skips; these are mocked Vulkan fixture checks, not real-device timing or performance measurements.The preceding real-recorder/GPU results remain historical at their stated source/binary pins, including
c6cbfaversusfdd175; they are not retargeted to this candidate. No new GPU, title, Linux, full-suite, hosted-CI or upstream-landing result is claimed. Compiler warnings are retained, not described as resolved. The initial configure's FFmpeg certificate-download failure was retained; configuration used the repository-supported existing same-pin package instead of disabling TLS verification. No source workaround or dependency change was made.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T22:26:14Z.
Review: APPROVED
Reviewed exact head
1e38ada86ffa741c36f817c1c92102875fb66f22; no actionable findings. The mock query-pool implementation bounds-checks reset/read indices, returnsVK_NOT_READYuntil all requested timestamp queries are populated, and writes 64-bit results using the requested stride. The new test registration opts into profiling and disables the shader cache; the report correctly distinguishes mocked lifecycle coverage from real GPU performance evidence. The author reports the focused Windows GPU and validation-layer runs passed with no VUIDs; hosted eligibility, conventions, intake, labels and relinker checks pass, while unrelated product jobs are skipped. I did not rerun the Windows GPU test locally.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T21:27:45Z.
Review: APPROVED
Re-checked — new head, looks good
I reviewed head
9d7892e7f91aca9a29790f401bd7638e77e9d01fagainst base613f9b8edf056318b14ff96fe3aceda59a419323; the diff remains limited to the graphics fixture and its CMake test registration, and I confirmed the fragment is included by the directory'sCONFIGURE_DEPENDSglob. Localgit diff --checkandpython3 tools/check_conventions.py --base 613f9b8edf056318b14ff96fe3aceda59a419323passed. Hosted Windows, eligibility, conventions, library portability, labels, and report checks pass; Linux and specialized jobs are skipped. The author reports the exact-head focused Release fixture and GPU recorder tests passed; I did not independently rerun them. I did not build or run CTest locally. I found no blocking issue and approve this head.