Repository navigation
fix(shader): follow scheduled jump table index writes - #7630
Conversation
|
Follow-up native validation on newer main A five-minute run now advances beyond the opening quotation: scheduled Cross input enters the in-car scene with narration at 200 s, then a later dialogue line with Erika’s portrait at 280 s. Both captures were visually inspected. Ordinary close at 301.51 s; exit zero at 303.51 s; native process gone and temporary udmabuf limit restored to 64 MiB. This used the same explicit installed-chunk override recorded above. Sanitized native validation and focused test log. This establishes opening dialogue progression for the two-fix integration, not full gameplay, visual correctness or an FPS improvement. |
|
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.
|
|
Windows and AMD's proprietary driver, since the description lists Windows and other GPUs as not tested. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, With AI-assisted |
|
I manually checked the overlap bot warning against #6977. That PR is a broad PS4 GCN/Limbo integration and is currently conflicted; its GraphBuilder.cpp change is gated to PS4 GCN shader control flow, while this PR changes scheduled jump-table index tracking for the existing path. The code changes do not implement the same behavior. The reported Windows/Radeon 860M focused CTest runs also add useful validation for this PR. |
|
Intel and AMD Windows data: the four tests fail on Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7627, #7603, #7600, #7591, #7579, #7535, #7533, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond AI-assisted: yes (Claude Code) |
|
Additional Windows validation with this PR alone on upstream main Windows 11 Enterprise build 22621, Ryzen 9 5950X, Radeon RX 6700 XT, AMD proprietary Vulkan driver 26.8.1 (Vulkan API 1.4.315), WinLibs GCC 15.2.0 UCRT r7, Release, Built ctest --test-dir build-full-gcc15 --output-on-failure --no-tests=error --timeout 30 -j 1 --repeat until-fail:3 -R '^(agc_shader_control_flow|agc_shader_control_flow_iteration_selection_off|agc_shader_control_flow_forced_fallback|agc_driver_scalar_setpc)$' --output-junit windows-sync69-pr7630.xmlAll four tests passed three consecutive runs each (12 executions), with zero skips; CTest total time 9.49 seconds. Saved JUnit reports four tests, zero failures, zero disabled and zero skipped. This is focused test coverage, not a title performance comparison. AI-assisted validation. |
|
Rechecked against current main: the new GraphBuilder changes touch the table-call/descriptor search, not |
What
Recognize bounded two-dword PC-relative jump tables when unrelated instructions separate the index bound, index shift and base-address calculation. The existing matcher requires the bound and shift immediately before the three base-address instructions. A shader in Crimson Spires PPSA03568 instead schedules vector work in those gaps and is refused at
s_setpc_b64PC0x3e0.Reuse the conservative last-writer search for the SMEM offset register to identify its scale and bound. Intervening writes to that register or control-flow boundaries still reject the match; the existing bound, scale, branch-entry, table-range and destination checks remain. No dynamic indirect-branch fallback or title-specific path is added.
One commit
eaa6d89ff9on main8d17389a73. The depth-bounds fix in #7627 is excluded from this branch; it is only a prerequisite for the native integration evidence below.Tested
Linux Release, GCC 16.2.1, Ryzen 9 7950X; AMD RX 6650 XT, RADV Mesa 26.2.4.
libs, control-flow and scalar-setpc targets build. Four focused CTests pass, no skips (0.34 s), withANYPS5_REQUIRE_VULKAN=1: control-flow default, iteration-selection-off, forced fallback, and scalar-setpc GPU readback.unsupported dynamic s_setpc_b64PC0x38); restored candidate passes. The private captured title request changes from its PC0x3e0refusal to a full 54,275-word SPIR-V result. No title code or serialized requests are attached.4be62bfde14d= mainc34e9d855c+ fix(agc): preserve infinite depth bounds #7627 + this shader change: input at46.79 s passes the previous crash, loading screenshot at60 s and opening-story screen at110 s visually inspected. Ordinary close at121.32 s; exit0 after123.33 s, process gone, temporary udmabuf limit restored to64 MiB. Explicit existingAPS5_PLAYGO_UNLISTED_CHUNKS=installedwas used because this dump lacks chunk metadata. Gameplay, FPS gains and visual completeness are untested. This native result is the older integration, not the refreshed standalone branch.Sanitized validation and test/negative-control logs, assets prefixed
crimson-scheduled. Local Windows and full-suite runs were not performed. Contributor validation is recorded below.Contributor validation: LeandroLP23 reports all four focused CTests passing three runs each with
ANYPS5_REQUIRE_VULKAN=1and no skips on Windows 11 26300, Radeon 860M (RDNA 3.5), AMD driver 32.0.13058.8001, WinLibs GCC 15.2.0 r7 Release. That build combines mainc3591adf9with #7629, #7630 and #7627; this is contributor integration validation, not an isolated Windows run of this branch. MarcZX10 reviewed the #6977 overlap warning and found that its PS4 GCN control-flow changes implement separate behavior.savvaniss independently reports all four focused tests passing three runs each on Windows 11 Pro 26300, Intel UHD 770 (32.0.101.7088) and AMD RX 9070 XT (32.0.31041.1004), WinLibs GCC 15.2.0 r7 Release. The tested composition merges exact head
eaa6d89ffinto mainf3059421f, with shader caching disabled and serial CTest. A control using this PR's tests on that main without its implementation fails all four tests on both GPUs. This is contributor composition evidence, not our own Windows run or a title-performance result.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)