From 0e60918e4dadfea7029d7bde80c277be34290933 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 6 Jan 2021 12:04:13 +0000 Subject: [PATCH] Combine/ignore the same usage from the same event * This can happen if the same resource is used in a barrier more than once (e.g. multiple subresources) --- qrenderdoc/Code/QRDUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 9d0ec0f8f..551197231 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -1367,6 +1367,9 @@ void CombineUsageEvents(ICaptureContext &ctx, const rdcarray &usage, us = u.usage; } + if(u.usage == us && u.eventId == end) + continue; + const DrawcallDescription *draw = ctx.GetDrawcall(u.eventId); bool distinct = false;