Repository navigation
docs: runtime prior art for the first frame (vkd3d-proton, DXVK, Wine, RADV, shadPS4, Xenia, SDL3) - #6457
Closed
Kam471 wants to merge 1 commit into
Closed
docs: runtime prior art for the first frame (vkd3d-proton, DXVK, Wine, RADV, shadPS4, Xenia, SDL3)#6457Kam471 wants to merge 1 commit into
Kam471 wants to merge 1 commit into
Conversation
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.
This was referenced Nov 23, 2026
|
Tested 32276fd on Linux, Python 3.14.4: pass
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #6214 (comment)
Depends on: none.
What and why
Adds one section to
docs/related_projects.mdthat records what the D3D12→Vulkan layer, its present path, itswave64 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:
shaderFloat64+ FP64 denormpreservation,
logicOp,EXT_shader_stencil_export, fragment-shader interlock,shaderOutputViewportIndex && shaderOutputLayer), while this layer answers five of themTRUEunconditionally and its PSO path separatelyrefuses 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).
error; Wine bounds a non-waitable frame-latency wait to 2 s and a flip-model minimised present is
S_OK;RADV's
requiredSubgroupSizeis a pipeline key (32/64), with no 64-on-32 path.Ballot/ReadLane/MaskedBitCount32/WaveIdlowering via sharedmemory is a cheaper special case of
--wave64-emulateand confirms the two-subgroup + LDS + barrierconstruction; its
VideoOutflip queue is the closest public analogue ofPresentX(bounded queue, flip rate,blank index). Xenia's
XE_SWAP→ UI-thread present is the same "title owns the texture, host owns theswapchain" architecture.
SDL_SendJoystickEffectis the only path, and thePS5 driver implements it as the 47-byte
DS5EffectsState_tblock (trigger effects at offsets 10/21). TheGameInput shim already sends exactly that block from
SetRumbleState's trigger motors, and the lightbar/playerLEDs 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
LICENSEtext is GPLv2 but whosefile 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: thefeature-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
FramePacerqueue 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:The file is LF (
git diff --numstatshows 166 insertions, 0 deletions after the rewrite). I read the upstreamsources 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
docs/design.md, with how it was confirmed. (Not atranslator change.)