Repository navigation
Direct DXIL: lower i64 min/max as compare/select - #1946
Open
luckyteagirl wants to merge 1 commit into
Open
luckyteagirl wants to merge 1 commit into
luckyteagirl wants to merge 1 commit into
Conversation
Contributor
|
Checked on an RTX 3070 (Ampere, driver 616.56, Windows 11, debug build):
This PR also bumps AI-assisted (Claude Code). Synthetic tests only. |
This was referenced Nov 25, 2026
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
luckyteagirl
force-pushed
the
codex/dxil-i64-ops
branch
from
November 25, 2026 02:54
b527347 to
f906266
Compare
|
Confirmed on AMD RX 6750 XT, driver
Stacked after #1974, this also clears the seed-783 i64 Not tested: full suite or retail title. AI use: OpenAI Codex (GPT-5) ran and analyzed the test; I reviewed the result. Thank you! |
luckyteagirl
marked this pull request as ready for review
November 25, 2026 09:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1679. On the Radeon RX 6800M with Windows driver
30.0.13002.13003, eachdx.op.binary.i64signed or unsigned min/max variant suspended the D3D12 device during pipeline creation (0x887A0005). This lowers those four forms to i64 comparisons andselect. The direct-DXIL source hash from #1947 keys the translated cache, so the rebased change needs no manual translator-version bump.What is in it
ops.rs: use signed or unsigned i64 comparison and select forIMax,IMin,UMax, andUMin; other binary operations keep their current path.ops_tests.rs: compare both output words against CPU signed and unsigned min/max across 32 lanes, including equal high words with different low words.Tested
f90626676934293a7c3c35cccd77c06299bce32don maincbc296ab65a2661a61e3e2da109134bcd5319f60. Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M driver30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1,XCL_DIRECT_DXIL=1: the focusedgpu::dxil::ops_tests::int64_bit_ops_match_cputest passed (1 passed, 0 failed, 0 ignored, no explicit skip). The wholegpu::dxil::ops_testsgroup passed 20/20 with--test-threads=1and no explicit skips.cargo build --locked --workspace -j 2,cargo build --locked --release -p xcl -j 2, andgit diff --check origin/main...HEAD: passed.cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-outputcompleted with 998 passed, 156 failed, 46 ignored across the completed binaries. All 156 named failures weregpu::tests after the RX 6800M device was suspended (0x887A0005). Nine explicitSKIPPEDmessages included no GPU/device, unavailable D3D12 debug layer, no reserved cube with mips, and no heap windows. I did not run an equivalent full-suite baseline on this new main commit, so the failures are reported without attributing them to this PR.scripts/smoke.ps1runs on the RX 6800M. Each revision showed one frame, with no crash or device removal. Peak process commit was 6,911 MB on main and 7,063 MB on the PR.Regression run
main:
PR head:
Not tested
AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) isolated and implemented the fix, rebased it, ran the tests and smoke comparisons, reviewed the logs, and drafted this description.