Skip to content

Test mixed image types at dynamic offsets and control-flow joins - #1

Open
necrobytes wants to merge 2 commits into
andyeox-systemd:nvidia-atomic-handlesfrom
necrobytes:test/2723-mixed-image-handle-caches
Open

necrobytes wants to merge 2 commits into
andyeox-systemd:nvidia-atomic-handlesfrom
necrobytes:test/2723-mixed-image-handle-caches

Conversation

@necrobytes

@necrobytes necrobytes commented Nov 26, 2026 •

Copy link
Copy Markdown

This adds the two regression cases requested in the review of Marvisak/VIctory#2723. I based it directly on nvidia-atomic-handles at 235c48c6, so merging this commit into that branch adds the tests to the open upstream PR.

Both tests load the same image as floats and use it for an unsigned atomic. One computes a uniform descriptor-table offset at run time. The other selects the descriptor across a control-flow join. Each checks that the emitted DXIL carries both resource annotations.

Configuration on this branch Dynamic offset Control-flow join
PR as written Pass Pass
Omit the element type from the dynamic-cache key Fail Pass
Omit the element type from the join-cache key Pass Fail

Each failure reported the missing unsigned annotation. All 30 tests in emit::lower::tests passed under Proton with the Windows GNU test binary. All input instructions in the new tests are synthetic. The staged changes passed the repository asset-policy check.

I also ran the full shader suite on an RX 9060 XT under Proton using RADV 26.2.7 and vkd3d-proton 3.2.0.

Full suite Passed Failed Ignored
Original branch (235c48c6) 269 2 3
With these tests (9aeb2b1) 271 2 3

Both builds failed the same two existing host checks. hosts_that_do_not_fuse_are_named observed a different WARP fused-multiply-add result under Proton. stub_pipeline_is_created found that vkd3d accepted the all-zero DXIL digest. Six tests in the pass totals returned early because the console SDK compiler was unavailable. I reran the optional PC-DXC case with Microsoft DXC 1.8.2502 and it passed on both builds. Scoped Clippy passed on the Windows GNU and MSVC targets with default features and all features.

AI-assisted with Codex.

andyeox-systemd and others added 2 commits November 25, 2026 12:55
…main)

A UAV read as float and also used by an atomic needs two handles: an
atomic on the float handle is invalid SPIR-V after conversion
("AtomicOr/AtomicUMax: expected Result Type to be integer scalar type")
and crashes NVIDIA's compiler in vkCreateComputePipelines.

Marvisak#177 added the element type to the `handles` key. main has since added
`entry_handles` and `join_handles`, which had the same problem; they are
keyed by both property words now as well. Includes Marvisak#177's test, with
`view_marks` added for the current `Parts`.

Co-authored-by: Ortomanic <360474481+Ortomanic@users.noreply.github.com>
Co-authored-by: gingertonik <91795517+gingertonik@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants