Home
last modified time | relevance | path

Searched refs:segmentInfo (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResidencyManagerD3D12.cpp97 MemorySegmentInfo* segmentInfo = GetMemorySegmentInfo(segment); in SetExternalMemoryReservation() local
99 segmentInfo->externalRequest = requestedReservationSize; in SetExternalMemoryReservation()
101 UpdateMemorySegmentInfo(segmentInfo); in SetExternalMemoryReservation()
103 return segmentInfo->externalReservation; in SetExternalMemoryReservation()
113 void ResidencyManager::UpdateMemorySegmentInfo(MemorySegmentInfo* segmentInfo) { in UpdateMemorySegmentInfo() argument
118 ->QueryVideoMemoryInfo(0, segmentInfo->dxgiSegment, &queryVideoMemoryInfo); in UpdateMemorySegmentInfo()
126 segmentInfo->externalReservation = in UpdateMemorySegmentInfo()
127 std::min(queryVideoMemoryInfo.Budget / 2, segmentInfo->externalRequest); in UpdateMemorySegmentInfo()
129 segmentInfo->usage = queryVideoMemoryInfo.CurrentUsage - segmentInfo->externalReservation; in UpdateMemorySegmentInfo()
141 segmentInfo->budget = in UpdateMemorySegmentInfo()
[all …]
DResidencyManagerD3D12.h72 void UpdateMemorySegmentInfo(MemorySegmentInfo* segmentInfo);