diff options
| author | Coen <coen@graafstal.com> | 2026-11-23 23:18:39 +0100 |
|---|---|---|
| committer | Coen <coen@graafstal.com> | 2026-11-23 23:18:39 +0100 |
| commit | c48a663a82e1db7fb9d8a1d1573145e5dcf1ee0a (patch) | |
| tree | 2d8a2dc0c060efa70584ad4e5426abc7801d1612 /runtime/src/main.cpp | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
d3d12/spirv_f16_halves: fix linker fast-path, Private decorations, and device location budget
Fixes four bugs in --f16-interp-fallback per-pipeline linking:
1. link_f16_halves() no longer skips patching on its fast path when static
VS/PS half locations exceed top_location or when an unused VS static half
collides with a raw PS input location.
2. Demoting an unused VS static half Output variable to Private now strips
all interface-only decorations (NoPerspective, Flat, Patch, Centroid,
Sample, Invariant, Location, Component), avoiding invalid SPIR-V.
3. keep_ps_locs now preserves raw PS input locations (ps_raw_locs) when
picking relocation slots.
4. CreateGraphicsPipelineState now runs link_f16_halves() when only VS
declares f16_halves and derives top_location from the physical device's
min(maxVertexOutputComponents, maxFragmentInputComponents) instead of
hardcoding 29.
Adds regression tests (cases 6-10) and interface-only decoration validation
in runtime/test/spirv_f16_halves_test.cpp.
AI-assisted (Antigravity).
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions