Skip to content

Commit

Permalink
Suppress budget-reservation info when unset.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernhar committed Jan 13, 2023
1 parent f458c50 commit 98c95c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/gpgmm/d3d12/ResidencyManagerD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,12 @@ namespace gpgmm::d3d12 {
gpgmm::DebugLog() << GetMemorySegmentName(segmentGroup, IsUMA()) << " GPU memory segment:";
gpgmm::DebugLog() << "\tBudget: " << GPGMM_BYTES_TO_MB(info->Budget) << " MBs ("
<< GPGMM_BYTES_TO_MB(info->CurrentUsage) << " used).";
gpgmm::DebugLog() << "\tReserved: " << GPGMM_BYTES_TO_MB(info->CurrentReservation)
<< " MBs (" << GPGMM_BYTES_TO_MB(info->AvailableForReservation)
<< " available).";

if (info->CurrentReservation == 0) {
gpgmm::DebugLog() << "\tReserved: " << GPGMM_BYTES_TO_MB(info->CurrentReservation)
<< " MBs (" << GPGMM_BYTES_TO_MB(info->AvailableForReservation)
<< " available).";
}
}

} // namespace gpgmm::d3d12

0 comments on commit 98c95c4

Please sign in to comment.