refactor: Add debug break for partial make resident

Resolves: NEO-13711

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-04-15 12:00:02 +00:00
committed by Compute-Runtime-Automation
parent bf68fed199
commit 06e375fdc6

View File

@@ -542,6 +542,7 @@ bool Wddm::makeResident(const D3DKMT_HANDLE *handles, uint32_t count, bool cantT
success = true;
} else {
DEBUG_BREAK_IF(cantTrimFurther);
DEBUG_BREAK_IF(makeResident.NumAllocations != 0u && makeResident.NumAllocations != count);
perfLogResidencyTrimRequired(residencyLogger.get(), makeResident.NumBytesToTrim);
if (numberOfBytesToTrim != nullptr) {
*numberOfBytesToTrim = makeResident.NumBytesToTrim;