shader: lower |vN| abs operand modifier in gfx2hlsl (Part of #1723) #2029
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2029
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2029/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?
@tedin7 on GitHub · 2026-11-24 23:27 UTC · original
tedin7:x2w-r20-abs-modifier→main· +198 −10 · 4 files · 4 commits · closed without mergingPart of #1723
What this unblocks: Run 20 census #4 (95 pairs).
v_cndmask_b32_e64with an absolute-value source (|vN|) was refused withoperand '|vN|'. The select now clears the sign bit (& 0x7fffffffu) before any negation, so-|vN|is always negative. Abs on an immediate and abs on other integer ops stay refused. The three old tests that pinned the register-abs refusal were removed fromstartup_gfx2hlsl_cndmask_neg_check.py; the new test covers the behavior.Verification:
python3 -B tests/startup_gfx2hlsl_abs_mod_check.py-> PASS (on origin/main the same test fails withUnsupported: operand '|v30|')python3 -B tests/startup_gfx2hlsl_cndmask_neg_check.py-> PASSpython3 -B tests/startup_gfx2hlsl_op_refusals_check.py-> exit 0python3 -B tests/startup_gfx2hlsl_refusals_check.py-> exit 0startup_gfx2hlsl_abs_modin CMakeLists.txt.AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:27 UTC · original · edited 2026-11-24 23:31 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
da72305ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@Makto94 on GitHub · 2026-11-25 10:43 UTC · original
First hardware run reported in this thread:
startup_gfx2hlsl_abs_mod_hardwarepasses on head97450a1awith both FXC and DXC.Environment: NVIDIA GeForce RTX 3070 Ti (
10de:2482), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build, fxc 10.0.26100.9457, dxc 1.9.2602.17, D3D12 debug layer enabled, hardware run serial on an idle machine, 0 capability skips (77). The log has 3fxclines and 3dxclines (2 draw rows and 1 "mutation: fails as expected" row per compiler), anddebug_errors=0 debug_warnings=0on all 6 runs.Same head, WARP and CPU checks:
100% tests passed, 0 tests failed out of 2(startup_gfx2hlsl_abs_mod,startup_gfx2hlsl_abs_mod_warp); the WARP test has 3fxclines, 3dxclines anddebug_errors=0 debug_warnings=0on all 6 runs.@tedin7 on GitHub · 2026-11-25 11:54 UTC · original
Thank you @Makto94 for the RTX 3070 Ti run at
97450a1a:startup_gfx2hlsl_abs_mod_hardwarepassed with FXC and DXC, plus CPU and WARP 2/2. Recorded as extra evidence for this PR.AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-25 13:51 UTC · original
Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is.
We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here.
AI-assisted; commands listed were executed locally.
Pull request closed