MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Trim

Method Trim

layers/sync/sync_submit.cpp:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282QueueBatchContext::~QueueBatchContext() { sync_state_.stats.RemoveQueueBatchContext(); }
283
284void QueueBatchContext::Trim() {
285 // Clean up unneeded access context contents and log information
286 access_context_.TrimAndClearFirstAccess();
287
288 ResourceUsageTagSet used_tags;
289 access_context_.AddReferencedTags(used_tags);
290
291 // Note: AccessContexts in the SyncEventsState are trimmed when created.
292 events_context_.AddReferencedTags(used_tags);
293
294 // Only conserve AccessLog references that are referenced by used_tags
295 batch_log_.Trim(used_tags);
296}
297
298void QueueBatchContext::ResolveSubmittedCommandBuffer(const AccessContext& recorded_context, ResourceUsageTag offset) {
299 GetCurrentAccessContext().ResolveFromContext(QueueTagOffsetBarrierAction(GetQueueId(), offset), recorded_context);

Callers 6

ApplySignalsUpdateMethod · 0.80
ApplyTaggedWaitMethod · 0.80
ApplyAcquireWaitMethod · 0.80
SetLastBatchMethod · 0.80

Calls 8

AddReferencedTagsMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
lower_boundMethod · 0.45

Tested by

no test coverage detected