runtime: bind uint_texture_uav in native compute #3783
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!3783
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3781"
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?
@R0D4X on GitHub · 2026-12-01 19:47 UTC · original
R0D4X:runtime/native-compute-uint-tex-uav→main· +90 −24 · 5 files · 2 commits · merged 2026-12-02 02:39 UTCRefs #3226, #2935
Summary
Binds
ComputeViewKind::uint_texture_uav(2D and 3DR32_UINTimage-atomic UAVs) on the in-process native compute translation route (translate_compute_natively), matchingformat_compute_runtime_manifest(uav <i> tex2d|tex3d uint table <param> <off> channels 1) and the published-manifest Dispatch path.Changes
src/startup_stubs/d3d12_compute_dispatch.inl:ComputeViewKind::uint_texture_uavwithimage_dimension1 (TEXTURE2D) or 2 (TEXTURE3D) intranslate_compute_natively, settingslot.atomic_uint_texture = true(leaving 1D and 2D-array dimensions refused, matchingformat_compute_runtime_manifestand the manifest reader).tests/native_image_atomic_check.pyandtests/cmake/native_image_atomic.cmake:runtime_nativemode (X2W_NATIVE_SHADERS,X2W_NATIVE_SHADERS_ONLY=1, no published.cs.csoor<key>.txt) registered asnative_image_atomic_runtime_native_hardware.R32_UINTUAV, plus the negative control that a float UAV is refused withan image atomic requires an R32_UINT UAVand stays unchanged.tests/standin_exports_check.py:x2w_d3d12_compute_censusinsrc/startup_stubs/d3d12_compute_dispatch.inlfrom the source file instead of hardcoding:1744.Verification
8ba7b471(based onmain158ef794)10.0.26300.9974), MSVC19.44.35230, Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled (no error messages).Commands and results
dev(Debug):native_image_atomic_controls: Passed (1.54 s)native_image_atomic_warp: Skipped (77) —shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wavenative_image_atomic_hardware: Passed (3.61 s, RTX 5080,debug_errors=0 debug_warnings=0)native_image_atomic_runtime_hardware: Passed (2.10 s, RTX 5080, debug layer clean)native_image_atomic_runtime_native_hardware: Passed (1.80 s, RTX 5080, debug layer clean)release(/O2):native_image_atomic_controls: Passednative_image_atomic_warp: Skipped (77) —shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wavenative_image_atomic_hardware: Passed (3.73 s, RTX 5080,debug_errors=0 debug_warnings=0)native_image_atomic_runtime_hardware: Passed (2.17 s, RTX 5080, debug layer clean)native_image_atomic_runtime_native_hardware: Passed (1.84 s, RTX 5080, debug layer clean)Fail-first / mutation control
Reverting the
d3d12_compute_dispatch.inlhunk and rebuildingd3d12_xs_shimfailsnative_image_atomic_runtime_native_hardware(view kind 21 is not bound for a natively translated program).Pure-Python checks
standin_exports: 470 cases, 6/6 mutations killed PASSdocs_links_check.py:Self-test passed. Checked 225 Markdown files and 874 links.bidi_controls_check.py:Self-test passed. Checked 2877 tracked source, script and build/CI files: no bidirectional controls.Scope note
This verifies source-built gfx1013 image-atomic compute fixtures through the stand-in D3D12 runtime on the RTX 5080 and WARP; it does not establish full-title startup or frame rate.
AI-assisted.
@Leyukaka on GitHub · 2026-12-01 21:57 UTC · original · reviewed
Reviewed
8ba7b4716. Thanks for the change. The new runtime test attests/native_image_atomic_check.py:182checks a 2D integer UAV and a float-format refusal. This change also enables native 3D integer UAVs atsrc/startup_stubs/d3d12_compute_dispatch.inl:627, which use a separate view and slice-range validation path. The existing 3D container test supplies its own UAV and bypasses this binding path, so the test suite would stay green if the 3D binding were disabled or selected the wrong slice. Please add an in-process 3D dispatch with readback from a selected slice and unchanged neighboring slices.@R0D4X on GitHub · 2026-12-01 23:12 UTC · original
Added in-process 3D
R32_UINTimage-atomic dispatch and slice-range validation coverage in7bf77972:texture-volume-atomicandtexture-volume-atomic-bad-wmodes intests/startup_stream_consumer.cpp(6-slice mip-1 3DR32_UINTvolume initialized with distinct per-texel words, bound withFirstWSlice = 1,WSize = ~0ufor the positive case andWSize = 6for the out-of-range control).runtime_nativeintests/native_image_atomic_check.pyto dispatch a 3D (dim=2)image_atomic_addat(x=5, y=6, z=1)throughtranslate_compute_natively(no published.cs.csoor.txt), reading back all 1,536 words across all 6 slices and verifying that physical slice 2 (FirstWSlice(1) + z(1)) incremented by+32while neighboring slices0, 1, 3, 4, 5remained completely unchanged.texture-volume-atomic-bad-wis refused at dispatch time and leaves all 1,536 words unchanged.Re-verified on
dev(Debug) andrelease(/O2) on Windows 11 (10.0.26300.9974), RTX 5080 (32.0.16.2140), D3D12 debug layer enabled (no error messages):native_image_atomic_runtime_native_hardware: Passed (release2.35 s,In-process native DXIL matched 2D (256 words) and 3D slice 2 (1536 words, neighbors 0,1,3,4,5 unchanged, bad-w refused); debug layer enabled, no error message / enabled, no error message).