fix(agc): name the V# fields when a vertex fetch exceeds its descriptor record count #9604

Merged
ebarr24 merged 1 commit from upstream-pr/9604 into main 2026-11-14 11:37:29 +00:00
ebarr24 commented 2026-10-22 04:04:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ebarr24 on 2026-10-22T04:04:25Z.


What

A vertex fetch past NUM_RECORDS threw only 'vertex fetch exceeds descriptor record count', which does not say which V# fields decided the RDNA 2 range check. The message now appends OOB_SELECT, stride, NUM_RECORDS and whether the index is the vertex or the instance index, with the index. The behaviour is unchanged; it is still a throw. Kena PPSA01746 stops on this in the bring-up of #4073, and the values show what the next step must implement.

Tested

Windows 11, MinGW-w64 GCC 15.2, Release build with tests. agc_driver_graphics passes with this change; the new test fails on main.

Validation layer (vulkan-sdk-1.4.363.0), on main 11f976b27c and on this change, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_ADD_LAYER_PATH set to the layer, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1: ctest -V -R "agc_driver_graphics". Neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS; the change adds no VUID- errors (0 with the change, 0 on main).

ctest -V log, main
--timeout 120
UpdateCTestConfiguration  from :C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/DartConfiguration.tcl
Test project C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 495
    Start 495: agc_driver_graphics

495: Test command: C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild\tests\agc_driver_graphics_tests.exe
495: Working Directory: C:/Users/ebarr/ps5-emulation/work/s1
495: Environment variables: 
495:  ANYPS5_NO_SHADER_CACHE=1
495:  APS5_NO_PIPELINE_JOURNAL=1
495: Environment variable modifications: 
495:  PATH=path_list_prepend:C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/core/libs/libs/unpatched
495: Test timeout computed to be: 120
495: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
495: [src\HostCpu.cpp:193 operator()] host CPU AMD Ryzen 7 3700X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
495: [gpu] always-pass depth/stencil state is rendered without a depth target (DB_DEPTH_CONTROL=0x007007b3)
495: [gpu] viewport depth clamp bounds [-1, 2] on a float depth target are clipped to [0, 1]: the device has no VK_EXT_depth_range_unrestricted
495: [gpu] layer/viewport index vertex exports are ignored (PA_CL_VS_OUT_CNTL=0x01240000)
495: [gpu] DCC keys of mipmapped color targets are ignored
495: [gpu] no 2x2 sample location grid at sample count 2 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (the device lacks sampleRateShading)
495: [gpu] no 2x2 sample location grid at sample count 1 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (its pixels hold different locations)
495: [gpu] no 2x2 sample location grid at sample count 2 on this device: pixel (0,0)'s sample locations stand in for every pixel, and each pixel's samples are put in the guest's order at the bounds of its render passes
495: content-key count=0 data=0 movable=0 words=70 capacity=70 hash=12276112778106431680
495: content-key count=0 data=0 movable=1 words=70 capacity=70 hash=16547703523611771548
495: content-key count=0 data=1 movable=0 words=327 capacity=327 hash=18195637788575597601
495: content-key count=0 data=1 movable=1 words=70 capacity=70 hash=6884676608767608045
495: content-key count=1 data=0 movable=0 words=89 capacity=89 hash=3582826753038562111
495: content-key count=1 data=0 movable=1 words=89 capacity=89 hash=9518511843953525419
495: content-key count=1 data=1 movable=0 words=346 capacity=346 hash=3684355951081846730
495: content-key count=1 data=1 movable=1 words=89 capacity=89 hash=8486460719680651956
495: content-key count=31 data=0 movable=0 words=389 capacity=389 hash=2872353339945041207
495: content-key count=31 data=0 movable=1 words=389 capacity=389 hash=11292844791518677155
495: content-key count=31 data=1 movable=0 words=646 capacity=646 hash=16275665856175105250
495: content-key count=31 data=1 movable=1 words=389 capacity=389 hash=4084850990441387724
495: content-key count=32 data=0 movable=0 words=399 capacity=399 hash=9001008430028590267
495: content-key count=32 data=0 movable=1 words=399 capacity=399 hash=5471292191449946447
495: content-key count=32 data=1 movable=0 words=656 capacity=656 hash=9565516749443825062
495: content-key count=32 data=1 movable=1 words=399 capacity=399 hash=15118118974702537264
495: content-key count=33 data=0 movable=0 words=418 capacity=418 hash=10382587997612106155
495: content-key count=33 data=0 movable=1 words=418 capacity=418 hash=11706275810969384511
495: content-key count=33 data=1 movable=0 words=675 capacity=675 hash=1776364597915029880
495: content-key count=33 data=1 movable=1 words=418 capacity=418 hash=13690582611633829486
495: content-key count=16384 data=0 movable=0 words=168518 capacity=168518 hash=15297671208421994211
495: content-key count=16384 data=0 movable=1 words=168518 capacity=168518 hash=8322610684387165047
495: content-key count=16384 data=1 movable=0 words=168775 capacity=168775 hash=13444188082477402620
495: content-key count=16384 data=1 movable=1 words=168518 capacity=168518 hash=6566449801145079954
495: Unused stencil reference sample equivalence passed: 22 accepted states, 12 dependent countermodels
495: All 256 MSAA CMASK byte classifications passed
495: AGC graphics: unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count
1/1 Test #495: agc_driver_graphics ..............***Failed    2.20 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   2.34 sec

The following tests FAILED:
	495 - agc_driver_graphics (Failed)
Errors while running CTest
Output from these tests are in: C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
ctest -V log, this change
--test-dir C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild -R agc_driver_graphics -V --timeout 120
UpdateCTestConfiguration  from :C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/DartConfiguration.tcl
Test project C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 495
    Start 495: agc_driver_graphics

495: Test command: C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild\tests\agc_driver_graphics_tests.exe
495: Working Directory: C:/Users/ebarr/ps5-emulation/work/s1
495: Environment variables: 
495:  ANYPS5_NO_SHADER_CACHE=1
495:  APS5_NO_PIPELINE_JOURNAL=1
495: Environment variable modifications: 
495:  PATH=path_list_prepend:C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/core/libs/libs/unpatched
495: Test timeout computed to be: 120
495: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
495: [src\HostCpu.cpp:193 operator()] host CPU AMD Ryzen 7 3700X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
495: [gpu] always-pass depth/stencil state is rendered without a depth target (DB_DEPTH_CONTROL=0x007007b3)
495: [gpu] viewport depth clamp bounds [-1, 2] on a float depth target are clipped to [0, 1]: the device has no VK_EXT_depth_range_unrestricted
495: [gpu] layer/viewport index vertex exports are ignored (PA_CL_VS_OUT_CNTL=0x01240000)
495: [gpu] DCC keys of mipmapped color targets are ignored
495: [gpu] no 2x2 sample location grid at sample count 2 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (the device lacks sampleRateShading)
495: [gpu] no 2x2 sample location grid at sample count 1 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (its pixels hold different locations)
495: [gpu] no 2x2 sample location grid at sample count 2 on this device: pixel (0,0)'s sample locations stand in for every pixel, and each pixel's samples are put in the guest's order at the bounds of its render passes
495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget: 0 MiB live of 0 MiB (APS5_HOST_IMPORT_MIB); 1 imports (0 MiB) refused so far, 0 of them remembered, last 0x1ded0270000+0x30000 by build
495: [gpu] host import of 0x1decfaa0000+0x10000 failed at vkAllocateMemory (-1000072003); falling back to copies, requested by map
495: [gpu] host import of 0x1decfaa0000+0x10000 failed at vkAllocateMemory (-1000072003); falling back to copies, requested by map
495: [gpu] host import of 0x1decf200000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dedf800000+0x800000 failed at vkAllocateMemory (-2); falling back to copies, requested by build
495: [gpu] host import of 0x1dedf410000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dedf470000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import of 0x1dedf490000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget lowered to the 0.1 MiB live after vkAllocateMemory failed 3 times in a row
495: [gpu] host import of 0x1dedf410000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget lowered to the 0.1 MiB live after vkAllocateMemory failed within an eighth of the budget
495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 4 MiB APS5_HOST_IMPORT_MIB sets; the setting stays, as the report never lowers it
495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; the default stays until an import's vkAllocateMemory fails
495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; imports are held to it since an import's vkAllocateMemory failed
495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; the default stays until an import's vkAllocateMemory fails
495: [gpu] host import of 0x1dedf3f0000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access
495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; imports are held to it since an import's vkAllocateMemory failed
495: [gpu] texture 0x700f7fcb00 (format 74) has single DCC keys at 0x700f7fc940; its texels are read as stored
495: [gpu] texture 0x700f7fcb00 (format 56) has mixed DCC keys at 0x700f7fc940; its texels are read as stored
495: [gpu] texture streaming feedback (LOD warning / mip statistics) is not reported
495: [gpu] texture DCC color transform is ignored (word6=0x01980000 word7=0x00000000)
495: content-key count=0 data=0 movable=0 words=70 capacity=70 hash=12276112778106431680
495: content-key count=0 data=0 movable=1 words=70 capacity=70 hash=16547703523611771548
495: content-key count=0 data=1 movable=0 words=327 capacity=327 hash=18195637788575597601
495: content-key count=0 data=1 movable=1 words=70 capacity=70 hash=6884676608767608045
495: content-key count=1 data=0 movable=0 words=89 capacity=89 hash=3582826753038562111
495: content-key count=1 data=0 movable=1 words=89 capacity=89 hash=9518511843953525419
495: content-key count=1 data=1 movable=0 words=346 capacity=346 hash=3684355951081846730
495: content-key count=1 data=1 movable=1 words=89 capacity=89 hash=8486460719680651956
495: content-key count=31 data=0 movable=0 words=389 capacity=389 hash=2872353339945041207
495: content-key count=31 data=0 movable=1 words=389 capacity=389 hash=11292844791518677155
495: content-key count=31 data=1 movable=0 words=646 capacity=646 hash=16275665856175105250
495: content-key count=31 data=1 movable=1 words=389 capacity=389 hash=4084850990441387724
495: content-key count=32 data=0 movable=0 words=399 capacity=399 hash=9001008430028590267
495: content-key count=32 data=0 movable=1 words=399 capacity=399 hash=5471292191449946447
495: content-key count=32 data=1 movable=0 words=656 capacity=656 hash=9565516749443825062
495: content-key count=32 data=1 movable=1 words=399 capacity=399 hash=15118118974702537264
495: content-key count=33 data=0 movable=0 words=418 capacity=418 hash=10382587997612106155
495: content-key count=33 data=0 movable=1 words=418 capacity=418 hash=11706275810969384511
495: content-key count=33 data=1 movable=0 words=675 capacity=675 hash=1776364597915029880
495: content-key count=33 data=1 movable=1 words=418 capacity=418 hash=13690582611633829486
495: content-key count=16384 data=0 movable=0 words=168518 capacity=168518 hash=15297671208421994211
495: content-key count=16384 data=0 movable=1 words=168518 capacity=168518 hash=8322610684387165047
495: content-key count=16384 data=1 movable=0 words=168775 capacity=168775 hash=13444188082477402620
495: content-key count=16384 data=1 movable=1 words=168518 capacity=168518 hash=6566449801145079954
495: Unused stencil reference sample equivalence passed: 22 accepted states, 12 dependent countermodels
495: All 256 MSAA CMASK byte classifications passed
495: Graphics validation tests passed
1/1 Test #495: agc_driver_graphics ..............   Passed   12.88 sec

