mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove not needed hwHelper
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
5a75f4b7e1
commit
582a3620a2
@ -60,7 +60,6 @@ class AUBCommandStreamFixture : public CommandStreamFixture {
|
||||
if (testMode == TestMode::AubTestsWithTbx) {
|
||||
auto tbxCsr = static_cast<CommandStreamReceiverSimulatedCommonHw<FamilyType> *>(pCommandStreamReceiver);
|
||||
EXPECT_TRUE(tbxCsr->expectMemoryEqual(gfxAddress, srcAddress, length));
|
||||
|
||||
csr = static_cast<CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<FamilyType>> *>(pCommandStreamReceiver)->aubCSR.get();
|
||||
}
|
||||
|
||||
@ -76,7 +75,6 @@ class AUBCommandStreamFixture : public CommandStreamFixture {
|
||||
if (testMode == TestMode::AubTestsWithTbx) {
|
||||
auto tbxCsr = static_cast<CommandStreamReceiverSimulatedCommonHw<FamilyType> *>(pCommandStreamReceiver);
|
||||
EXPECT_TRUE(tbxCsr->expectMemoryNotEqual(gfxAddress, srcAddress, length));
|
||||
|
||||
csr = static_cast<CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<FamilyType>> *>(pCommandStreamReceiver)->aubCSR.get();
|
||||
}
|
||||
|
||||
|
@ -351,18 +351,9 @@ TEST_F(GmmTests, givenNonZeroRowPitchWhenQueryImgFromBufferParamsThenUseUserValu
|
||||
EXPECT_EQ(imgInfo.rowPitch, expectedRowPitch);
|
||||
}
|
||||
|
||||
struct GmmTestsCanonize : public GmmTests {
|
||||
void SetUp() override {
|
||||
uint32_t addressWidth = 48u;
|
||||
HwHelper::get(renderCoreFamily).adjustAddressWidthForCanonize(addressWidth);
|
||||
if (addressWidth != 48u) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
GmmTests::SetUp();
|
||||
}
|
||||
};
|
||||
using GmmCanonizeTests = GmmTests;
|
||||
|
||||
TEST_F(GmmTestsCanonize, WhenCanonizingThenCorrectAddressIsReturned) {
|
||||
TEST_F(GmmCanonizeTests, WhenCanonizingThenCorrectAddressIsReturned) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
|
||||
// 48 bit - canonize to 48 bit
|
||||
@ -385,7 +376,7 @@ TEST_F(GmmTestsCanonize, WhenCanonizingThenCorrectAddressIsReturned) {
|
||||
EXPECT_EQ(GmmHelper::canonize(testAddr2), goodAddr2);
|
||||
}
|
||||
|
||||
TEST_F(GmmTestsCanonize, WhenDecanonizingThenCorrectAddressIsReturned) {
|
||||
TEST_F(GmmCanonizeTests, WhenDecanonizingThenCorrectAddressIsReturned) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
|
||||
// 48 bit - decanonize to 48 bit
|
||||
|
@ -1158,14 +1158,6 @@ HWTEST_F(HwHelperTest, givenHwHelperWhenAskingForIsaSystemMemoryPlacementThenRet
|
||||
EXPECT_NE(localMemoryEnabled, hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
}
|
||||
|
||||
HWTEST_F(HwHelperTest, givenHwHelperWhenAdjustAddressWidthForCanonizeThenAddressWidthDoesntChange) {
|
||||
HwHelper &hwHelper = HwHelper::get(hardwareInfo.platform.eRenderCoreFamily);
|
||||
uint32_t addressWidth = 48;
|
||||
|
||||
hwHelper.adjustAddressWidthForCanonize(addressWidth);
|
||||
EXPECT_EQ(48u, addressWidth);
|
||||
}
|
||||
|
||||
TEST_F(HwHelperTest, givenInvalidEngineTypeWhenGettingEngineGroupTypeThenThrow) {
|
||||
HwHelper &hwHelper = HwHelper::get(hardwareInfo.platform.eRenderCoreFamily);
|
||||
EXPECT_ANY_THROW(hwHelper.getEngineGroupType(aub_stream::EngineType::NUM_ENGINES, hardwareInfo));
|
||||
|
Reference in New Issue
Block a user