Repository navigation
D3D-81: sample A8_UNORM textures through the alpha channel - #674
Conversation
|
Tested 3dde44e (and before it ed7e1ea; the shim change is the same in both) on an NVIDIA GeForce RTX 4090 (driver 617.14), Windows 10 22H2, MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0,
Format support compared with the host runtime. On the same RTX 4090, the native D3D12 runtime reports for
Since render targets are refused, a short note in AI-assisted (Claude Code); repository tests and a small native |
|
Code review at |
|
@Derpbeat and @matheuskshn, |
|
Tested e9a8203 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with
Implicit Vulkan layers (overlays) were off through an empty |
|
Could a maintainer rerun just the failed Wine job on I reran the exact Windows artifacts from this PR, main and #736 on GitHub-hosted Ubuntu 24.04 with Wine 9, twice per artifact. Each full suite used a fresh prefix and the original six required tests. All six requirements passed in all six suites, including both runs of the previously failing artifact. Each reported 26 of 32 registered tests passing, with the same six non-required failures. The two runners used opposite orders. Main-first results · PR-first results. |
|
Tested #674 at d3d12_vulkan_device_test: All host comparisons match
ctest: 31/31 PASS with Note: Exit code 1 from AI-assisted. |
D3D-81, claimed on #634.
Single-sampled A8 textures use one byte per texel in a Vulkan R8_UNORM image. The SRV places that byte in alpha before applying the caller's component mapping. Ordinary R8 retains its red channel. The layer rejects incompatible typed views and unsupported A8 attachment, multisample and UAV requests. A separate descriptor heap holds the four A8/R8 channel-mapping views and a fifth view starting at A8 mip 1. The format query reports
MIPwhen the Vulkan physical device supports multiple levels for the backing image.Current revision
e9a8203against main8df277f. The merge keeps the shared HRESULT tracing and the 3D volume mip tests. On Windows Server 2022 with MSVC, Mesa 26.3.1 llvmpipe and Khronos validation, the descriptor test matched all 320 A8/R8 samples, the 128 volume samples and 64 samples each for B4 and B5. Native D3D12 WARP independently matched all 320 A8/R8 samples. Vulkan descriptor test · Native WARP readback.All 16 A8 footprint records matched WARP (eight subresources at two base offsets). Selecting mip 0 instead of mip 1 and removing the
MIPcapability each failed its respective assertion. The full device test on this runner exits 1 at the same three feature-query comparisons on the candidate and unmodified main: shader models 6.8 and 6.9, and root signature 1.2. Footprints and controls · Stock main comparison.Earlier revisions
Native D3D12 WARP and the refreshed head
be283d1on Mesa llvmpipe 26.3.1 / LLVM 23.1.5 produced the same result for all four views, 64 texels each. The Vulkan run used Khronos validation. Removing the A8 swizzle and removing the original null-descriptor write each failed its intended check. Native WARP · Standalone shim and controls.An automatic merge with D3D-68: verify B5G5R5A1 shader sampling and odd-width footprints #617 passed all 256 A8/R8 texels plus the existing and packed format readbacks. Native D3D12 footprint and tiling comparisons returned zero mismatches. The full device executable still exits 1 at the same resolve comparison as main because the host command list on this runner lacks
ID3D12GraphicsCommandList7. Combined run · Unmodified main.On
ff354a5, an 8×8 A8 texture carries different alpha values in mip 0 and mip 1. A view starting at mip 1 matched 64 samples across all 16 texels. The other four views still matched their 256 expected RGBA samples. Forcing the fifth view back to mip 0 or removing theMIPfeature bit failed the corresponding assertion. A native D3D12 WARP reference independently matched all 320 samples. Validated Vulkan shim · Native D3D12 WARP.Supplemental Windows integration. A scratch merge of #617, #674, #700, #736, #757 and #758 with the independent #713 dependency pin and #717 host resolve comparison change produced tree
73e526ac. On Windows Server 2022 with llvmpipe and validation, all 29 registered CTest entries passed. The descriptor test matched the 64 B5 samples, the four original A8/R8 views and all 64 A8 mip-1 samples. The device test compared 10 supported resolve cases with the host, skipped 45 unavailable cases and found zero mismatches. Eight-PR integration run.AI-assisted. Tested with synthetic 2D textures on GitHub-hosted Windows Server 2022, MSVC, native WARP and software Vulkan.