No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1617
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1617/head"
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?
@MamaLeVrai on GitHub · 2026-11-24 19:50 UTC · original
MamaLeVrai:bundle/texture-mip-drop→main· +10186 −485 · 33 files · 157 commits · closed without merging#1296 (texture mip drop for low-VRAM cards) resolved onto the GPU bundles, by its author. antikohza did the resolution and published it as a branch on top of #1542 (see the comment there); this PR is that branch as it is, so that #1296 can be reviewed and merged on the stack (#1418, #1426, #1439, #1542) instead of conflicting with it. The commits and their authors are not touched.
What it is
#1296 adds
VICTORY_TEXTURE_MIP_DROP(clamped0..=3), a quality switch that drops the top mips of host textures so a 6-8 GB card does not run out of committed memory while the world streams, plus discrete-GPU selection on hybrid laptops (matching the adapter's LUID) and an automatic default: when the variable is not set,drop = 1on a GPU with 8.5 GiB or less of dedicated VRAM,0otherwise; an explicit setting always wins. Its description has the root cause analysis and the measurements (it fixes #737 and #1226).That default changes behaviour for owners of 4-8 GB cards (their textures are halved unless they set the variable), which is the point of the PR and worth a maintainer's decision.
What was reconciled onto the stack
From antikohza's comment on #1542 (
antikohza/VIctory@0d79788):list.rsanddescriptor.rs: merged without conflict.host.rs: #967'sadapter::open()and #1426's device creation kept, a redundantbest_adapter()dropped, the LUID-matchedDEVICE_MEMORYkept.resource.rs:(texture, drop) = host_texture(...)wired into #431's lazyOnceLockinitializer (Resource::host), so the lazy first-use allocation and the retirement after submission combine with the mip drop.texture.rs: #1418's five-argumentdetile_plane()kept for the existing tests, and adetile_plane_with_drop(..., self.mip_drop, ...)added for dropped-mip staging.Verification
I ran the same checks on the branch (Windows 11, RX 6950 XT, Rust 1.98.1, the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)antikohza reports the same three checks, plus
xtask policy, passing in their fork's CI (run 45473319819). The title was not run. No game data is used or committed.Re-verify in one go
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
root, notkind, in op_text 16d395ccc0The clamp of indirect arguments is HLSL compiled at run time by the system's compiler. Under Wine that is vkd3d-shader's, which has no methods on byte address buffers and ignores the RootSignature attribute: argument clamp: clamp:19:27: E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'. Without the clamp every indirect execution is dropped ("not bounded"), which is most of the world's draws and dispatches. The buffers become structured buffers of uint, indexed in words (the caller already refuses addresses and strides that are not multiples of 4), and the root signature is serialized beside the shader instead of read from it. The bounds and the budget are unchanged. Co-Authored-By: Claude Fable 5.2 <[email protected]>a6deb46db2' into trial/gpu-b 4c6ee4ff0d095e44a0bc' into trial/gpu-b 1633941213d9cb908568' into trial/gpu-b 6f00cd6bf795cefdaca5' into trial/gpu-b a2c53ea6653b7e1d5f95' into trial/gpu-b a0e3c99b36525a713e8f' into trial/gpu-b 3053f0ba6f1456fe76cd' into trial/gpu-b 6fbf21fde6d063cee543' into trial/gpu-b 91de94dc62b796c8b8b8' into trial/gpu-b 988b8529763e98bd7e0c' into trial/gpu-b 14bf94446592f2c60c81' into trial/gpu-b 42493cf378abefa49204' into trial/gpu-b 34e4f883c0e3c9dd0d53' into trial/gpu-b 601643ef39b4e464738d' into trial/gpu-b 581291cde2fba33207c4' into trial/gpu-b 3175f2070f47c00d5ea6' into trial/gpu-b 3f05013d29e009e13aa4' into trial/gpu-b 1412dd166fdcf666486a' into trial/gpu-a d1aaba15edeb723596bd' into trial/gpu-a 7571e6d527b58d198d95' into trial/gpu-a 72561d227b657efd8279' into trial/gpu-a 89a1e415e9b4abe5db60' into trial/gpu-a f3e176cd70a2e532d155' into trial/gpu-a 41fa861f96b232b8838d' into trial/gpu-a 2887f431f3bc747281dc' into trial/gpu-a 151f9393c8f0eddd8784' into trial/gpu-a 9f2024e023b38a3c9fa1' into trial/gpu-a 712fadc9c156f1d41387' into trial/gpu-a cdf60f3547340499c44c' into trial/gpu-a 0da47302219914ea4be8' into trial/gpu-a 5af2c971b9e34cb5396a' into trial/gpu-a bc151b535def0c3e9449' into trial/gpu-a d93e2921ad521ceccd78' into trial/gpu-c2 dcce10488f197c7acf1f' into trial/gpu-c2 db2610af76f821cb9d75' into trial/gpu-c2 d09818181b369dc32469' into trial/gpu-c2 b6bda2badef77bd28c6f' into trial/gpu-c2 fbed598823df9ab3c691' into trial/gpu-c2 e3642f086ce8fd20f85c' into trial/gpu-c2 6fccba9debd09c31b4c1' into trial/gpu-c2 5c9dc000f076291ef38c' into trial/gpu-c2 04a288b323d5f41f54c4' into trial/gpu-c2 be88b1266d6b987062d2' into trial/gpu-c2 e6b51e1e3716d395ccc0' into trial/gpu-c2 0b54113a16d454508f71' into trial/gpu-c2 bbc39231a98560817ada' into trial/gpu-c2 3dd6a0a5a8882664e13c' into trial/gpu-c2 4b7f44bce84dd4cfc8c0' into trial/gpu-c2 33ab8e2ea38ef6bfea16' into trial/gpu-rest2 9c57c5da7623ced703f0' into trial/gpu-rest2 3a44b3877ec48b240add' into trial/gpu-rest2 757ea4c27566d97eea7e' into trial/gpu-rest2 bca52221fc42961e8e57' into trial/gpu-rest2 5be4f28d8b69a49fa212' into trial/gpu-rest2 f2af766ed4735f3af7cb' into trial/gpu-rest2 95bde678630be58e62d2' into trial/gpu-rest2 b571486ce425e5868228' into trial/gpu-rest2 92ce9fc154df8f906b1e' into trial/gpu-rest2 c6cf776f93@Marvisak on GitHub · 2026-11-25 01:21 UTC · original
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.
See #1296.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@Marvisak on GitHub · 2026-11-25 01:32 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/copystat.rs,crates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/device.rs,crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
Pull request closed