Skip texture readbacks that the CPU tiler cannot land #881
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!881
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-881"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@P2GR on GitHub · 2026-11-28 08:32 UTC · original
P2GR:contrib/skip-unlandable-texture-readbacks→main· +59 −0 · 3 files · 1 commits · closed without mergingChange
Skip texture readbacks when the destination layout cannot be tiled. Check after the command list deduplicates texture writes and before the
COPY_SOURCEtransition. This avoids allocating a readback buffer, recording the GPU copy and reading destination memory before the tiler rejects the layout. The first skip still logs the swizzle and sample count.RTX 2080 Ti context
An earlier RTX 2080 Ti run logged a texture copy that failed with
Unsupportedduring tiling. A run with our local early check logged a skip for swizzle 27. The heavier prologue sample spent a median 8.8 ms per frame in the overall copy-back stage at 1280×720 rendered to 1920×1080 with DLSS Quality and frame generation off. That timing covers the whole stage. A matched hardware FPS comparison for this patch is pending.Validation
victory-gpu, and the repository asset-policy check passed.@Yoshi-233 on GitHub · 2026-11-28 08:48 UTC · original
I checked this PR together with #892 on Windows using Microsoft's D3D12 WARP adapter. I ran
resource::tests::only_addressable_textures_record_readbackswithVICTORY_D3D12_WARP=1andVICTORY_TEXTURE_BACK=256x256f41.05bb2d3alone: the ignored WARP test passes, including the unsupported swizzle-27 case.a231183from #892: the only merge conflict was where both heads inserted a test intoresource.rs. I kept both test bodies. The original WARP assertion then fails withswizzle 27: left=true, right=false. The newly supported aligned R32_FLOAT resource now correctly records GPU work.SW_4KB_S → record,SW_64KB_R_X → record,SW_64KB_S_X → skip. All three passed on WARP. #892’s separate unit test also passed with its aligned and 256-byte-offset R32 cases.If both patches land, the unsupported negative control can use
SW_64KB_S_X. The repeated write notifications and list closure still exercise the original purpose of this test. The 4070 Ti SUPER surface recorded in #880 is one example that transitions from unsupported to supported.@kibagami-nc on GitHub · 2026-11-28 09:07 UTC · original
#892 skipped the same copies in
title_texture, so the two did the same thing twice, and yours came first. I took that part out of #892 (7f6e2aa). It now only adds the addressing, for a 256x256R32_FLOATplane inSW_64KB_R_Xat a 64 KiB boundary. Skipping whatever still cannot be addressed is this pull request's.One thing for when both land, as Yoshi-233 found: the aligned
SW_64KB_R_Xtexture is copied back then. The unsupported case ofonly_addressable_textures_record_readbackswould then beSW_64KB_S_X, and the test would still go through the repeated writes and the list's close.@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed