test(lower): DEPBAR's scoreboard-list form and CS2R SRZ into high registers lower #212
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!212
Loading…
Reference in a new issue
No description provided.
Delete branch "TrashPanda/Longshot:test/lower-cs2r-depbar"
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?
Summary
Mesh-stage programs used to fail to lower on a first start, because of the list form of the scoreboard wait
(
DEPBAR.LE SB0, 0x0, {4,3,2,1}) andCS2R Rd, SRZinto high registers. Longshot's lowering handles both now, but nocheck covers them, so a later change to
lower_to_maxwell.hcould break them again without anyone noticing. This addsa game-free check that lowers hand-made programs using both forms, so a regression fails the checks instead of a
player's first start. Nothing the game runs changes.
Read
tests/test_lower_cs2r_depbar.py(new): it lowers the programs and checks theREGMAP_nx2prefixes and theMOV32Iwords the lowering writes. It comes from Hookshot'sfix/lower-cs2r-depbar; that branch's lowering changeisn't needed, since
mainalready has it (f174cfcf, from Hookshot's AMD fixes).Testing
Tested: Linux (Ubuntu 26.04.1, g++ and clang 21), on
main@068fb8eb:tests/test_lower_cs2r_depbar.pypasses.The full suite hasn't been run on this head yet; CI runs it on this push.
Still to test: None: a new check only, and nothing the game runs changes.
Measurements
Nothing to measure: a new game-free check, and nothing the game runs changes.
Risks
Nothing in the game: a new check only. A revert removes it. Nothing changes for a player.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (Not run on this head yet; CI's run on the push.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.WIP: test(lower): DEPBAR's scoreboard-list form and CS2R SRZ into high registers lowerto test(lower): DEPBAR's scoreboard-list form and CS2R SRZ into high registers lower67a159d177765e5db3ad765e5db3ad066e1f2cb7Basic code-only review of 066e1f2cb7cb0ffa7eebfa73a324be02c18810ca; informational feedback, with final approval left to another reviewer.
No obvious defect found in this test-only addition. The fixture calls the real
LowerToMaxwellimplementation: it accepts the old and scoreboard-list DEPBAR forms, rejects an out-of-mask mode, verifies the direct R238/R239 zero writes, and checks both zero writes and register-map prefixes for R246–R252. Removing CS2R renaming or restoring the old DEPBAR rejection would fail these assertions. No existing assertions or production code are changed.Current main retains the relevant lowering behavior and does not already contain this test. The script only writes its temporary fixture, invokes the selected compiler, and runs that fixture; there are no downloads or game-file accesses.
The reported Linux clang++ pass supports the fixture, but I have not reproduced it. Coverage stops at emitted lowering words, not downstream shader execution or rendering. The description's two baseline suite failures should be named for traceability; this is a reporting follow-up rather than a defect in these assertions.
No tests or builds run during this review.
066e1f2cb716b3543ed9Rebased onto main @
544229a2(now 16b3543e) and moved the description to the current template. Thanks @bibiburl: the suite failures that also fail on main are now named under Testing. On the rebased branch the new check passes and run_all.py fails 43 checks, all of which fail on main at the same commit too.Brought up to the ready-for-review standard (#1454): the checklist's Everyone list has two new boxes, added here from what this PR's description and comments show (please check they match what you know).
16b3543ed9c74e79f967