Skip to content

docs: runtime prior art for the first frame (vkd3d-proton, DXVK, Wine, RADV, shadPS4, Xenia, SDL3) - #6457

Open
Kam471 wants to merge 1 commit into
ItsNotRexed:mainfrom
Kam471:docs/related-runtime-projects
Open

Kam471 wants to merge 1 commit into
ItsNotRexed:mainfrom
Kam471:docs/related-runtime-projects

Conversation

@Kam471

@Kam471 Kam471 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #6214 (comment)

Depends on: none.

What and why

Adds one section to docs/related_projects.md that records what the D3D12→Vulkan layer, its present path, its
wave64 model and the GameInput shim can borrow from the projects named in the task: vkd3d-proton, DXVK, Wine
dxgi, Mesa RADV, shadPS4, Xenia and SDL3
. Each entry is pinned to the commit read, carries the licence, and ends
with a first-frame verdict. A closing table puts the seven borrowings in order and names the one that is
first-frame critical.

What the section says, in one line each:

  • vkd3d-proton: feature booleans are computed from the enabled Vulkan features (shaderFloat64 + FP64 denorm
    preservation, logicOp, EXT_shader_stencil_export, fragment-shader interlock, shaderOutputViewportIndex && shaderOutputLayer), while this layer answers five of them TRUE unconditionally and its PSO path separately
    refuses the same missing feature. That is the failed-PSO/black-frame case and the only borrowing that is both
    small and on the first-frame path. Also records vkd3d-proton's feature-level rule, its hard wave64 requirement,
    present occlusion + frame latency + surface-lost behaviour, the UMA memory-type test, and the transform-feedback
    and patch-shader indirect paths (both not first-frame).
  • DXVK / Wine / RADV: out-of-date and surface-lost presents are softened and recreated, not returned as an app
    error; Wine bounds a non-waitable frame-latency wait to 2 s and a flip-model minimised present is S_OK;
    RADV's requiredSubgroupSize is a pipeline key (32/64), with no 64-on-32 path.
  • shadPS4 / Xenia: shadPS4's compute-only Ballot/ReadLane/MaskedBitCount32/WaveId lowering via shared
    memory is a cheaper special case of --wave64-emulate and confirms the two-subgroup + LDS + barrier
    construction; its VideoOut flip queue is the closest public analogue of PresentX (bounded queue, flip rate,
    blank index). Xenia's XE_SWAP → UI-thread present is the same "title owns the texture, host owns the
    swapchain" architecture.
  • SDL3 / GameInput: SDL3 has no typed adaptive-trigger API; SDL_SendJoystickEffect is the only path, and the
    PS5 driver implements it as the 47-byte DS5EffectsState_t block (trigger effects at offsets 10/21). The
    GameInput shim already sends exactly that block from SetRumbleState's trigger motors, and the lightbar/player
    LEDs through SDL_SetGamepadLED, so there is nothing further to map.

No code is copied. The entries are paraphrased facts and independently written descriptions; every claim links to
the file and line range it was read in. The licences are LGPL-2.1-or-later (vkd3d-proton, Wine), zlib (DXVK,
SDL3), MIT (Mesa RADV), BSD-3-Clause (Xenia) and GPL-2.0-or-later (shadPS4, whose LICENSE text is GPLv2 but whose
file carries the "or later" SPDX header), all compatible with this project's GPL-3.0-or-later.

No code change in this PR, on purpose. The present gap the task points at is already #5689 (out-of-date,
minimised and sticky E_FAIL), and the remaining candidates are not small and unambiguous without the game: the
feature-answer audit is a behavioural choice the maintainer should make with a trace (and #5000 is already doing
the neighbouring heap tier); the surface-lost softening sits in the same functions as #5689; a bounded
FramePacer queue is not on the first frame. I did not duplicate #5689.

Tested

Docs only; no game files and no GPU. From the worktree at 561b65a83:

python -I tests/test_docs_links.py            OK (6 tests)
python -I tests/test_docs_repeated_lines.py   OK (2 tests)
python -I tests/test_docs_list_items.py       OK (2 tests)
python -I tests/test_docs_table_rows.py       OK (2 tests)
python -I tests/test_docs_repo_paths.py       OK (3 tests)
python -I tests/test_text_encoding.py         OK (2 tests)
git diff --check                              clean

The file is LF (git diff --numstat shows 166 insertions, 0 deletions after the rewrite). I read the upstream
sources at the pins named in the section; no upstream tree was copied into the repository.

AI-assisted: yes (DeepSeek V4.1 Flash, OpenCode). I read the upstream files and wrote the section; no generated
claim was left without a file/line reference.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not a
    translator change.)

Records what the D3D12-to-Vulkan layer, its present path, its wave64 model and the GameInput shim can borrow from vkd3d-proton, DXVK, Wine dxgi, Mesa RADV, shadPS4, Xenia and SDL3, pinned to the commits read. Each entry names the licence and whether it applies to the first frame; no code is copied.
@YordiLorenzo

Copy link
Copy Markdown

Tested 32276fd on Linux, Python 3.14.4: pass

  • The six doc tests from the PR body on the head: all OK
  • Merged onto main 6a9ada0: OK, except test_docs_links, which fails on main alone too (two links in other pages)

Stale since today: docs/related_projects.md:148 and :177 say the five OPTIONS booleans are always TRUE and UMA is always FALSE, but #6578 and #6569 changed both. So the row at :282 and step (1) at :290 are already done. Fix: point them at those two PRs.

Also :171 reads as if #5689 is in, it is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants