Perf/shader relative shift bounds #1802
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!1802
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1802"
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?
@VlREX on GitHub · 2026-11-24 22:48 UTC · original
VlREX:perf/shader-relative-shift-bounds→main· +79 −1 · 1 files · 3 commits · openNo description provided.
@DesertGamer on GitHub · 2026-11-24 22:57 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@upipibi on GitHub · 2026-11-24 23:18 UTC · original
NVIDIA run: RTX 3070 8 GB, driver 616.56, plus WARP, Windows 11, debug,
70b895d(onmain70564ae).cargo test -p victory-shader --locked: 207 passed, 3 failed, 2 ignored. The 3 are #1744's NVIDIA heap-cap failures onmain, so there are no new failures.AI-assisted (Claude Code). Synthetic tests only.
@Marvisak on GitHub · 2026-11-25 06:27 UTC · original · edited 2026-11-25 16:46 UTC
Automated triage for the maintainers.
Merge candidate.
Rangesincrates/victory-shader/src/range.rsboundss_lshr_b32andv_lshrrev_b32when the shift count is a constant. That narrows the registers that later relative moves (v_movrels) are taken to read.constant_shifttakes inline constants 128..=159 as 0..31 and literals below 32 as they are. Anything else stays unbounded: larger constants (which the hardware masks to 5 bits), negative inline constants, and variable counts. That is conservative, and a shift by 0 leaves the operand's bound unchanged.New since the last review:
d570108addsshift_bounds_accept_only_unambiguous_constant_counts. It covers the edges of both encodings (literals 32, 63 andu32::MAX; codes 127, 160, 192, 193 and 208), and I checked its expectations against the inline-constant table. The verdict is unchanged.CI: passing.
Generated by Claude Code
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.