Stream output capture wip #1924

Closed
github-bot wants to merge 4 commits from gh-pr/1924/head into gh-pr/1924/base
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 15:54 UTC · original
BubsMcgee:stream-output-capture-wip → main · +338 −32 · 11 files · 4 commits · closed without merging

Claimed in the coordination issue as:

Depends on:

Fixes:

What and why

Tested

GPUs tested:

AI-assisted:

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • 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.
**@⁠BubsMcgee** on GitHub · 2026-11-25 15:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1924) `BubsMcgee:stream-output-capture-wip` → `main` · +338 −32 · 11 files · 4 commits · closed without merging Claimed in the coordination issue as: <!-- the item ID from the open "Coordinating who works on what" issue, for example TEST-17, or a link to your claim --> Depends on: <!-- #N for every pull request this one builds on or conflicts with (the coordination issue's Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> Fixes: <!-- #N for each issue this closes (GitHub closes it on merge); delete the line if it closes none --> ### What and why <!-- What this changes and the problem it solves. --> ### Tested <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders translate and pass spirv-val, before and after. --> GPUs tested: <!-- vendor, model, driver and OS of each GPU the GPU tests ran on, or n/a --> AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> ### Checklist - [ ] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [ ] One topic; follow-up work goes in a new pull request. - [ ] 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.
CreateCommandSignature previously validated every argument type but
discarded all but kind and byte stride. CommandSignature stored only
kind+stride, ExecuteIndirect recorded minimal state, and the Vulkan
replay applied no argument bindings before indirect draws, so a
signature like [VERTEX_BUFFER_VIEW, DRAW] drew with whatever vertex
buffer happened to be bound.

- d3d12_com.h: create_command_signature / command_signature_info carry
  argument types and root signature
- d3d12_com.cpp: CommandSignature stores argument_types_ +
  root_signature_; ExecuteIndirect reads them into the command struct
- d3d12_vulkan_device.cpp: CreateCommandSignature collects argument
  types from desc->pArgumentDescs and passes them through
- command_list.h: ExecuteIndirect gains argument_types field
- vulkan_replay.h: replay walks argument types; VERTEX_BUFFER_VIEW (5)
  and INDEX_BUFFER_VIEW (6) are read from the argument buffer via
  host_at, resolved to VkBuffer via buffer_at, and bound with
  vkCmdBindVertexBuffers2 / vkCmdBindIndexBuffer before the indirect
  draw

No game data, no keys, no GPU required for the change itself.
The runtime's device enables VK_EXT_transform_feedback whenever the extension is present, and AMD's driver makes it part of a pipeline's cache key, so the cache vk_pipeline_check seeds offline no longer hit in gta6rt: pipeline_cache_seed failed 3/3 on an RX 7900 XT (adrianmjim). Link the same VkPhysicalDeviceTransformFeedbackFeaturesEXT the runtime enables, next to the mesh-shader one, and list it with the other always-enabled extensions in the header and docs/pipeline_check.md.

Tested: pipeline_cache_seed passes on an NVIDIA RTX 3080 Ti (NVIDIA does not key on the extension, so it cannot reproduce the AMD failure). AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:11:25 +00:00
github-bot closed this pull request 2026-11-26 10:11:25 +00:00
Author
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 17:09 UTC · original

Closing this WIP as superseded. The stream-output capture path is implemented in #1884 (Miici0) and the device detect/enable base in #1891; the SO query pools are #1630. Nothing in this branch is unique and it is CONFLICTING with main, so it would only add a rebase. The branch stays on the fork if any hunk is still wanted.

**@⁠BubsMcgee** on GitHub · 2026-11-25 17:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1924#issuecomment-7169101906) Closing this WIP as superseded. The stream-output capture path is implemented in #1884 (Miici0) and the device detect/enable base in #1891; the SO query pools are #1630. Nothing in this branch is unique and it is CONFLICTING with main, so it would only add a rebase. The branch stays on the fork if any hunk is still wanted.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.