baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
9.06k stars 1.35k forks source link

Incorrect command buffer used on Vulkan AS copy replay #3482

Closed cmannett85-arm closed 1 week ago

cmannett85-arm commented 1 week ago

Previously Serialise_vkCmdCopyAccelerationStructureKHR(..) and Serialise_vkCmdCopyMemoryToAccelerationStructureKHR(..) would just use the command buffer used in the deserialised API call. This is not correct, it should use the 'rerecord' one when in active replay state.

This had the effect of the wrong command buffer being used on replay resulting in the copy command being used on a command buffer not in the recordng state.