Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/gpgmm/common/MemoryAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ namespace gpgmm {
ASSERT(memory != nullptr);
memory->Ref();

// Calling memory allocator must be responsible in fully initializing the memory
// allocation. This is because we do not yet know how to map the sub-allocated block to
// memory.
// Caller is be responsible in fully initializing the memory allocation.
// This is because TrySubAllocateMemory() does not necessarily know how to map the
// final sub-allocated block to created memory.
return std::make_unique<MemoryAllocation>(nullptr, memory, kInvalidOffset,
AllocationMethod::kUndefined, block);
}
Expand Down
2 changes: 1 addition & 1 deletion src/gpgmm/d3d12/ResourceHeapAllocatorD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace gpgmm { namespace d3d12 {
ComPtr<ID3D12Heap> heap;
HRESULT hr = mDevice->CreateHeap(&heapDesc, IID_PPV_ARGS(&heap));
if (FAILED(hr)) {
ErrorEvent(GetTypename()) << " failed to create heap: " << GetErrorMessage(hr);
InfoEvent(GetTypename()) << " failed to create heap: " << GetErrorMessage(hr);
return {};
}

Expand Down