GPU: VICTORY_WIDE_SCISSOR widens a scissor to its viewport (a diagnostic) #1265
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!1265
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1265/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?
@pablogonz12 on GitHub · 2026-11-24 16:56 UTC · original
pablogonz12:up/scissor→main· +273 −10 · 4 files · 1 commits · closed without mergingWhat
VICTORY_WIDE_SCISSOR=1widens each scissor to the viewport it pairs with (vertical bounds kept) and warns about the rects it changes (first 8, then every 512th). Diagnostics builds log the first 8 scissor/viewport pairs of every frame at debug level. The widening is pure logic inscissor.rs, with tests that run on every platform.Why
A replay shows all visible geometry confined to a 1252-column band of a 2560-wide buffer, its edges on the title's own scissor (742..1994) with viewport 2560x1440. The rects reach the host unchanged and no state is cached, so the band is the state the title set. Several reports in the community describe exactly this band; the switch says in one run whether widening the scissor brings the frame back, and the logging says whether the title sets narrow scissors at all, without a debugger.
It follows the existing diagnostic switches (
VICTORY_CAPTURE,VICTORY_DUMP_TARGETS,VICTORY_SKIP_PIPELINES,VICTORY_COPY_MODE): environment only, off by default, no behaviour change without it.How tested
cargo xwin clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, with and without--all-features: clean.Not tested
Written with an AI assistant.
@Marvisak on GitHub · 2026-11-25 00:36 UTC · original
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).
A switch that widens every scissor to its viewport, never tried in the title. It is live in all builds rather than behind the diagnostics feature, allocates on every scissor call, and its module doc names another project ("Scarlight") and a notes file that is not in this repo, with design rationale in the code.
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.
Pull request closed