XeHPC: force local memory for command/ring/semaphore buffer

require 48bit resource for ring/semaphore buffer
for multi tile allocations select first tile
for single tile allocation select preferred tile

Related-To: NEO-6698
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-03-23 15:04:33 +00:00
committed by Compute-Runtime-Automation
parent 814b0ecb87
commit 8a8b4866cb
8 changed files with 47 additions and 20 deletions

View File

@@ -1128,6 +1128,8 @@ static const AllocationType allocationHaveToBeForcedTo48Bit[] = {
AllocationType::SHARED_RESOURCE_COPY,
AllocationType::SURFACE_STATE_HEAP,
AllocationType::TIMESTAMP_PACKET_TAG_BUFFER,
AllocationType::RING_BUFFER,
AllocationType::SEMAPHORE_BUFFER,
};
static const AllocationType allocationHaveNotToBeForcedTo48Bit[] = {
@@ -1150,8 +1152,6 @@ static const AllocationType allocationHaveNotToBeForcedTo48Bit[] = {
AllocationType::TAG_BUFFER,
AllocationType::GLOBAL_FENCE,
AllocationType::WRITE_COMBINED,
AllocationType::RING_BUFFER,
AllocationType::SEMAPHORE_BUFFER,
AllocationType::DEBUG_CONTEXT_SAVE_AREA,
};

View File

@@ -58,3 +58,5 @@ HWTEST_EXCLUDE_PRODUCT(EnqueueReadBufferStatefulTest, WhenReadingBufferStatefulT
HWTEST_EXCLUDE_PRODUCT(EnqueueWriteBufferRectStatefulTest, WhenWritingBufferRectStatefulThenSuccessIsReturned, IGFX_XE_HPC_CORE);
HWTEST_EXCLUDE_PRODUCT(CommandStreamReceiverFlushTaskTests, givenOverrideThreadArbitrationPolicyDebugVariableSetWhenFlushingThenRequestRequiredMode, IGFX_XE_HPC_CORE);
HWTEST_EXCLUDE_PRODUCT(XeHPAndLaterAubCommandStreamReceiverWithoutFixtureTests, GivenCopyHostPtrAndHostNoAccessAndReadOnlyFlagsWhenAllocatingBufferThenAllocationIsCopiedToEveryTile, IGFX_XE_HPC_CORE);
HWTEST_EXCLUDE_PRODUCT(GetAllocationDataTestHw, givenRingBufferAllocationWhenGetAllocationDataIsCalledThenItHasProperFieldsSet, IGFX_XE_HPC_CORE);
HWTEST_EXCLUDE_PRODUCT(GetAllocationDataTestHw, givenSemaphoreBufferAllocationWhenGetAllocationDataIsCalledThenItHasProperFieldsSet, IGFX_XE_HPC_CORE);