Repository navigation
Support R10G10B10_XR_BIAS_A2_UNORM textures - #739
Conversation
|
Tested
AI-assisted (Claude Code). |
|
Tested
PR head as-is, no game files. AI-assisted. |
|
Tested b149168 on NVIDIA GeForce RTX 3060, driver 596.36, Windows 10 Pro 19045: pass, once the Windows 10 footprint skip from #717 is present.
One Windows 10 limit to know about: On current Validation: the stock harness on this base counted a loader error from a stale implicit-layer manifest on this machine (TEST-98), so the validation result above is with that count filter applied locally (#741, now on Not run: the |
quackottu
left a comment
There was a problem hiding this comment.
Tested b149168 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: 100% tests passed, 0 tests failed out of 29d3d12_method_variants_test(changed here): exit=0 validation=0 | [rt] d3d12: castable formats refused (no relaxed format casting); count 2d3d12_vulkan_device_test(changed here): exit=0 validation=0 | [rt] d3d12: Vulkan device: NVIDIA GeForce RTX 5070 (maxPushConstantsSize: 256 bytes)- 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 addresses
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
b149168 to
ab1ff9f
Compare
Map XR_BIAS to the bit-compatible A2B10G10R10 UNORM Vulkan format, report only the 2D and cast-within-bit-layout support the layer provides, and refuse the mip, MSAA and 3D cases the PC runtime refuses. Test creation, allocation, footprints and the resource-method variants.
ab1ff9f to
2f945d7
Compare
|
Tested 2f945d7 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).
The |
# Conflicts: # docs/d3d12_vulkan.md # runtime/shims/d3d12_vulkan_device.cpp
Summary
R10G10B10_XR_BIAS_A2_UNORMtoVK_FORMAT_A2B10G10R10_UNORM_PACK32. XR_BIAS uses the same packed 10:10:10:2 layout; the bias and scale are the application shader's work.GetCopyableFootprints.TEXTURE2D | CAST_WITHIN_BIT_LAYOUTfor format support. The layer does not claim the host's display, back-buffer-cast or video-processor bits.CreateCommittedResource1/2/3method variants.Refs #634 (D3D-61).
Tests
d3d12_vulkan_device_testwithLEONIDA_VK_VALIDATION=1on an RTX 5070: passed, including the host footprint and allocation comparisons.d3d12_method_variants_test: passed.