mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
77b4359983
commit
dfcdbb20cc
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user