Skip to content

Commit e28015a

Browse files
Move ULLS resources to local memory on DG2
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
1 parent e07f9f0 commit e28015a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

shared/source/helpers/extra_allocation_data_xehp_and_later.inl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ void HwHelperHw<Family>::setExtraAllocationData(AllocationData &allocationData,
2929
allocationData.storageInfo.isLockable = false;
3030
}
3131
} else if (hwInfo.featureTable.flags.ftrLocalMemory &&
32-
properties.allocationType == AllocationType::COMMAND_BUFFER) {
32+
(properties.allocationType == AllocationType::COMMAND_BUFFER ||
33+
properties.allocationType == AllocationType::RING_BUFFER ||
34+
properties.allocationType == AllocationType::SEMAPHORE_BUFFER)) {
3335
allocationData.flags.useSystemMemory = false;
3436
allocationData.flags.requiresCpuAccess = true;
3537
}

shared/test/unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ XE_HPG_CORETEST_F(HwHelperTestXeHpgCore, givenAllocDataWhenSetExtraAllocationDat
104104
hwHelper.setExtraAllocationData(allocData, allocProperties, *defaultHwInfo);
105105

106106
if (defaultHwInfo->featureTable.flags.ftrLocalMemory &&
107-
allocProperties.allocationType == AllocationType::COMMAND_BUFFER) {
107+
(allocProperties.allocationType == AllocationType::COMMAND_BUFFER ||
108+
allocProperties.allocationType == AllocationType::RING_BUFFER ||
109+
allocProperties.allocationType == AllocationType::SEMAPHORE_BUFFER)) {
108110
EXPECT_FALSE(allocData.flags.useSystemMemory);
109111
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
110112
} else {

0 commit comments

Comments
 (0)