SWDEV-478097 - Check for parents size in case of VA Mem object.

Change-Id: Icfdeabeb178c0dcc8c3a4bc48eec40067985794e


[ROCm/clr commit: d7b097c994]
This commit is contained in:
kjayapra-amd
2024-08-17 17:17:34 -04:00
committed by Karthik Jayaprakash
parent eac092348a
commit 2af78c954b
2 changed files with 6 additions and 2 deletions
-2
View File
@@ -723,8 +723,6 @@ void HostBlitManager::FillBufferInfo::PackInfo(const device::Memory& memory, siz
// 1. Validate input arguments
guarantee(fill_size >= pattern_size, "Pattern Size: %u cannot be greater than fill size: %u \n",
pattern_size, fill_size);
guarantee(fill_size <= memory.size(), "Cannot fill: %u more than the mem object size:%u \n",
fill_size, memory.size());
// 2. Calculate the next closest dword aligned address for faster processing
size_t dst_addr = memory.virtualAddress() + fill_origin;