Skip to content

Stream output capture wip - #1924

Closed
BubsMcgee wants to merge 4 commits into
ProjectLeonida:mainfrom
BubsMcgee:stream-output-capture-wip
Closed

BubsMcgee wants to merge 4 commits into
ProjectLeonida:mainfrom
BubsMcgee:stream-output-capture-wip

Conversation

@BubsMcgee

Copy link
Copy Markdown
Contributor

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.

…/INDEX_BUFFER_VIEW state

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.
@BubsMcgee

Copy link
Copy Markdown
Contributor Author

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 BubsMcgee closed this Nov 25, 2026
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.

1 participant