diff options
| author | Mike7581 <168859477+Mike7581@users.noreply.github.com> | 2026-11-25 00:53:00 -0300 |
|---|---|---|
| committer | Mike7581 <168859477+Mike7581@users.noreply.github.com> | 2026-11-25 21:35:10 -0300 |
| commit | 78159b88658f5a923a67b1b5c5380258a669ca39 (patch) | |
| tree | 1b1396dd25dc54de1b0f03529a4df833c21ad58e /runtime/src/xma2_decoder.cpp | |
| parent | 61732aca16fb0d63deb5e9987f9758d4e6ce0228 (diff) | |
d3d12: LEONIDA_STUB_PIPELINES builds a real graphics pipeline from built-in stages (MVP-GPU-04)
A graphics PSO whose translated shader is missing used to be created with no Vulkan pipeline and never
registered. Its draws did not become no-ops as the comment said: record_draw refused them, so the whole
list failed to close.
Now a vertex pipeline with a missing translation (no shader library, or no entry for its FSSM/FSPX
program) takes a vertex and a pixel stage from src/stub_pipeline.h and goes through the normal
create_graphics path: registered, built eagerly, drawn through replay and the validation layer.
- LEONIDA_STUB_PIPELINES=1: the vertex stage puts every vertex outside the clip volume, so a draw
changes no pixel (the old intent), but the render pass, attachments and push constants are real.
- LEONIDA_STUB_PIPELINES=color: every three vertices cover the viewport and the pixel stage writes
magenta (1 to UINT/SINT targets) to each render target, so stubbed passes show on screen.
- Point-list PSOs get a PointSize write; the vertex stage's Position is a bare output, so
rect_list_geometry takes it.
- Compute and mesh stubs stay unregistered; record_draw and DispatchMesh now skip a draw on an
unregistered pipeline as record_dispatch already did, instead of failing the list.
d3d12_stub_draw_test draws with both modes into an RGBA8 and an R32_UINT target and reads them back;
d3d12_stub_pipelines_test now expects a registered pipeline. docs/boot.md describes the switch.
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions