From d85cdb0a63f0083c121d6adc788d7b95dc74fa6c Mon Sep 17 00:00:00 2001 From: Locke Lin Date: Tue, 26 Nov 2024 14:14:50 -0700 Subject: [PATCH] bugfix: end is the last data not out of the data --- framework/decode/dx12_dump_resources.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/decode/dx12_dump_resources.cpp b/framework/decode/dx12_dump_resources.cpp index de46eae35..38e5c09c7 100644 --- a/framework/decode/dx12_dump_resources.cpp +++ b/framework/decode/dx12_dump_resources.cpp @@ -1038,7 +1038,7 @@ bool CaptureGPUAddrMatchDescriptorHeap(const D3D12_GPU_DESCRIPTOR_HANDLE capture auto capture_gpu_addr_end = heap_info.capture_gpu_addr_begin + heap_info.descriptor_count * increment; bool is_match = true ? (heap_info.capture_gpu_addr_begin <= capture_gpu_addr.ptr && - capture_gpu_addr.ptr < capture_gpu_addr_end) + capture_gpu_addr.ptr <= capture_gpu_addr_end) : false; if (is_match) { @@ -1062,7 +1062,7 @@ bool ReplayCPUAddrMatchDescriptorHeap(const D3D12_CPU_DESCRIPTOR_HANDLE replay_c auto replay_cpu_addr_end = heap_info.replay_cpu_addr_begin + heap_info.descriptor_count * increment; bool is_match = true ? (heap_info.replay_cpu_addr_begin <= replay_cpu_addr.ptr && - replay_cpu_addr.ptr < replay_cpu_addr_end) + replay_cpu_addr.ptr <= replay_cpu_addr_end) : false; if (is_match) {