Textures: refuse only layouts without addresses, so render-target XOR textures can upload #4442
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!4442
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4441"
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?
@101Leafy on GitHub · 2026-11-30 20:21 UTC · original
101Leafy:nv/xor-addressable→main· +3 −1 · 1 files · 1 commits · openFollow-up to #2879. Texture staging still refused every XOR layout, so the render-target XOR textures #2879 made addressable never uploaded their contents. It now refuses only layouts without addresses (
!layout.addressable()); the other XOR modes are refused as before.@IRennie74 on GitHub · 2026-11-30 22:38 UTC · original
As far as I can see this does not change anything on main yet.
staging(crates/victory-gpu/src/texture.rsaround 3186) takes its layout fromcrate::resource::texture_layout(resource.rs:178-200), which never callsLayout::configure_xor.Layout::newgives every XOR swizzleEMPTY_PATTERNandxor: None(victory-formats/src/texture.rsaround 873). Soaddressable()is still false for every XOR mode, and the same textures are refused, now via the new check.The only caller of
configure_xorisresource::title_texture(resource.rsaround 5786), which also checks that the start is block-aligned. To make render-target XOR textures upload,stagingwould need to do the same: configure withcrate::console::current().pipes()when the memory is block-aligned.Once that is done, watch the card's path (
VICTORY_GPU_DETILE).Layout::detile_paramsonly checksaddressable(), so a configured XOR layout passes. ButDetileParamsandpattern_tables()carry no XOR pattern (the tables are empty for XOR modes), sogpudetile::jobswould detile it as a plain swizzle: wrong texels rather than missing ones. Eitherdetile_paramsshould returnNonewhenself.xor.is_some(), or the shader needs the XOR terms.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.