fix: Move ULLS semaphore to smem on xe2

Related-To: NEO-14642

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-04-25 10:41:34 +00:00
committed by Compute-Runtime-Automation
parent 77b4359983
commit dfcdbb20cc
2 changed files with 9 additions and 4 deletions

View File

@@ -214,11 +214,14 @@ void GfxCoreHelperHw<Family>::setExtraAllocationData(AllocationData &allocationD
}
if (properties.allocationType == AllocationType::commandBuffer ||
properties.allocationType == AllocationType::ringBuffer ||
properties.allocationType == AllocationType::semaphoreBuffer) {
properties.allocationType == AllocationType::ringBuffer) {
allocationData.flags.useSystemMemory = false;
allocationData.flags.requiresCpuAccess = true;
}
if (properties.allocationType == AllocationType::semaphoreBuffer) {
allocationData.flags.useSystemMemory = true;
}
}
}

View File

@@ -778,10 +778,12 @@ XE2_HPG_CORETEST_F(GfxCoreHelperTestsXe2HpgCore, givenAllocDataWhenSetExtraAlloc
if (defaultHwInfo->featureTable.flags.ftrLocalMemory) {
if (allocProperties.allocationType == AllocationType::commandBuffer ||
allocProperties.allocationType == AllocationType::ringBuffer ||
allocProperties.allocationType == AllocationType::semaphoreBuffer) {
allocProperties.allocationType == AllocationType::ringBuffer) {
EXPECT_FALSE(allocData.flags.useSystemMemory);
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
} else if (allocProperties.allocationType == AllocationType::semaphoreBuffer) {
EXPECT_TRUE(allocData.flags.useSystemMemory);
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
} else {
EXPECT_FALSE(allocData.flags.useSystemMemory);
EXPECT_FALSE(allocData.flags.requiresCpuAccess);