dxil: mark UAVs as Rasterizer-Ordered Views in POPS pixel shaders #1949
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1949
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1949/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?
@raylitebull on GitHub · 2026-11-24 23:48 UTC · original
raylitebull:feat/pops-rov→main· +138 −8 · 4 files · 1 commits · merged 2026-11-25 01:58 UTCMarks UAV handles as Rasterizer-Ordered Views (
IsROV) and sets the DXILRovsshader feature/flag (0x1000/ bit 18) when compiling Primitive Ordered Pixel Shading (POPS) pixel shaders in the direct RDNA2 -> DXIL translator, preserving primitive-ordered UAV accesses on D3D12 instead of unordered writes.Part of #1269 and #1833.
What is in it
crates/xcl/src/gpu/dxil/kernel.rs(uses_pops): detect POPS pixel shaders (Stage::Pixel) readingsrc_pops_exiting_wave_id(operand 239) or accessingHW_REG_POPS_PACKER(25), and enable ROV marking vias.enable_rov().crates/xcl/src/gpu/dxil/ops.rs&module.rs: addFeature::Rovs(shader feature flag0x1000/ tag18),Binding.rov,has_rov_handle(), andDxilModule::annotate_uav(..., rov: bool)emitting theIsROV(0x2000) annotation flag ondx.op.annotateHandle.crates/xcl/src/gpu/dxil/shader.rs: propagaterovinto UAV resource bindings, heap UAV annotations, andFeature::Rovsemission whenrovbindings orhas_rov_handle()are present; add 3dxil.dll 1.8-validated unit tests inpops_rov_tests(pops_pixel_shader_marks_uavs_as_rov_and_validates,pops_pixel_shader_without_uavs_on_heap_windows_validates_cleanly,non_pops_pixel_shader_does_not_mark_rovs).Tested
10.0.22631.0),rustc 1.99.1 (58cf8f9c3 2026-10-13), DXC1.8.2502.11, rebased onto62265d3(1f8d4be).cargo check --workspace --testsandcargo test -p xcl --lib pops(3 passed, 0 failed;dxil.dll 1.8validation passing across all 3pops_rov_testscases).1f8d4be(@futurepro62, driver621.40,rustc 1.100.0, DXC1.9.2602.17):XCL_REQUIRE_GPU=mesh cargo test --workspacepassed979/0/43(with pre-existing#1651/fuzz_testsskipped on both base and PR), including all 3pops_rov_tests.scripts/smoke.ps1pair on1f8d4bevs62265d3(@Anon64, driver581.80, release):1610/1629frames,0device removals,0crashes.Regression run
60 s
scripts/smoke.ps1pair on NVIDIA GeForce RTX 3060 (Windows 11 26200, driver581.80, release,XCL_NETWORK=0), contributed by @Anon64:main:
PR:
Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 23:58 UTC · original · edited 2026-11-25 00:12 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
1f8d4be(on its base62265d3).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests: 979 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.pops_pixel_shader_marks_uavs_as_rov_and_validates,pops_pixel_shader_without_uavs_on_heap_windows_validates_cleanly,non_pops_pixel_shader_does_not_mark_rovs.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 988 passed, 0 failed, 45 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main62265d3too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@Anon64 on GitHub · 2026-11-25 00:18 UTC · original
Regression run for this PR: head
1f8d4be, based onmain62265d3. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, in one batch with themainrun.main
62265d3:this PR:
No device removals or crashes; 98 % of main's frames, 102 % of its peak commit.
Not tested: the whole suite; the direct DXIL path this PR changes (these runs use the default HLSL path,
XCL_DIRECT_DXILunset).Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@raylitebull on GitHub · 2026-11-25 00:20 UTC · original
@Anon64 Thank you for the RTX 3060 60 s regression pair on
1f8d4be(1610/1629 frames, 0 removals/crashes) — absorbed into the PR description! Also thanks @futurepro62 for the RTX 5070 Ti full-suite pass (979/0/43). Independent AMD verification is still invited before merging.@DavidM1911 on GitHub · 2026-11-25 02:50 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!