vkback: D32_SFLOAT_S8_UINT where the device has no D16_UNORM_S8_UINT #170
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!170
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-170"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@360900 on GitHub · 2026-12-01 23:12 UTC · original
360900:feat/d16s8-stand-in→main· +82 −3 · 7 files · 1 commits · merged 2026-12-02 19:43 UTCWhat
make_imagerefuses a format the device lacks instead of creating it (undefined; NVIDIA's driver divides by zero at the clear).VK_EXT_depth_bias_controlwith the UNORM representation forced and the constant factor times 256.VKB_NO_D16S8=1runs the stand-in on a device that has the format (rule 38). The log names the path.The reference
vkd3d-proton
vkd3d_get_depth_bias_representation(vkd3d_private.h) forces the UNORM representation for D16 and D24 the same way; its D24 on D32 stand-in is the same choice of format. The existing D24 mapping is left as it is.Evidence
a_float_stand_in_for_16_bit_depth_keeps_the_bias_unit(the productionpipejob::depth_bias).VKB_NO_D16S8=1.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29)VKB_NO_D16S8(test)unsafeblock has a// SAFETY:comment (rule 36): no newunsafeTRANSLATOR_VERSION: the translator is not touched (rule 27)@vktory6 on GitHub · 2026-12-02 19:43 UTC · original
Merged, thanks. Checked together with the rest of the NVIDIA set on the reference card (RX 9070 XT): unit tests pass, and a house validation run with all six applied showed no new validation errors, no device loss and the expected counters.
One note for the record: the reference card has D16_UNORM_S8_UINT, so that run took the native path. The stand-in path (
VKB_NO_D16S8=1, D32_SFLOAT_S8_UINT with the forced UNORM bias representation) is not tested on our card yet; your NVIDIA runs are its only evidence so far. A report from a run withVKB_NO_D16S8=1on RADV is welcome.