Repository navigation
D3D-86: report unaligned BC texture support through OPTIONS8 - #715
Conversation
The Vulkan path can sample a top-level mip with partial edge blocks, but callers querying OPTIONS8 receive E_INVALIDARG. Report the logical device's enabled BC feature so callers can select the matching upload path.
|
CI on 00fef11 has eight passing checks, including the Windows runtime build and Linux GPU tools. The remaining check stops at Build rpf9dump with CS1061 for ArchiveEntry.ResourceDrawableOffset in Program.cs at (124,61) and (147,50). I checked the failing logs on this PR and its main parent 762893f; both report those same errors at those locations. The local standalone Vulkan device also returned S_OK/TRUE for OPTIONS8 on the RTX 5080. PR check · Parent check |
|
Independent Windows/Vulkan test — RTX 3090 Tested All five selected tests passed.
Both GPU executables ran with The 64×64 small BC1 allocation reported 8,192 bytes through the Vulkan-backed device and 4,096 bytes through native D3D12, with 4,096-byte alignment on both. I reran AI-assisted test run. No game files were used. |
Keep the upstream 3D texture uploads alongside the unaligned BC sample and preserve the expanded feature-query documentation.
|
Merged main 8df277f normally into this branch. On 4859a80 all 10 GitHub checks passed, including Windows runtime and Wine. The descriptor test keeps both main's volume uploads and this PR's unaligned BC1 upload. On RTX 5080 (616.92) with validation enabled the stock descriptor test passed all 64 BC1 samples. Changing only the texture dimensions from 7×5 to 8×8 gave 22/64 mismatches. The four targeted CTests passed with their default settings. With synchronization validation enabled, the separate device test still reports main's copy hazards on Radeon and RTX; both passed the same test on the copy-order fix in #782. On Radeon (26.10.1), the unchanged descriptor test stops before these samples at main's D24 backing-format expectation. Repeating with only that expectation made backing-aware as in #767 gave 64/64 correct BC1 samples through the unmodified 4859a80 runtime. |
quackottu
left a comment
There was a problem hiding this comment.
Tested 4859a80 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 97% tests passed, 1 tests failed out of 31d3d12_descriptor_test(changed here): exit=0 validation=0 | [rt] d3d12_xs: device slot 36 (forwarded) first calld3d12_vulkan_device_test(changed here): exit=1 validation=0 | 10 validation errors- 30 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (format 28 case 0 byte 2: Vulkan 7f, WARP 80) exactly as onmain67204bf, so not from this PR: NVIDIA rounds a 0.5 UNORM clear to 0x7f, which #521 addressesd3d12_vulkan_device_testreports 10 synchronization-validation WRITE_AFTER_WRITE hazards on back-to-back copies (so ctest'sd3d12_vulkan_devicefails).main8df277f shows the same 10 here, so not from this PR: it's @guimsolutions's finding in #634, which #782 addresses
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
Claimed in the coordination issue as D3D-86, OPTIONS8.
What and why
Callers now get a capability answer from
CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS8). The query previously returnedE_INVALIDARGeven on devices where the layer already uploads and samples a block-compressed top mip with partial edge blocks. The standalone device records whether it enabled Vulkan BC compression. Callers wrapping an existing logical device can supply the same information. Incorrect query sizes returnE_INVALIDARGbefore writing the output. Microsoft's OPTIONS8 definitionTested
762893f, the new descriptor test stopped at the four-byte query. On this branch the Xbox device proxy returnedS_OKand true. A wrapped device configured without BC support returnedS_OKand false.S_OK/TRUEfor four bytes on the RTX 5080, AMD Radeon Graphics and WARP. Sizes 0, 3, 5 and 8 returnedE_INVALIDARGand left the prefilled output unchanged on all three.d3d12_descriptor_testandd3d12_vulkan_device_testpassed on the RTX. Thedescriptor_table,d3d12_state_mapandgfx10_descriptorsCTests passed.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. No translator rule changed.