Repository navigation
Conversation
|
Heads-up before anyone tests this: the diff at
It looks like part of the stream-output work was pushed to |
…/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.
13774f4 to
fe916f5
Compare
|
Thanks @adrianmjim — confirmed and fixed. The branch had accidentally picked up stream-output code, and the actual indirect-state-args work was sitting in a local stash. I force-updated |
|
Closing as superseded. Main's The remaining work — replaying AI-assisted. |
Claimed in the coordination issue as: INDIRECT-STATE-ARGS
Depends on:
Fixes:
What and why
CommandSignature stored only indirect kind and byte stride, dropping every argument descriptor (VERTEX_BUFFER_VIEW, INDEX_BUFFER_VIEW, root constants, descriptor views). ExecuteIndirect recorded minimal state and the Vulkan replay applied no argument bindings, so a signature like [VERTEX_BUFFER_VIEW, DRAW] drew with whatever vertex buffer was already bound. This stores argument types from CreateCommandSignature through ExecuteIndirect into the replay, which reads VERTEX_BUFFER_VIEW and INDEX_BUFFER_VIEW values from the argument buffer and binds the matching VkBuffer before the indirect draw.
Tested
Build check only — no GPU available for vkCmdDrawIndirect validation; host-parity validation cases in d3d12_execute_indirect_validation_test.cpp can be added for signatures with vertex/index buffer arguments.
GPUs tested: n/a
AI-assisted: yes
Checklist