Repository navigation
Honor native RGB9E5 render-target support in the D3D12 shim - #1375
Conversation
Radeon advertises a color attachment for shared-exponent textures. Allow the native path to create the resource and RTV while keeping the mutable R32 UAV backing unavailable for render targets.
|
Cross-reference: #1388 proposes masking the feature bits on every adapter after reproducing the original test failure on RDNA4. I requested a native RX 9070 D3D12 query, resource creation and packed readback so we can compare RDNA4 against the measured RDNA2, WARP and RTX results. |
|
Heads-up: #1388 changes the same R9G9B9E5_SHAREDEXP render-target reporting in |
|
Tested 217fbf5 on NVIDIA GeForce RTX 3090 (Ampere), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass, but the new native path isn't reachable on NVIDIA. The PR's diff applied cleanly to
#1388 changes the same |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51), as data for the #1375/#1388 conflict: |
|
Tested 217fbf5 merged onto current main (c2967a5) (clean merge) on RTX 5070 (Blackwell, subgroup 32..32), NVIDIA 616.56, Windows 11 Pro 26200, MSVC 19.50, Vulkan SDK 1.4.363.0: pass.
|
|
A data point for D3D-158 vs D3D-160 (#1375 / #1388):
So on AI-assisted (Claude Code). |
Claimed in the coordination issue as native shared-exponent render targets.
What and why
On Radeon RDNA2 the shim advertises RENDER_TARGET for R9G9B9E5_SHAREDEXP but refuses the matching committed resource and nulls its RTV. Allow a native color attachment when supported. A combined RTV/UAV requires native support for both usages. The RTX 5080 mutable R32_UINT fallback remains limited to UAV use.
Tested
Base f85582e on Windows, Radeon gfx1036 (32.0.21045.16010, Vulkan 1.4.315). The new clear case failed at CreateCommittedResource and the allocation test also failed. On 217fbf5 both pass under core and synchronization validation. A full clear to RGB (1,2,4) and a rectangle at (1,1) to (4,2,1) produced 0x94010040 and 0x91010100 respectively at all 15 expected positions. Native Windows D3D12 on the same Radeon and WARP independently produced those words. Swapping red and blue in the rectangle input failed at the predicted first texel (1,1), with 0x94010040 instead of 0x91010100.
On RTX 5080 (616.92, Vulkan 1.4.351), both native D3D12 and Leonida report no RGB9E5 render target. The focused clear test skipped and the allocation/UAV rejection test passed. The broader, unregistered clear comparison passes on Radeon and still reports three separate mismatches against WARP on RTX (RGBA8 UNORM, RGBA8 SNORM and D16). Only synthetic clear/copy/readback was exercised.
Checklist
AI-assisted.