mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Rename HwHelper -> GfxCoreHelper
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
15b6d94555
commit
03b687881f
@@ -45,7 +45,7 @@ TEST(KernelInfoTest, givenKernelInfoWhenCreateKernelAllocationThenCopyWholeKerne
|
||||
EXPECT_TRUE(retVal);
|
||||
auto allocation = kernelInfo.kernelAllocation;
|
||||
EXPECT_EQ(0, memcmp(allocation->getUnderlyingBuffer(), heap, heapSize));
|
||||
auto &helper = device->getRootDeviceEnvironment().getHelper<CoreHelper>();
|
||||
auto &helper = device->getRootDeviceEnvironment().getHelper<GfxCoreHelper>();
|
||||
size_t isaPadding = helper.getPaddingForISAAllocation();
|
||||
EXPECT_EQ(allocation->getUnderlyingBufferSize(), heapSize + isaPadding);
|
||||
device->getMemoryManager()->checkGpuUsageAndDestroyGraphicsAllocations(allocation);
|
||||
@@ -162,7 +162,7 @@ TEST(KernelInfo, givenNumbersOfSamplerWhenCheckSamplerStateCountAndSamplerStateA
|
||||
KernelInfo kernel = {};
|
||||
uint8_t numSamplers = 5u;
|
||||
kernel.kernelDescriptor.payloadMappings.samplerTable.numSamplers = numSamplers;
|
||||
auto samplerSize = HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily).getSamplerStateSize();
|
||||
auto samplerSize = GfxCoreHelper::get(defaultHwInfo->platform.eRenderCoreFamily).getSamplerStateSize();
|
||||
EXPECT_EQ(kernel.getSamplerStateArrayCount(), numSamplers);
|
||||
EXPECT_EQ(kernel.getSamplerStateArraySize(*defaultHwInfo), static_cast<size_t>(numSamplers * samplerSize));
|
||||
}
|
||||
|
||||
@@ -493,7 +493,7 @@ TEST_F(ProgramFromBinaryTest, givenProgramWhenItIsBeingBuildThenItContainsGraphi
|
||||
auto graphicsAllocation = kernelInfo->getGraphicsAllocation();
|
||||
ASSERT_NE(nullptr, graphicsAllocation);
|
||||
EXPECT_TRUE(graphicsAllocation->is32BitAllocation());
|
||||
auto &helper = pDevice->getRootDeviceEnvironment().getHelper<CoreHelper>();
|
||||
auto &helper = pDevice->getRootDeviceEnvironment().getHelper<GfxCoreHelper>();
|
||||
size_t isaPadding = helper.getPaddingForISAAllocation();
|
||||
EXPECT_EQ(graphicsAllocation->getUnderlyingBufferSize(), kernelInfo->heapInfo.KernelHeapSize + isaPadding);
|
||||
|
||||
@@ -2135,7 +2135,7 @@ HWTEST_F(ProgramTests, givenNewProgramThenStatelessToStatefulBufferOffsetOptimiz
|
||||
MockProgram program(pContext, false, toClDeviceVector(*pClDevice));
|
||||
auto internalOptions = program.getInternalOptions();
|
||||
|
||||
if (HwHelperHw<FamilyType>::get().isStatelessToStatefulWithOffsetSupported()) {
|
||||
if (GfxCoreHelperHw<FamilyType>::get().isStatelessToStatefulWithOffsetSupported()) {
|
||||
EXPECT_TRUE(CompilerOptions::contains(internalOptions, CompilerOptions::hasBufferOffsetArg));
|
||||
} else {
|
||||
EXPECT_FALSE(CompilerOptions::contains(internalOptions, CompilerOptions::hasBufferOffsetArg));
|
||||
|
||||
Reference in New Issue
Block a user