keep s_cbranch_execz skips around trapped nested loops #614
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!614
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/exec-zero-loops"
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?
What it changes
When an s_cbranch_execz skips an outer cmp* vcc + s_cbranch_vccz loop that encloses an undecided inner scalar loop (s_cmp_* + s_cbranch_scc0), decided_cycle stops at the undecided inner branch and never discovers that the outer cycle has no path out when EXEC == 0. ir::without_skips then strips the s_cbranch_execz guard, so an empty 32-lane host wave enters the loop and spins until the iteration watchdog aborts.
This change:
eads_lanes && any_cycle rule and allowing finite counted scalar loops to be unskipped.
How it was tested
c8258f9)Checklist
Checked for overlap
Independent native Windows result at
b1da3c1on an RTX 4060 (driver 621.40). The existing nested-loop fixture reached D3D12 dispatch and all four outputs matched. Fors0=0it returned0x12345600, and fors0=1,40,64it returned0x12345606.cargo test --locked --offline -p darner-shader --lib emit::wave64_tests::skip_around_trapped_nested_vccz_loop_does_not_abort_when_empty -- --exact --nocapturepassed. A second run with a local DXGI adapter-identity assertion verified that each of the four dispatches ran on the physical RTX 4060. This covers the hardware case skipped on the other Windows test machine.[pr-fix][shaders][NVIDIA] keep s_cbranch_execz skips around trapped nested loopsto keep s_cbranch_execz skips around trapped nested loopsTest needed — commit
b1da3c18; what to check:When an s_cbranch_execz skips an outer cmp* vcc + s_cbranch_vccz loop that encloses an undecided inner scalar loop (s_cmp_* + s_cbranch_scc0), decided_cycle stops at the undecided inner branch and never discovers that the outer cycle has no path out when EXEC == 0. ir::without_skips then strips the s_cbranch_execz guard, so an empty 32-lane host wave enters the loop and spins until the iteration watchdog aborts.
This change:
eads_lanes && any_cycle rule and allowing finite counted scalar loops to be unskipped.
Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.