mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Revert "test: add missing compression flag"
This reverts commit 4b5d5f235a.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a03a561f33
commit
77568a4b24
@@ -694,7 +694,7 @@ HWTEST2_F(PerformanceHintTest, given64bitCompressedBufferWhenItsCreatedThenPrope
|
||||
auto context = std::unique_ptr<MockContext>(Context::create<NEO::MockContext>(validProperties, ClDeviceVector(&deviceId, 1), callbackFunction, static_cast<void *>(userData), retVal));
|
||||
auto buffer = std::unique_ptr<Buffer>(
|
||||
Buffer::create(context.get(), ClMemoryPropertiesHelper::createMemoryProperties(0, 0, 0, &context->getDevice(0)->getDevice()),
|
||||
0, CL_MEM_COMPRESSED_HINT_INTEL, size, static_cast<void *>(NULL), retVal));
|
||||
0, 0, size, static_cast<void *>(NULL), retVal));
|
||||
snprintf(expectedHint, DriverDiagnostics::maxHintStringSize, DriverDiagnostics::hintFormat[BUFFER_IS_COMPRESSED], buffer.get());
|
||||
|
||||
auto &gfxCoreHelper = device->getGfxCoreHelper();
|
||||
|
||||
@@ -99,7 +99,7 @@ class AggregatedSmallBuffersKernelTest : public AggregatedSmallBuffersTestTempla
|
||||
|
||||
using AggregatedSmallBuffersDefaultTest = AggregatedSmallBuffersTestTemplate<-1>;
|
||||
|
||||
HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOrMultiDeviceContextWhenCheckIfEnabledThenReturnCorrectValue, IsBeforeXeHpgCore) {
|
||||
HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOrMultiDeviceContextWhenCheckIfEnabledThenReturnCorrectValue, IsNotXeHpgCore) {
|
||||
DebugManagerStateRestore restore;
|
||||
// Single device context
|
||||
{
|
||||
@@ -179,46 +179,6 @@ HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOr
|
||||
context->devices.pop_back();
|
||||
}
|
||||
|
||||
HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOrMultiDeviceContextWhenCheckIfEnabledThenReturnCorrectValue, IsXeHpcCore) {
|
||||
DebugManagerStateRestore restore;
|
||||
// Single device context
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(-1);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(0);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(1);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(2);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
// Multi device context
|
||||
context->devices.push_back(nullptr);
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(-1);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(0);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(1);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(2);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
context->devices.pop_back();
|
||||
}
|
||||
|
||||
using AggregatedSmallBuffersDisabledTest = AggregatedSmallBuffersTestTemplate<0>;
|
||||
|
||||
TEST_F(AggregatedSmallBuffersDisabledTest, givenAggregatedSmallBuffersDisabledWhenBufferCreateCalledThenDoNotUsePool) {
|
||||
|
||||
Reference in New Issue
Block a user