The following tests passed:
	agc_driver_graphics

100% tests passed out of 1

Total Test time (real) =  13.03 sec

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA01746 #4073
  • GPUs tested: NVIDIA GeForce RTX 3080, driver 32.0.16.1692; Microsoft Windows 11 Pro; Khronos validation layer on main and this change, no new VUIDs
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4961919655 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604). Originally posted by [ebarr24](https://github.com/ebarr24) on 2026-10-22T04:04:25Z. --- ### What A vertex fetch past NUM_RECORDS threw only 'vertex fetch exceeds descriptor record count', which does not say which V# fields decided the RDNA 2 range check. The message now appends OOB_SELECT, stride, NUM_RECORDS and whether the index is the vertex or the instance index, with the index. The behaviour is unchanged; it is still a throw. Kena PPSA01746 stops on this in the bring-up of #4073, and the values show what the next step must implement. ### Tested Windows 11, MinGW-w64 GCC 15.2, Release build with tests. `agc_driver_graphics` passes with this change; the new test fails on `main`. Validation layer (vulkan-sdk-1.4.363.0), on `main` 11f976b27c and on this change, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `VK_ADD_LAYER_PATH` set to the layer, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`: `ctest -V -R "agc_driver_graphics"`. Neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`; the change adds no `VUID-` errors (0 with the change, 0 on `main`). <details><summary>ctest -V log, main</summary> ``` --timeout 120 UpdateCTestConfiguration from :C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/DartConfiguration.tcl Test project C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 495 Start 495: agc_driver_graphics 495: Test command: C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild\tests\agc_driver_graphics_tests.exe 495: Working Directory: C:/Users/ebarr/ps5-emulation/work/s1 495: Environment variables: 495: ANYPS5_NO_SHADER_CACHE=1 495: APS5_NO_PIPELINE_JOURNAL=1 495: Environment variable modifications: 495: PATH=path_list_prepend:C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/core/libs/libs/unpatched 495: Test timeout computed to be: 120 495: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) 495: [src\HostCpu.cpp:193 operator()] host CPU AMD Ryzen 7 3700X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none 495: [gpu] always-pass depth/stencil state is rendered without a depth target (DB_DEPTH_CONTROL=0x007007b3) 495: [gpu] viewport depth clamp bounds [-1, 2] on a float depth target are clipped to [0, 1]: the device has no VK_EXT_depth_range_unrestricted 495: [gpu] layer/viewport index vertex exports are ignored (PA_CL_VS_OUT_CNTL=0x01240000) 495: [gpu] DCC keys of mipmapped color targets are ignored 495: [gpu] no 2x2 sample location grid at sample count 2 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (the device lacks sampleRateShading) 495: [gpu] no 2x2 sample location grid at sample count 1 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (its pixels hold different locations) 495: [gpu] no 2x2 sample location grid at sample count 2 on this device: pixel (0,0)'s sample locations stand in for every pixel, and each pixel's samples are put in the guest's order at the bounds of its render passes 495: content-key count=0 data=0 movable=0 words=70 capacity=70 hash=12276112778106431680 495: content-key count=0 data=0 movable=1 words=70 capacity=70 hash=16547703523611771548 495: content-key count=0 data=1 movable=0 words=327 capacity=327 hash=18195637788575597601 495: content-key count=0 data=1 movable=1 words=70 capacity=70 hash=6884676608767608045 495: content-key count=1 data=0 movable=0 words=89 capacity=89 hash=3582826753038562111 495: content-key count=1 data=0 movable=1 words=89 capacity=89 hash=9518511843953525419 495: content-key count=1 data=1 movable=0 words=346 capacity=346 hash=3684355951081846730 495: content-key count=1 data=1 movable=1 words=89 capacity=89 hash=8486460719680651956 495: content-key count=31 data=0 movable=0 words=389 capacity=389 hash=2872353339945041207 495: content-key count=31 data=0 movable=1 words=389 capacity=389 hash=11292844791518677155 495: content-key count=31 data=1 movable=0 words=646 capacity=646 hash=16275665856175105250 495: content-key count=31 data=1 movable=1 words=389 capacity=389 hash=4084850990441387724 495: content-key count=32 data=0 movable=0 words=399 capacity=399 hash=9001008430028590267 495: content-key count=32 data=0 movable=1 words=399 capacity=399 hash=5471292191449946447 495: content-key count=32 data=1 movable=0 words=656 capacity=656 hash=9565516749443825062 495: content-key count=32 data=1 movable=1 words=399 capacity=399 hash=15118118974702537264 495: content-key count=33 data=0 movable=0 words=418 capacity=418 hash=10382587997612106155 495: content-key count=33 data=0 movable=1 words=418 capacity=418 hash=11706275810969384511 495: content-key count=33 data=1 movable=0 words=675 capacity=675 hash=1776364597915029880 495: content-key count=33 data=1 movable=1 words=418 capacity=418 hash=13690582611633829486 495: content-key count=16384 data=0 movable=0 words=168518 capacity=168518 hash=15297671208421994211 495: content-key count=16384 data=0 movable=1 words=168518 capacity=168518 hash=8322610684387165047 495: content-key count=16384 data=1 movable=0 words=168775 capacity=168775 hash=13444188082477402620 495: content-key count=16384 data=1 movable=1 words=168518 capacity=168518 hash=6566449801145079954 495: Unused stencil reference sample equivalence passed: 22 accepted states, 12 dependent countermodels 495: All 256 MSAA CMASK byte classifications passed 495: AGC graphics: unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count 1/1 Test #495: agc_driver_graphics ..............***Failed 2.20 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 2.34 sec The following tests FAILED: 495 - agc_driver_graphics (Failed) Errors while running CTest Output from these tests are in: C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. ``` </details> <details><summary>ctest -V log, this change</summary> ``` --test-dir C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild -R agc_driver_graphics -V --timeout 120 UpdateCTestConfiguration from :C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/DartConfiguration.tcl Test project C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 495 Start 495: agc_driver_graphics 495: Test command: C:\Users\ebarr\ps5-emulation\work\s1\.wsbuild\tests\agc_driver_graphics_tests.exe 495: Working Directory: C:/Users/ebarr/ps5-emulation/work/s1 495: Environment variables: 495: ANYPS5_NO_SHADER_CACHE=1 495: APS5_NO_PIPELINE_JOURNAL=1 495: Environment variable modifications: 495: PATH=path_list_prepend:C:/Users/ebarr/ps5-emulation/work/s1/.wsbuild/core/libs/libs/unpatched 495: Test timeout computed to be: 120 495: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) 495: [src\HostCpu.cpp:193 operator()] host CPU AMD Ryzen 7 3700X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none 495: [gpu] always-pass depth/stencil state is rendered without a depth target (DB_DEPTH_CONTROL=0x007007b3) 495: [gpu] viewport depth clamp bounds [-1, 2] on a float depth target are clipped to [0, 1]: the device has no VK_EXT_depth_range_unrestricted 495: [gpu] layer/viewport index vertex exports are ignored (PA_CL_VS_OUT_CNTL=0x01240000) 495: [gpu] DCC keys of mipmapped color targets are ignored 495: [gpu] no 2x2 sample location grid at sample count 2 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (the device lacks sampleRateShading) 495: [gpu] no 2x2 sample location grid at sample count 1 on this device: sample locations varying between pixels take pixel (0,0)'s in every pixel (its pixels hold different locations) 495: [gpu] no 2x2 sample location grid at sample count 2 on this device: pixel (0,0)'s sample locations stand in for every pixel, and each pixel's samples are put in the guest's order at the bounds of its render passes 495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dece4e0000+0x20000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget: 0 MiB live of 0 MiB (APS5_HOST_IMPORT_MIB); 1 imports (0 MiB) refused so far, 0 of them remembered, last 0x1ded0270000+0x30000 by build 495: [gpu] host import of 0x1decfaa0000+0x10000 failed at vkAllocateMemory (-1000072003); falling back to copies, requested by map 495: [gpu] host import of 0x1decfaa0000+0x10000 failed at vkAllocateMemory (-1000072003); falling back to copies, requested by map 495: [gpu] host import of 0x1decf200000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dedf800000+0x800000 failed at vkAllocateMemory (-2); falling back to copies, requested by build 495: [gpu] host import of 0x1dedf410000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dedf470000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import of 0x1dedf490000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget lowered to the 0.1 MiB live after vkAllocateMemory failed 3 times in a row 495: [gpu] host import of 0x1dedf410000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget lowered to the 0.1 MiB live after vkAllocateMemory failed within an eighth of the budget 495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 4 MiB APS5_HOST_IMPORT_MIB sets; the setting stays, as the report never lowers it 495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; the default stays until an import's vkAllocateMemory fails 495: [gpu] host import of 0x1dedf450000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; imports are held to it since an import's vkAllocateMemory failed 495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; the default stays until an import's vkAllocateMemory fails 495: [gpu] host import of 0x1dedf3f0000+0x10000 failed at vkAllocateMemory (-2); falling back to copies, requested by access 495: [gpu] host import budget: host heap 1 reports a VK_EXT_memory_budget budget of 8 MiB and a usage of 8 MiB with 0 MiB of imports live, which leaves imports 0 MiB of the 8192 MiB of the default; imports are held to it since an import's vkAllocateMemory failed 495: [gpu] texture 0x700f7fcb00 (format 74) has single DCC keys at 0x700f7fc940; its texels are read as stored 495: [gpu] texture 0x700f7fcb00 (format 56) has mixed DCC keys at 0x700f7fc940; its texels are read as stored 495: [gpu] texture streaming feedback (LOD warning / mip statistics) is not reported 495: [gpu] texture DCC color transform is ignored (word6=0x01980000 word7=0x00000000) 495: content-key count=0 data=0 movable=0 words=70 capacity=70 hash=12276112778106431680 495: content-key count=0 data=0 movable=1 words=70 capacity=70 hash=16547703523611771548 495: content-key count=0 data=1 movable=0 words=327 capacity=327 hash=18195637788575597601 495: content-key count=0 data=1 movable=1 words=70 capacity=70 hash=6884676608767608045 495: content-key count=1 data=0 movable=0 words=89 capacity=89 hash=3582826753038562111 495: content-key count=1 data=0 movable=1 words=89 capacity=89 hash=9518511843953525419 495: content-key count=1 data=1 movable=0 words=346 capacity=346 hash=3684355951081846730 495: content-key count=1 data=1 movable=1 words=89 capacity=89 hash=8486460719680651956 495: content-key count=31 data=0 movable=0 words=389 capacity=389 hash=2872353339945041207 495: content-key count=31 data=0 movable=1 words=389 capacity=389 hash=11292844791518677155 495: content-key count=31 data=1 movable=0 words=646 capacity=646 hash=16275665856175105250 495: content-key count=31 data=1 movable=1 words=389 capacity=389 hash=4084850990441387724 495: content-key count=32 data=0 movable=0 words=399 capacity=399 hash=9001008430028590267 495: content-key count=32 data=0 movable=1 words=399 capacity=399 hash=5471292191449946447 495: content-key count=32 data=1 movable=0 words=656 capacity=656 hash=9565516749443825062 495: content-key count=32 data=1 movable=1 words=399 capacity=399 hash=15118118974702537264 495: content-key count=33 data=0 movable=0 words=418 capacity=418 hash=10382587997612106155 495: content-key count=33 data=0 movable=1 words=418 capacity=418 hash=11706275810969384511 495: content-key count=33 data=1 movable=0 words=675 capacity=675 hash=1776364597915029880 495: content-key count=33 data=1 movable=1 words=418 capacity=418 hash=13690582611633829486 495: content-key count=16384 data=0 movable=0 words=168518 capacity=168518 hash=15297671208421994211 495: content-key count=16384 data=0 movable=1 words=168518 capacity=168518 hash=8322610684387165047 495: content-key count=16384 data=1 movable=0 words=168775 capacity=168775 hash=13444188082477402620 495: content-key count=16384 data=1 movable=1 words=168518 capacity=168518 hash=6566449801145079954 495: Unused stencil reference sample equivalence passed: 22 accepted states, 12 dependent countermodels 495: All 256 MSAA CMASK byte classifications passed 495: Graphics validation tests passed 1/1 Test #495: agc_driver_graphics .............. Passed 12.88 sec The following tests passed: agc_driver_graphics 100% tests passed out of 1 Total Test time (real) = 13.03 sec ``` </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA01746 #4073 - [x] GPUs tested: NVIDIA GeForce RTX 3080, driver 32.0.16.1692; Microsoft Windows 11 Pro; Khronos validation layer on `main` and this change, no new VUIDs - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fogydes commented 2026-10-22 08:49:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:49:12Z.


Reviewed; verified this is behavior-preserving and the message is honest. The throw condition is exactly the old one (Require(recordsUnchecked || index < records, ...) ⇔ if (!recordsUnchecked && index >= records) Require(false, ...)), the string is only built on the failure path so the per-fetch hot path pays nothing extra, and the interleaved Require(stride != 0 || required <= ZeroStride_AVAILABLEBytes ...) chain below is untouched so the next rejection keeps its own message.

I checked the exact-string assertions against the test fixtures rather than trusting them: fields = {0x1000, 32u << 16u, 3, ...} decodes to stride 32 / NUM_RECORDS 3, 0x2004dfacu >> 28 & 3 = OOB_SELECT 2, and the effective fetch index (maxIndex + instances - 1 + firstInstance = 3 + 1 - 1 = 3) gives "vertex index 3" — matches. The zero-stride case's {0x1000, 0, 8, ...} + instance bit gives stride 0 / records 8 / select 1 / index 8 with fetchIndex 1 → "instance index 8" — matches. Since expectFailure matches by substring (.find(reason) != npos), the pre-existing "record count" assertions stay valid even though the message got longer, so the layered old/new pattern is a compatible way to tighten the assertion.

One note: the run legs (windows, linux, register-context) had not executed at review time, so the new exact literals only get their first real exercise when they run — they should, given the decode above, but that's the check to watch on the next green run.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336696051 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604#issuecomment-6336696051). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-22T08:49:12Z. --- Reviewed; verified this is behavior-preserving and the message is honest. The throw condition is exactly the old one (`Require(recordsUnchecked || index < records, ...)` ⇔ `if (!recordsUnchecked && index >= records) Require(false, ...)`), the string is only built on the failure path so the per-fetch hot path pays nothing extra, and the interleaved `Require(stride != 0 || required <= ZeroStride_AVAILABLEBytes ...)` chain below is untouched so the next rejection keeps its own message. I checked the exact-string assertions against the test fixtures rather than trusting them: `fields = {0x1000, 32u << 16u, 3, ...}` decodes to stride 32 / NUM_RECORDS 3, `0x2004dfacu >> 28 & 3` = OOB_SELECT 2, and the effective fetch index (`maxIndex + instances - 1 + firstInstance` = 3 + 1 - 1 = 3) gives "vertex index 3" — matches. The zero-stride case's `{0x1000, 0, 8, ...}` + instance bit gives stride 0 / records 8 / select 1 / index 8 with fetchIndex 1 → "instance index 8" — matches. Since `expectFailure` matches by substring (`.find(reason) != npos`), the pre-existing "record count" assertions stay valid even though the message got longer, so the layered old/new pattern is a compatible way to tighten the assertion. One note: the run legs (`windows`, `linux`, `register-context`) had not executed at review time, so the new exact literals only get their first real exercise when they run — they should, given the decode above, but that's the check to watch on the next green run.
MarcZX10 commented 2026-10-22 09:30:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T09:30:38Z.

Review: CHANGES_REQUESTED


The change is behavior-preserving: the record-count throw condition is unchanged, the diagnostic is constructed only on the failure path, and subsequent zero-stride/address-range checks remain in their prior order. The exact expected strings match the fixture field decoding. Exact-head conventions and git diff --check pass; hosted conventions, eligibility, intake, labels, and progress report pass. Product Linux/Windows jobs are skipped, so those checks did not independently run the test here.

Before approval, please attach or link the paired ctest -V validation-layer logs required for AGC changes and state explicitly that neither run contains was not found but was requested by env var VK_INSTANCE_LAYERS and that the PR introduces no new VUID- errors versus main. The checklist currently asserts this, but the test section only says the focused test passes and does not provide the required validation-layer/no-cache invocation or the log evidence.

The reported Kena rate changes from 14.0 fps on main to 13.6 fps on this change. Since this is a performance comparison, please add the two valid same-machine/scene summary lines and attach the traces using the repository Performance report format, or remove the unsupported fps comparison if it is incidental and not a claimed performance result. Include the exact title bring-up discussion link (currently #4073) and keep its PR list current as required by the contribution rules.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5612088346 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604#pullrequestreview-5612088346). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T09:30:38Z. **Review:** CHANGES_REQUESTED --- The change is behavior-preserving: the record-count throw condition is unchanged, the diagnostic is constructed only on the failure path, and subsequent zero-stride/address-range checks remain in their prior order. The exact expected strings match the fixture field decoding. Exact-head conventions and `git diff --check` pass; hosted conventions, eligibility, intake, labels, and progress report pass. Product Linux/Windows jobs are skipped, so those checks did not independently run the test here. Before approval, please attach or link the paired `ctest -V` validation-layer logs required for AGC changes and state explicitly that neither run contains `was not found but was requested by env var VK_INSTANCE_LAYERS` and that the PR introduces no new `VUID-` errors versus main. The checklist currently asserts this, but the test section only says the focused test passes and does not provide the required validation-layer/no-cache invocation or the log evidence. The reported Kena rate changes from 14.0 fps on main to 13.6 fps on this change. Since this is a performance comparison, please add the two valid same-machine/scene summary lines and attach the traces using the repository Performance report format, or remove the unsupported fps comparison if it is incidental and not a claimed performance result. Include the exact title bring-up discussion link (currently `#4073`) and keep its PR list current as required by the contribution rules.
MarcZX10 commented 2026-10-22 13:18:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T13:18:35Z.

Review: DISMISSED


I refreshed exact head ecc035657c814259a1d47dd7f500ebb410094b34 against current main 3ca07d086d5f44fbe3c00370e7f03953ab46ca1b: git diff --check and conventions pass, and the current-main merge tree is clean. The diagnostic is still failure-path-only and preserves the existing throw condition; the exact-string test expectations were independently checked against the fixture fields. Hosted conventions/eligibility/labels/report pass, but Linux/Windows product jobs are skipped. I did not run the GPU test locally.

The existing review evidence requests remain unresolved: please attach the paired ctest -V validation-layer logs for main and this head, including the exact invocation and confirmation that neither run has the VK_INSTANCE_LAYERS warning or new VUIDs. The Tested section also compares Kena at 14.0 and 13.6 fps. Since the change is diagnostic-only, remove that incidental performance comparison unless you intend to report a performance result; if retained as a result, include same-scene summary lines and traces using the repository performance-report format.

The PR base is dce41a89478876a8e3ea9c346b1dac00bb31c8cd, behind current main. Please update to current main and refresh the convention/test evidence on the resulting head. This is a request for the current-main and review-evidence requirements only; it is unrelated to the obsolete intake hold.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5614840696 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604#pullrequestreview-5614840696). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T13:18:35Z. **Review:** DISMISSED --- I refreshed exact head `ecc035657c814259a1d47dd7f500ebb410094b34` against current main `3ca07d086d5f44fbe3c00370e7f03953ab46ca1b`: `git diff --check` and conventions pass, and the current-main merge tree is clean. The diagnostic is still failure-path-only and preserves the existing throw condition; the exact-string test expectations were independently checked against the fixture fields. Hosted conventions/eligibility/labels/report pass, but Linux/Windows product jobs are skipped. I did not run the GPU test locally. The existing review evidence requests remain unresolved: please attach the paired `ctest -V` validation-layer logs for main and this head, including the exact invocation and confirmation that neither run has the `VK_INSTANCE_LAYERS` warning or new VUIDs. The Tested section also compares Kena at 14.0 and 13.6 fps. Since the change is diagnostic-only, remove that incidental performance comparison unless you intend to report a performance result; if retained as a result, include same-scene summary lines and traces using the repository performance-report format. The PR base is `dce41a89478876a8e3ea9c346b1dac00bb31c8cd`, behind current main. Please update to current main and refresh the convention/test evidence on the resulting head. This is a request for the current-main and review-evidence requirements only; it is unrelated to the obsolete intake hold.
BunnyFl commented 2026-11-02 22:27:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T22:27:05Z.

Review: APPROVED


Reads right. The throw condition in VertexBufferReadSize (core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp) is unchanged: !recordsUnchecked && index >= records. Only the message gains OOB_SELECT, stride, NUM_RECORDS and which index (vertex or instance) was used, and the two new rows cover both index kinds.

Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto current main: agc_driver_graphics passes, nothing skipped. With main's VertexInput.hpp it fails on the new exact-message rows (unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count).

MarcZX10's open requests (paired validation-layer logs, dropping the incidental fps comparison, refreshing on current main) are separate from this; I didn't run with the validation layer.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5744312568 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604#pullrequestreview-5744312568). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-02T22:27:05Z. **Review:** APPROVED --- Reads right. The throw condition in `VertexBufferReadSize` (`core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp`) is unchanged: `!recordsUnchecked && index >= records`. Only the message gains OOB_SELECT, stride, NUM_RECORDS and which index (vertex or instance) was used, and the two new rows cover both index kinds. Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto current `main`: `agc_driver_graphics` passes, nothing skipped. With `main`'s `VertexInput.hpp` it fails on the new exact-message rows (`unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count`). MarcZX10's open requests (paired validation-layer logs, dropping the incidental fps comparison, refreshing on current `main`) are separate from this; I didn't run with the validation layer.
XairRrR commented 2026-11-02 22:48:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T22:48:08Z.

Review: APPROVED


Reviewed — approved

The change only makes the record-count error message more detailed. The throw condition is the same as before, agc_driver_graphics passes on the merged tree, and the two new rows fail when main's VertexInput.hpp is put back.

What I ran

Head 56ea15a2382a5a765fbae268b22ad252c19e1305, merged with --no-ff onto main 9090972b7e91fd266819cbd77a8b058e177b5682 (merged tree 07381e7aff668e7789b037733d6139f9c3be2f11). Debian 13 VM, GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6).

git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...56ea15a2382a5a765fbae268b22ad252c19e1305
python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682
ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$"
# negative control
git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp > core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp
ninja -C build -j32 -l32 tests/agc_driver_graphics_tests
ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$"
# restore
git show 07381e7aff668e7789b037733d6139f9c3be2f11:core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp > core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp
ninja -C build -j32 -l32 tests/agc_driver_graphics_tests
ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$"
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Merged-tree build (script) OK
Selected tests (script, 2038 run) 0 new failures, 0 timeouts; 7 known failures that also fail on main
Validation layer (script, 757 tests, layer loaded in 756, none missing) 0 tests with new VUID-
agc_driver_graphics on the merged tree Passed (35.1 s, and 36.6 s after restore)
agc_driver_graphics with main's VertexInput.hpp Failed, as expected
Worktree after restore git status --porcelain empty

The test executable takes about 35–36 s on this loaded VM. The PR adds only two expectFailure rows, which is a negligible share of that time. A long Graphics.cpp suite that took this long before the PR would explain it, but I did not time it on main here: with main's header the run stops early, at the first failing row (3.3 s).

Negative control

I restored only core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp from main and rebuilt tests/agc_driver_graphics_tests. The test then failed:

output
AGC graphics: unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count

I then restored the merged file, rebuilt, and the test passed again. The worktree is back to the merged tree.

Findings

Blocking

None.

Non-blocking

None.

Notes from the code review:

  • core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp:318-320: !recordsUnchecked && index >= records is the exact negation of the old Require condition. The string is only built on the failure path, and the zero-stride and address-range checks after it are unchanged. The expected strings match the fixture decoding, as fogydes already worked out; I add only the run evidence.
  • Throwing for OOB_SELECT 2 with a nonzero stride is still a known behaviour gap. JJenkx's Eternal Cylinder log shows this new message with OOB_SELECT 2 and stride 12, where per Mesa the hardware checks only NUM_RECORDS == 0. That gap is out of scope here: the path still throws, so the "unimplemented paths throw" rule holds.
  • MarcZX10's earlier change requests are covered by the current description: the paired validation-layer logs are attached with the required invocation and both confirmations, and the fps comparison is gone. The script's validation run on lavapipe also shows no new VUIDs.

Not verified

  • No run on non-lavapipe hardware. The test checks CPU-side state and opens no Vulkan device; ycbuzi made the same observation.
  • I did not time agc_driver_graphics on main on this machine, so I cannot confirm that the ~35 s runtime predates this PR. Given how small the change is, it most likely does.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5744523274 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9604#pullrequestreview-5744523274). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T22:48:08Z. **Review:** APPROVED --- # Reviewed — approved The change only makes the record-count error message more detailed. The throw condition is the same as before, `agc_driver_graphics` passes on the merged tree, and the two new rows fail when `main`'s `VertexInput.hpp` is put back. ## What I ran Head `56ea15a2382a5a765fbae268b22ad252c19e1305`, merged with `--no-ff` onto `main` `9090972b7e91fd266819cbd77a8b058e177b5682` (merged tree `07381e7aff668e7789b037733d6139f9c3be2f11`). Debian 13 VM, GCC 14.2.0, Release, Vulkan through lavapipe (Mesa 26.1.6). ``` git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...56ea15a2382a5a765fbae268b22ad252c19e1305 python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$" # negative control git show 9090972b7e91fd266819cbd77a8b058e177b5682:core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp > core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp ninja -C build -j32 -l32 tests/agc_driver_graphics_tests ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$" # restore git show 07381e7aff668e7789b037733d6139f9c3be2f11:core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp > core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp ninja -C build -j32 -l32 tests/agc_driver_graphics_tests ctest --test-dir build --output-on-failure -R "^agc_driver_graphics$" git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Merged-tree build (script) | OK | | Selected tests (script, 2038 run) | 0 new failures, 0 timeouts; 7 known failures that also fail on `main` | | Validation layer (script, 757 tests, layer loaded in 756, none missing) | 0 tests with new `VUID-` | | `agc_driver_graphics` on the merged tree | Passed (35.1 s, and 36.6 s after restore) | | `agc_driver_graphics` with `main`'s `VertexInput.hpp` | Failed, as expected | | Worktree after restore | `git status --porcelain` empty | The test executable takes about 35–36 s on this loaded VM. The PR adds only two `expectFailure` rows, which is a negligible share of that time. A long `Graphics.cpp` suite that took this long before the PR would explain it, but I did not time it on `main` here: with `main`'s header the run stops early, at the first failing row (3.3 s). ## Negative control I restored only `core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp` from `main` and rebuilt `tests/agc_driver_graphics_tests`. The test then failed: <details><summary>output</summary> ``` AGC graphics: unexpected failure: AGC graphics: vertex fetch exceeds descriptor record count ``` </details> I then restored the merged file, rebuilt, and the test passed again. The worktree is back to the merged tree. ## Findings ### Blocking None. ### Non-blocking None. Notes from the code review: - `core/libs/prx/libSceAgcDriver/Graphics/include/VertexInput.hpp:318-320`: `!recordsUnchecked && index >= records` is the exact negation of the old `Require` condition. The string is only built on the failure path, and the zero-stride and address-range checks after it are unchanged. The expected strings match the fixture decoding, as fogydes already worked out; I add only the run evidence. - Throwing for OOB_SELECT 2 with a nonzero stride is still a known behaviour gap. JJenkx's Eternal Cylinder log shows this new message with OOB_SELECT 2 and stride 12, where per Mesa the hardware checks only `NUM_RECORDS == 0`. That gap is out of scope here: the path still throws, so the "unimplemented paths throw" rule holds. - MarcZX10's earlier change requests are covered by the current description: the paired validation-layer logs are attached with the required invocation and both confirmations, and the fps comparison is gone. The script's validation run on lavapipe also shows no new VUIDs. ## Not verified - No run on non-lavapipe hardware. The test checks CPU-side state and opens no Vulkan device; ycbuzi made the same observation. - I did not time `agc_driver_graphics` on `main` on this machine, so I cannot confirm that the ~35 s runtime predates this PR. Given how small the change is, it most likely does. <!-- anyps5-bots job=2668 head=56ea15a2382a5a765fbae268b22ad252c19e1305 -->
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9604
No description provided.