mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
test: don't call expectMemory on compressed data
Compressed memory can't be compared using expectMemory api. Instead, compressed memory is transferred to usm host. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ebc85b7bef
commit
1432f6a7b2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -48,6 +48,7 @@ void MulticontextOclAubFixture::setUp(uint32_t numberOfTiles, EnabledCommandStre
|
||||
}
|
||||
context.reset(MockContext::create<MockContext>(nullptr, clDeviceVector, nullptr, nullptr, retVal));
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
this->svmAllocsManager = context->getSVMAllocsManager();
|
||||
}
|
||||
|
||||
commandQueues.resize(numberOfTiles);
|
||||
|
||||
@@ -156,7 +156,9 @@ XE3_CORETEST_F(SystemMemFenceWithBlitterXe3Core, givenSystemMemFenceWhenGenerate
|
||||
retVal = clEnqueueMemcpyINTEL(commandQueues[0][0].get(), true, deviceMemAlloc, buffer.data(), bufferSize, 0, nullptr, nullptr);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
expectMemory<FamilyType>(deviceMemAlloc, buffer.data(), bufferSize, 0, 0);
|
||||
if (!tileDevices[0]->getDevice().getReleaseHelper()->getFtrXe2Compression()) {
|
||||
expectMemory<FamilyType>(deviceMemAlloc, buffer.data(), bufferSize, 0, 0);
|
||||
}
|
||||
|
||||
auto hostMemAlloc = clHostMemAllocINTEL(context.get(), nullptr, bufferSize, 0, &retVal);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
Reference in New Issue
Block a user