Repository navigation
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The GPU trace capacity change and all four changed files were reviewed at head 9b0be379eca36276da8cea403cc32ad387ac0fd8; the capacity is parsed and enforced consistently, and the new tests cover small and large limits.
What I ran
No build or test commands were run. I inspected the prepared diff and used the pinned repository reader for changed lines and targeted context.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | All changed files read |
| Build and tests | not run | Author reports Linux qualification; not independently verified |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and test results, including the author-reported Linux qualification, were not independently verified. Windows behavior was not verified. No files were excluded from the review; all four changed files listed in the manifest were read.
To get this to a good state
Nothing is required.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
|
I reproduced two Windows-specific problems in the new regression at head Machine: Windows 10.0.26200, NVIDIA GeForce RTX 5080, NVIDIA 621.14, Vulkan validation 1.4.363. I ran the same command on both trees with Both tests fail before the capacity assertion with There is a second Windows issue after reading those misplaced captures: both contain zero The loader inserted I did not verify the intended red/green capacity result because the Windows regression fixture does not reach it. |
9b0be37 to
0476b63
Compare
|
Fixed both issues in Refreshed matched qualification on main AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation uses the validated capacity parser and enforces the requested GPU range limit.
What I ran
Reviewed head 0476b63b8ae4bc58017c481306b2c1991d30f281 using the prepared diff and the pinned repo_read.py reader. No build or tests were run in this review.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Capacity and state ownership inspected |
| Build and tests | not run | Author-reported qualification was not independently run |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Windows execution, console behavior, and the author-reported Linux builds and GPU test runs were not independently verified. Read all four changed files listed in the manifest: PerformanceTrace.hpp, PerformanceTrace.cpp, GpuTraceCapacity.cpp, and agc_gpu_trace_capacity_tests.cmake. The bundle's files.json was unavailable; no excluded-file inventory was verified.
To get this to a good state
Nothing is required.
|
I reran the Windows arm at head Machine: Windows 10.0.26200, NVIDIA GeForce RTX 5080, NVIDIA 621.14, Vulkan validation 1.4.363. I used the same environment as my earlier run and: The two fixture problems I reported earlier are fixed. Both tests now write their trace into the test temp directory, and the driver-owned GPU insertion state is exercised. The resulting captures have the intended capacity behavior:
The validation layer was inserted for both runs; the combined log has 0 CTest is still red on Windows, though: both cases exit So the requested-capacity behavior now checks out on this Windows machine, but the Windows regression itself still does not pass because of the teardown abort. |
|
Thanks for the rerun. The teardown abort is the test's: it returned from Linux 7.2.14, RX 6650 XT, RADV, Release: AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
- Exact head:
83b67d71336339ec3d07337910cdcfbee4740c80, basemain. - Read the description, commits and manifest, and the changed hunks of all five changed files in
diff.patch. - Targeted reads at head with the repository reader:
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp 330 400
python3 repo_read.py search ParseCapacity
python3 repo_read.py search VulkanTestSkipped
python3 repo_read.py search "cmake/agc_"
python3 repo_read.py search GpuRangeCapacity
python3 repo_read.py search "262,144"- Nothing was built or compiled. No test was run in this pass.
- Approval is withheld: the hosted CI state for this head is not in the run folder, and
files.jsonwas not opened.
Results
| Check | Result | Note |
|---|---|---|
| Changed hunks (5 files) | passed | Read through diff.patch |
| Window-open path | passed | ParseCapacity runs only when a window opens |
| Test registration | passed | Fragment is picked up by the file(GLOB) in CMakeLists.txt |
| Doc consistency | failed | BUILD.md:324 still says 262,144 ranges |
| Build and test runs | not run | No build in this pass |
| Hosted CI | not run | No CI state in the run folder |
Findings
Blocking
None.
Non-blocking
docs/dev/BUILD.md:314— The new sentence says the GPU range buffer "uses the same count". The unchanged linedocs/dev/BUILD.md:324still says "The track keeps up to 262,144 ranges; more settrace_dropped", which is wrong for a windowed trace now. Changing that line to theAPS5_TRACE_EVENTScount would keep the two in step.core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp:378—gpuRanges.reserve(gpuCapacity)allocates when the window opens. The memory paragraph atdocs/dev/BUILD.md:314only counts the slice buffers. At4194304the reservation is that count timessizeof(TraceGpuRange); I did not check the struct size. The doc should mention the GPU range reservation.
Not verified
- Building
libSceAgcDriverand the newagc_gpu_trace_capacity_testsexecutable, on Linux or Windows. - The author's Linux results: the 11257 lost ranges, the five-case pass, the frozen 835-file banks and the symbol inspection. These are the author's report, not runs I performed.
- The Windows
_wputenv_sbranch and the DLL-owned GPU state. - The overlap scan and the note on #12828, #18029 and #13809.
- Hosted CI for head
83b67d7. - Full text: none of the five changed files was read in full from
files/. The review covers their diff hunks and the targeted head reads above.files.jsonwas not opened. - Cost:
GpuRangemoved from the header into the.cpp, so each call is now out of line. No measurement was made.
To get this to a good state
Nothing is required.
Optional: update docs/dev/BUILD.md:324 to the APS5_TRACE_EVENTS count, and add the GPU range reservation to the memory note at docs/dev/BUILD.md:314.
|
Thanks. Both doc points are in
The test teardown change for the Windows abort ( AI-assisted: yes |
|
Ran the trace capacity tests with the Khronos validation layer on Linux and an NVIDIA GPU; the runs so far are RADV and Windows. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
No new AI-assisted: yes (Claude Code) |
2ee9464 to
b8f38e1
Compare
|
Current-main refresh (2026-11-19): head AI-assisted: yes |
|
Windows rerun of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, AMD Radeon RX 6700 XT (driver 32.0.21045.29003), Result on the head as is (merged onto Cause: under gdb with std::ifstream summaryFile(directory / "aps5-summary.jsonl");
...
std::filesystem::remove_all(directory); // summaryFile is still open here
Fix, checked here: closing the stream before the cleanup: summaryFile.close();
std::filesystem::remove_all(directory);With only that line added (test-only, private build), both tests pass in 3 of 3 runs, none skipped, and the captures are as intended:
A non-throwing AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the inspected implementation and tests support merging.
What I ran
Reviewed head b8f38e1c0c031c7e401464003cda724f5b394b37. I read the prepared description, commits, manifest, diff, and all five changed files. I did not run commands or tests; the build and test outcomes in the PR description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Capacity is parsed and enforced at window open. |
| Tests and builds | not run | Reported results were not independently verified. |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests or builds were run. Windows, native-title behavior, and the attached qualification evidence were not independently verified. All five changed files listed in the manifest were read; files.json was not available through the reader. No changed files were excluded by the manifest.
To get this to a good state
Nothing is required.
|
@JJenkx Your Windows rerun has isolated the remaining red to the test cleanup, after the capacity checks pass: |
malekaifa
left a comment
There was a problem hiding this comment.
@JJenkx The production capacity change still looks sound, but current head b8f38e1c0c031c7e401464003cda724f5b394b37 has a confirmed Windows regression in its new test cleanup. Your Nov. 20 rerun showed both capacity assertions complete successfully, then std::filesystem::remove_all(directory) throws because summaryFile still has aps5-summary.jsonl open; adding summaryFile.close() before cleanup makes both cases pass 3/3. Please fold that test-only close into the branch and rerun the Windows capacity cases. No production behavior change is requested. AI-assisted: yes
|
Pushed
AI-assisted: yes |
malekaifa
left a comment
There was a problem hiding this comment.
Verified the requested Windows test-cleanup correction on exact head 1d123d90681cdd231125ab193fc0ee219b5026da. It is a one-commit fast-forward from reviewed b8f38e1c0c and changes only GpuTraceCapacity.cpp by closing summaryFile before the final std::filesystem::remove_all(directory). That is exactly the requested fix for the confirmed Windows open-file teardown failure; production GPU-capacity behavior is unchanged. The earlier Windows reproduction reported both capacity cases passing 3/3 with this close in place. No remaining code blocker from my review. AI-assisted: yes
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the requested GPU trace capacity is enforced and a regression test covers small and large limits.
What I ran
Reviewed head 1d123d90681cdd231125ab193fc0ee219b5026da using the prepared diff and pinned reader. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | All five changed files read |
| Tests | not run | Author-reported results only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests and runtime behavior were not independently executed. The author reports Linux AMD validation; Windows confirmation remains pending. Read all five files marked reviewed; no files were excluded.
To get this to a good state
Nothing is required.
|
@JJenkx Exact-head review is clear, but GitHub now reports |
1d123d9 to
3972ceb
Compare
|
Rebased and pushed
AI-assisted: yes |
|
Windows check of head Setup: Windows 11 Enterprise 22621, AMD Ryzen 9 5950X, AMD Radeon RX 6700 XT (driver 32.0.21045.29003), WinLibs GCC 15.2 UCRT r7, Ninja, Release,
Per case, in every run of both arms:
The teardown failure from my Nov 20 report is gone: the tests no longer abort while removing their trace directory. AI-assisted: yes. |
malekaifa
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 3972ceb8ad3abf229e6cf9fe7c9bccf868147464 after the current-main refresh. The conflict was limited to PerformanceTrace.hpp; the refreshed diff preserves main's newer header content plus the previously reviewed out-of-line GpuRange, explicit GPU capacity/state storage, and requested APS5_TRACE_EVENTS enforcement. The test still closes summaryFile before Windows cleanup. No new production behavior was introduced by the rebase, and GitHub reports the PR mergeable again. No remaining code blocker from my review. AI-assisted: yes
|
@MarcZX10 Current exact head |
What
Honor
APS5_TRACE_EVENTSfor GPU ranges using the same validated capacity parser as CPU trace buffers. Previously the GPU vector always reserved 262144 entries and used its allocation capacity as the limit, so increasing the setting still lost GPU events and reducing it was ignored. Store and enforce the requested logical limit when the capture window opens.A Kao diagnostic motivated this change: requesting 4194304 events still lost 11257 GPU timeline ranges. This fixes capture configuration; it makes no FPS or title-unblock claim.
The Windows regression now sets its trace directory with
_wputenv_s, matching the runtime’s wide environment reader.GpuRange()and its private GPU state definitions reside in the driver translation unit, so the test EXE inserts into the same DLL-owned capture state asPresent(). This addresses both reported fixture failures.Tested
Source-only refresh 2026-11-23: head
3972ceb8ad3abf229e6cf9fe7c9bccf868147464rebased onto mainb8b8f49250f3054cb450636839b4d8c9a905f7d1as two linear commits, with no merge commits. Both patches are unchanged bygit range-diff; newer upstream header declarations andsummaryFile.close()are preserved. Diff/conventions checks pass. Windows (2026-11-23, verified on this exact head): RX 6700 XT, Khronos validation 1.4.309.agc_gpu_trace_capacity_smalland_largepass 3/3 with the validation layer inserted in every run, 0VUID-, nothing skipped;agc_performance_tracepasses 3/3. The control (mainb8b8f49250plus only this PR's test files) fails both capacity cases 3/3 withthe runtime GPU trace ignored the requested capacity. Windows result. The Linux qualification below retains its original pins.Current-main refresh (2026-11-19): head
b8f38e1c0c031c7e401464003cda724f5b394b37is one linear commit on mainaa698cdc084344c180836f3bc6fee58a4051384b. Resolved the documentation conflict while preserving main’s newer trace-digest loss explanation. Production and fixture added/removed lines are unchanged from the previous head. Same five registrations and fixture sources on both sides: the fixed-capacity control passes the CPU trace and two depth rendering tests, failing only the two capacity witnesses; the change passes all five. Control requested 1/submitted 2 retains 2, and requested 262145 retains 262144. The change retains exactly 1 with 1 lost range and all 262145 without loss. The control includes the shared SDK-owned state seam while retaining the fixed capacity, so it is main plus test instrumentation. Both arms have four calibrated-device/rendering cases with validation-layer insertion and AMD selection, zero skips or VUIDs. The two capacity cases inject synthetic ranges; the two depth cases execute rendering. Full SDK/relinker builds pass, frozen banks stay unchanged and builder source/configuration are restored. No new native-title, FPS, Windows or NVIDIA execution claim; earlier external evidence retains its original pins. Build logs, verbose CTest/JUnit, exact patches, symbol ownership and bank manifests, SHA-256d1786f7d565ef2c398d0bf834067b85f5efbac31c80214360dd641b22d990aff(download and all payload hashes verified).Historical qualification below retains its own source pins.
Refreshed on main
324dc5aae57113ce9ed9fa707eb2ef0814eb76dc; change0476b63b8ae4bc58017c481306b2c1991d30f281. Same Linux AMD Radeon RX 6650 XT, RADV/Mesa 26.2.7, validation 1.4.363 (headers 335), required Vulkan and no shader cache:1870731ecd2d79785096a7c31db5445db8410cd9includes identical fixtures and the state-ownership bridge, retaining main’s original capacity behavior. CPU trace and two depth GPU cases pass. Both capacity cases fail as expected: requested 1/submitted 2 retains 2; requested/submitted 262145 retains 262144. This is main plus instrumentation, not an unmodified-main executable.GpuRange()and defines none of its GPU capture state; insertion and storage are defined by the driver.3972ceb8adin the 2026-11-23 result above.Full refreshed qualification evidence, SHA-256
17de82ad5456431db72d1f480e3fe1f2939e915c9480e48c0dcfd17eeac55190. All 42 members verified after download, including source/control patches, build logs, verbose CTest/JUnit, symbol inspection, frozen-bank manifests and overlap review. Earlier Linux evidence remains in the PR history.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)