shader: translate for the host's subgroups and float controls #169
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!169
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-169"
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/shader-host→main· +208 −60 · 17 files · 2 commits · merged 2026-12-02 19:56 UTCWhat
vkback tells the translators its device (
shader::Host, read once at device creation):--host LANES,RDNA) and victory-gpu (OP_INIT) get the widest subgroup and whether it is AMD hardware. A host of 32 lanes gets the console's 64-lane programs written for 32.--device MIN,MAX,D16,D64) gets the subgroup range and DenormPreserve for 16 and 64 bits. It was told RADV's whatever the device.pipejob::stage_size).cache_folder): every host translates once more after this.The reference
vkd3d-proton passes the device's float controls and subgroup sizes to dxil-spirv (
vkd3d_shader_interfacesetup ind3d12_pipeline_state_init_computeand the graphics twin).Evidence
TRANSLATOR_VERSIONis not bumped for that reason.VUID-RuntimeSpirv-shaderDenormPreserveFloat64-06298before--device, gone with it; no other shader error.cache_folderdiffers per host (shader/tests.rs), translator unit tests.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29)unsafeblock has a// SAFETY:comment (rule 36): no newunsafeTRANSLATOR_VERSION: not bumped, the default host's output is unchanged (rule 27)@vktory6 on GitHub · 2026-12-02 19:56 UTC · original
Merged, thanks. We shortened one comment in lower.rs so the file stays at its listed size (it is on the oversize list and may not grow). On the reference card: the whole-store DXIL diff translates all 19,112 shaders with 0 failures and 0 changed (RDNA keeps its 64-lane programs as before), and the card tests pass (343). The translator now takes the host's subgroup size and float controls as an input, which is what the 32-lane work in #180 builds on.
Where the translator goes from here (the wave model on 32-lane hosts, DXIL/SPIR-V emission, card tests) is being discussed in https://github.com/vktory6/VKtory/discussions/270.