Repository navigation
Conversation
…ature flags Align three `Shader` op builders in `gpu/dxil/ops.rs` with DXC 1.9's validator feature-flag rules: - `heap_structured_buffer`: drop spurious `Feature::RawAndStructuredBuffers` (`ResourceDescriptorHeap` structured buffers require only `ResourceHeapIndexing`, not the static raw/structured binding flag). - `Texture` / `texture_load`: record `pub ncomp: u32` on `Texture` (set in `srv_texture` and `heap_texture`) and gate `Feature::TypedUavLoadAdditionalFormats` on `tex.uav && tex.ncomp > 1` instead of `comp != U32/I32/F32`, fixing both 1-component false positives (`UNormF32`, `SNormF32`, `F16`) and multi-component `F32`/`I32`/`U32` false negatives. - `wave_all_equal`: call `self.wave_int64(v)` matching the other typed wave helpers so `Int64Ops` and `Doubles` are declared immediately on `i64`/`f64` inputs. Part of xcl-dev#1401 Part of xcl-dev#1833 Assisted-by: Google Antigravity (Gemini 4 Neon)
|
The wave64 GPU paths listed as untested, on an AMD card with native wave64, plus an RTX 3060, paired against Head
Per-test comparison: on both cards the only differences are the 3 new Not tested: the D3D12 debug layer (not installed here), a title. |
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
…#2127, xcl-dev#2476, xcl-dev#2479, xcl-dev#2467, xcl-dev#2444, xcl-dev#2447, xcl-dev#2448 Integrates compositor RT tracking fix (xcl-dev#2480), split shader cache budget (xcl-dev#2475), foreign-thread deferred release (xcl-dev#2474), Wine 4-thread DXC cap (xcl-dev#2127), DXIL feature/reload fixes (xcl-dev#2476, xcl-dev#2479), DXC loader cleanup (xcl-dev#2467), console xcl-dev#14 null ppv guard (xcl-dev#2444), root-sig flag stripping (xcl-dev#2447), and two-pass stream canonicalization (xcl-dev#2448). Assisted-by: Antigravity (Gemini 4 Neon)
bmjask
left a comment
There was a problem hiding this comment.
P1: scalar additional typed-UAV formats no longer declare TypedUavLoadAdditionalFormats. ops.rs:816-818 sets the flag only when tex.ncomp > 1, so scalar R16_FLOAT/F16 and R8_UNORM/UNormF32 typed UAV loads omit the required SFI0 capability. Only R32_FLOAT/R32_UINT/R32_SINT are universally supported; these scalar formats are additional and require the flag. The new test at ops_tests.rs:3191-3204 explicitly asserts the incorrect F16x1 and UNorm/SNormF32x1 behavior. Please predicate on base format (the universal scalar formats), not component count, and add scalar additional-format positive cases.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Thanks for reviewing! We verified this directly against Microsoft Compiling
DXIL resource metadata encodes component type + component count (not |
|
|
What is in it
Align three
Shaderop builders incrates/xcl/src/gpu/dxil/ops.rs(+5/-5) with DXC 1.9's validator feature-flag rules and add DXC 1.9 validator +SFI0coverage incrates/xcl/src/gpu/dxil/ops_tests.rs(+59/-0,69lines total):heap_structured_buffer: remove spuriousself.require(Feature::RawAndStructuredBuffers)—ResourceDescriptorHeapstructured buffers require onlyResourceHeapIndexing(1 << 30,SFI0 = 0x200_0000), not the static raw/structured binding metadata flag (1 << 4), which causeddxil.dllto reject standalone heap structured-buffer shaders withFlags must match usage.Texture/srv_texture/heap_texture/texture_load: recordpub ncomp: u32onTextureand gateFeature::TypedUavLoadAdditionalFormats(1 << 13,SFI0 = 0x800) ontex.uav && tex.ncomp > 1instead oftex.comp != U32/I32/F32, fixing both 1-component false positives (UNormF32,SNormF32,F16) and multi-componentF32/I32/U32false negatives without removingtyped_uav_load_additional_formats().wave_all_equal: callself.wave_int64(v)matching the other typed wave helpers soFeature::Int64OpsandFeature::Doublesare recorded immediately oni64/f64inputs.Part of #1401
Part of #1833
Tested
origin/main(9ba6804f, DXC/dxil1.9.2609.5):cargo test -p xcl --lib gpu::dxil::ops_tests::ops_feature_flags -- --test-threads=1 --nocapturefailed3of3(ops_feature_flags_heap_structured_bufferrejecteddeclared=1073741840, actual=1073741824;ops_feature_flags_typed_uav_texture_loadrejecteddeclared=1073741824, actual=1073750016;ops_feature_flags_wave_all_equal_64bitmissedInt64Ops16384 != 49152).gpu::dxil::ops_tests(c20e5829, rebased ontoorigin/main06055a7a, DXC/dxil1.9.2609.5):cargo test --release -p xcl --lib gpu::dxil::ops_tests -- --test-threads=1 --nocapture):27 passed; 0 failed; 0 ignored(0.33 s,0skips).XCL_ADAPTER=warp cargo test --release -p xcl --lib gpu::dxil::ops_tests -- --test-threads=1 --nocapture):27 passed; 0 failed; 0 ignored(0.06 s;0skips on all 3 new pure-CPU/DXC 1.9 tests, pre-existing GPU dispatch tests skip cleanly withno wave32).cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture, RTX 4060):37test binaries,1416 passed; 0 failed; 46 ignored(183/183gpu::dxil::*).29pre-existingSKIPPEDlines on this RTX 4060 host (21no wave64,3per-lane wave32 refused,3no D3D12 debug layer /d3d12SDKLayers.dll,1no heap windows,1cannot disable driver cache;0skipped ingpu::dxil::ops_tests).Regression run
Paired 60 s RTX 4060 smoke (
scripts/smoke.ps1 -Seconds 60) on baseorigin/mainvs PR head (1539vs1466frames =105.0%,60 60 60steady pace,0device removals,0crashes):Base (
origin/main):PR head:
Not tested
21pre-existing wave64 tests skip on RTX 4060 wave32-only hardware; all feature-flag cases are validated directly by DXC/dxil1.9.2609.5andSFI0assertions).d3d12SDKLayers.dllnot installed on this host).AI use
Written and verified with Google Antigravity (Gemini 4 Neon). All changes were validated locally with failing-first DXC 1.9 tests, full release workspace tests, and paired 60 s RTX 4060 smoke runs.