From 9332bd34f9672d5fa0ed4d8e899ae9e67bbad1c6 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 21 May 2024 23:47:15 +0100 Subject: [PATCH] Fix handling of AS copies --- renderdoc/driver/d3d12/d3d12_command_list4_wrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/d3d12/d3d12_command_list4_wrap.cpp b/renderdoc/driver/d3d12/d3d12_command_list4_wrap.cpp index c0b463dab..fb99a517d 100644 --- a/renderdoc/driver/d3d12/d3d12_command_list4_wrap.cpp +++ b/renderdoc/driver/d3d12/d3d12_command_list4_wrap.cpp @@ -1273,8 +1273,8 @@ void WrappedID3D12GraphicsCommandList::CopyRaytracingAccelerationStructure( WrappedID3D12Resource::GetResIDFromAddr(DestAccelerationStructureData, destASBId, destASBOffset); - if(Mode != D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE && - Mode != D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS) + if(Mode == D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE || + Mode == D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS) { // these outputs are not ASs themselves, so we don't need to do any further tracking }