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

Change-Id: Icfdeabeb178c0dcc8c3a4bc48eec40067985794e
Αυτή η υποβολή περιλαμβάνεται σε:
kjayapra-amd
2024-08-17 17:17:34 -04:00
υποβλήθηκε από Karthik Jayaprakash
γονέας 6576be5602
υποβολή d7b097c994
2 αρχεία άλλαξαν με 6 προσθήκες και 2 διαγραφές
@@ -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;