Whitelisted registers cleanup

Change-Id: Ifa704f4bd7c4f0bab3fc8565103af6da07a42ba7
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-08-05 08:07:29 +02:00
committed by sys_ocldev
parent e187d68f2f
commit 51888bec7e
36 changed files with 11 additions and 265 deletions

View File

@@ -1231,9 +1231,7 @@ HWTEST_F(DispatchWalkerTest, GivenCacheFlushAfterWalkerEnabledWhenTwoWalkersForQ
HWTEST_F(DispatchWalkerTest, givenMultiDispatchWhenWhitelistedRegisterForCoherencySwitchThenDontProgramLriInTaskStream) {
typedef typename FamilyType::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM;
WhitelistedRegisters registers = {0};
registers.chicken0hdc_0xE5F0 = true;
pDevice->setForceWhitelistedRegs(true, &registers);
auto &cmdStream = pCmdQ->getCS(0);
HardwareParse hwParser;

View File

@@ -15,22 +15,7 @@
using namespace NEO;
struct BarrierTest : public CommandEnqueueFixture,
public ::testing::Test {
void SetUp() override {
CommandEnqueueFixture::SetUp();
WhitelistedRegisters forceRegs = {false};
if (pDevice->getPreemptionMode() != PreemptionMode::Disabled) {
forceRegs.csChicken1_0x2580 = true;
}
pDevice->setForceWhitelistedRegs(true, &forceRegs);
}
void TearDown() override {
CommandEnqueueFixture::TearDown();
}
};
using BarrierTest = Test<CommandEnqueueFixture>;
HWTEST_F(BarrierTest, givenCsrWithHigherLevelThenCommandQueueWhenEnqueueBarrierIsCalledThenCommandQueueAlignsToCsrWithoutSendingAnyCommands) {
auto pCmdQ = this->pCmdQ;

View File

@@ -14,20 +14,7 @@
using namespace NEO;
struct MarkerFixture : public CommandEnqueueFixture {
public:
void SetUp() override {
CommandEnqueueFixture::SetUp();
WhitelistedRegisters forceRegs = {0};
pDevice->setForceWhitelistedRegs(true, &forceRegs);
}
void TearDown() override {
CommandEnqueueFixture::TearDown();
}
};
typedef Test<MarkerFixture> MarkerTest;
using MarkerTest = Test<CommandEnqueueFixture>;
HWTEST_F(MarkerTest, CS_EQ_CQ_ShouldntAddPipeControl) {
typedef typename FamilyType::PIPE_CONTROL PIPE_CONTROL;

View File

@@ -28,8 +28,6 @@ struct GetSizeRequiredTest : public CommandEnqueueFixture,
usedBeforeDSH = dsh->getUsed();
usedBeforeIOH = ioh->getUsed();
usedBeforeSSH = ssh->getUsed();
WhitelistedRegisters regs = {0};
pDevice->setForceWhitelistedRegs(true, &regs);
}
void TearDown() override {