Texture readback skips the 256×256 R32_FLOAT shallow-water timestep surface (SW_64KB_R_X) #880

Closed
opened 2026-11-28 08:32:04 +00:00 by Yoshi-233 · 2 comments
Yoshi-233 commented 2026-11-28 08:32:04 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T08:32:04Z.


On a desktop RTX 4070 Ti SUPER (16 GB, driver 617.42), Series X profile, a completed texture readback cannot be written to guest memory for one shallow-water simulation surface. I reproduced it in two Windows runs based on v2026.11.28.01, with diagnostic logging added at the existing texback::land failure. Reproducible from the dock or shallow water during free roam.

Descriptor and error

guest / host / copy format = 41 (R32_FLOAT)
256 × 256 × 1, Tex2d, 1 mip, 1 sample, slice 0
guest layout = 0x0, resource flags = 0x300005
resolved swizzle = 27 (SW_64KB_R_X), pipe/bank XOR = true
title allocation = 262144 bytes, mapped row pitch = 1024, rows = 256
Layout::addressable() = false; Layout::tile(...) = Err(Unsupported)

The GPU copy and mapping complete. The tiling error then returns before the copy into guest memory. In one run the same layout accumulated 4,096 failures. Between counts 128 and 2,048, timestamps and runtime render-FPS summaries give approximately 0.96–1.02 failures per rendered frame. The recorded resource owner was stable at those sampled counts. On stock the first warning is a texture copied back could not be tiled, with mip=0 and slice=0; the global one-time warning hides subsequent occurrences.

I also followed the same host resource within each of two runs: CS_ComputeTimestep writes the 256×256 texture, then CS_MinTimestepReduce reads it and reduces it to 8×8, then 1×1. The identified reader uses the GPU copy. The impact on visible waves and any subsequent CPU read are still unknown.

Standalone repro in victory_formats::texture: build a Desc with Tex2d, width/height 256, depth/mips/samples/block 1, element size 4 and Swizzle::SW_64KB_R_X. Create its layout and call tile for mip 0 / slice 0 with a 262,144-byte linear buffer, row pitch 1,024 and slice pitch 262,144. The call returns Error::Unsupported. The expected outcome is a correctly guest-ordered writeback for this supported resource declaration. Picking a specific XOR equation still requires checking the guest pipe/bank parameters.

This failure occurs after readback registration, so it can be tested independently of #686. No device removal or process crash occurred in the measured dock sequence.

Play-log evidence (UTC, instrumented .01 run)

Process-local pointers omitted. The first row shows the declaration and error; subsequent rows give the selected counters from that same log.

2026-11-28T06:04:28.106291Z  WARN victory_gpu::texback: a texture copied back could not be tiled error=Unsupported reason="no console pipe/bank XOR address equation" count=1 title_bytes=262144 guest_format=41 host_format=41 copy_format=41 width=256 height=256 depth_or_array=1 mips=1 mip=0 slice=0 samples=1 host_samples=1 dimension=Tex2d guest_layout=0x0 flags=0x300005 swizzle=27 pipe_bank_xor=true addressable=false element_bytes=4 block_texels=1 row_pitch=1024 rows=256
2026-11-28T06:04:48.450496Z  count=128 swizzle=27 addressable=false
2026-11-28T06:06:51.473226Z  count=2048 swizzle=27 addressable=false
2026-11-28T06:09:00.582241Z  count=4096 swizzle=27 addressable=false

Related address implementation and independent per-coordinate check: PR #892.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6661929837 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/880). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-28T08:32:04Z. --- On a desktop RTX 4070 Ti SUPER (16 GB, driver 617.42), Series X profile, a completed texture readback cannot be written to guest memory for one shallow-water simulation surface. I reproduced it in two Windows runs based on `v2026.11.28.01`, with diagnostic logging added at the existing `texback::land` failure. Reproducible from the dock or shallow water during free roam. **Descriptor and error** ```text guest / host / copy format = 41 (R32_FLOAT) 256 × 256 × 1, Tex2d, 1 mip, 1 sample, slice 0 guest layout = 0x0, resource flags = 0x300005 resolved swizzle = 27 (SW_64KB_R_X), pipe/bank XOR = true title allocation = 262144 bytes, mapped row pitch = 1024, rows = 256 Layout::addressable() = false; Layout::tile(...) = Err(Unsupported) ``` The GPU copy and mapping complete. The tiling error then returns before the copy into guest memory. In one run the same layout accumulated 4,096 failures. Between counts 128 and 2,048, timestamps and runtime render-FPS summaries give approximately 0.96–1.02 failures per rendered frame. The recorded resource owner was stable at those sampled counts. On stock the first warning is `a texture copied back could not be tiled`, with `mip=0` and `slice=0`; the global one-time warning hides subsequent occurrences. I also followed the **same host resource within each of two runs**: `CS_ComputeTimestep` writes the 256×256 texture, then `CS_MinTimestepReduce` reads it and reduces it to 8×8, then 1×1. The identified reader uses the GPU copy. The impact on visible waves and any subsequent CPU read are still unknown. **Standalone repro** in `victory_formats::texture`: build a `Desc` with `Tex2d`, width/height 256, depth/mips/samples/block 1, element size 4 and `Swizzle::SW_64KB_R_X`. Create its layout and call `tile` for mip 0 / slice 0 with a 262,144-byte linear buffer, row pitch 1,024 and slice pitch 262,144. The call returns `Error::Unsupported`. The expected outcome is a correctly guest-ordered writeback for this supported resource declaration. Picking a specific XOR equation still requires checking the guest pipe/bank parameters. This failure occurs after readback registration, so it can be tested independently of #686. No device removal or process crash occurred in the measured dock sequence. <details> <summary>Play-log evidence (UTC, instrumented .01 run)</summary> Process-local pointers omitted. The first row shows the declaration and error; subsequent rows give the selected counters from that same log. ```text 2026-11-28T06:04:28.106291Z WARN victory_gpu::texback: a texture copied back could not be tiled error=Unsupported reason="no console pipe/bank XOR address equation" count=1 title_bytes=262144 guest_format=41 host_format=41 copy_format=41 width=256 height=256 depth_or_array=1 mips=1 mip=0 slice=0 samples=1 host_samples=1 dimension=Tex2d guest_layout=0x0 flags=0x300005 swizzle=27 pipe_bank_xor=true addressable=false element_bytes=4 block_texels=1 row_pitch=1024 rows=256 2026-11-28T06:04:48.450496Z count=128 swizzle=27 addressable=false 2026-11-28T06:06:51.473226Z count=2048 swizzle=27 addressable=false 2026-11-28T06:09:00.582241Z count=4096 swizzle=27 addressable=false ``` </details> Related address implementation and independent per-coordinate check: [PR #892](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/892#issuecomment-7236792183).
github-actions[bot] commented 2026-11-28 08:32:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T08:32:12Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7236645923 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/880#issuecomment-7236645923). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:32:12Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
trustno1-coder commented 2026-11-29 19:48:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T19:48:33Z.


Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7261572101 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/880#issuecomment-7261572101). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T19:48:33Z. --- Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
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
trustno1-coder/VIctory-NVIDIA#880
No description provided.