AGC (NVIDIA RTX 2060, Windows): agc_storage_write_back_host_retile fails about 3 runs in 4: the watched linear case goes through its scratch #23708

Closed
opened 2026-11-19 13:49:48 +00:00 by Jazeupoi · 0 comments
Jazeupoi commented 2026-11-19 13:49:48 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Jazeupoi on 2026-11-19T13:49:48Z.


What happens

agc_storage_write_back_host_retile fails in about 3 runs out of 4 with (watched) linear 200x150: the linear write-back went through its scratch instead of retiling into the import.

Title, test or build step

ctest agc_storage_write_back_host_retile (added by #21536)

AnyPS5 commit

642d74c61f (main), nothing merged on top. Also 6e775d335b, the merge of #21536.

System

Windows 11, NVIDIA GeForce RTX 2060 (Turing, driver 621.24), WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON

Steps to reproduce

set ANYPS5_REQUIRE_VULKAN=1
set ANYPS5_NO_SHADER_CACHE=1
ctest --test-dir build -R "^agc_storage_write_back_host_retile$" -V

It stops after about 0.7 s.

Log

write-back padding:
(watched) linear 200x150: the linear write-back went through its scratch instead of retiling into the import
[libc] unhandled exception 'St13runtime_error' thrown from ...

What was checked

Each run is the test alone:

Commit Failed runs
6e775d335b (merge of #21536) 14 of 20
642d74c61f (main) 16 of 20
  • It fails from the merge itself, not from a later change.
  • Every failure is this one check. agc_storage_write_back, the same test without APS5_LINEAR_IMPORT_RETILE_HOST, passes.
  • The earlier runs on #21536 passed this test once each (Windows with an RTX 2070 SUPER, Linux with an RTX 4090). That fits a pass rate of about 1 in 4.

The description of #21536 says the linear cases did not reach the import route on the author's machine (GuestMemory::Watched false), so this check did not run there. Here Watched is true for the watched case, so the test expects a direct retile (expectImportRetile). The driver takes the direct route only when the import segments resolve and wholeLayers == keep. In most runs it does not, and the write-back uses its scratch.

Passing and failing runs both print the same two guest memory changed while GPU results were pending; keeping the CPU's blocks lines, so those lines do not tell them apart.

Not run on a PS5.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6491055399 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/23708). Originally posted by [Jazeupoi](https://github.com/Jazeupoi) on 2026-11-19T13:49:48Z. --- ### What happens `agc_storage_write_back_host_retile` fails in about 3 runs out of 4 with `(watched) linear 200x150: the linear write-back went through its scratch instead of retiling into the import`. ### Title, test or build step ctest `agc_storage_write_back_host_retile` (added by #21536) ### AnyPS5 commit `642d74c61f` (main), nothing merged on top. Also `6e775d335b`, the merge of #21536. ### System Windows 11, NVIDIA GeForce RTX 2060 (Turing, driver 621.24), WinLibs GCC 15.2.0, Release, `BUILD_TESTING=ON` ### Steps to reproduce ``` set ANYPS5_REQUIRE_VULKAN=1 set ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R "^agc_storage_write_back_host_retile$" -V ``` It stops after about 0.7 s. ### Log ``` write-back padding: (watched) linear 200x150: the linear write-back went through its scratch instead of retiling into the import [libc] unhandled exception 'St13runtime_error' thrown from ... ``` ### What was checked Each run is the test alone: | Commit | Failed runs | |---|---| | `6e775d335b` (merge of #21536) | 14 of 20 | | `642d74c61f` (main) | 16 of 20 | - It fails from the merge itself, not from a later change. - Every failure is this one check. `agc_storage_write_back`, the same test without `APS5_LINEAR_IMPORT_RETILE_HOST`, passes. - The earlier runs on #21536 passed this test once each (Windows with an RTX 2070 SUPER, Linux with an RTX 4090). That fits a pass rate of about 1 in 4. The description of #21536 says the linear cases did not reach the import route on the author's machine (`GuestMemory::Watched` false), so this check did not run there. Here `Watched` is true for the watched case, so the test expects a direct retile (`expectImportRetile`). The driver takes the direct route only when the import segments resolve and `wholeLayers == keep`. In most runs it does not, and the write-back uses its scratch. Passing and failing runs both print the same two `guest memory changed while GPU results were pending; keeping the CPU's blocks` lines, so those lines do not tell them apart. Not run on a PS5. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#23708
No description provided.