mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Whitelisted registers cleanup
Change-Id: Ifa704f4bd7c4f0bab3fc8565103af6da07a42ba7 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e187d68f2f
commit
51888bec7e
@@ -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, ®isters);
|
||||
|
||||
auto &cmdStream = pCmdQ->getCS(0);
|
||||
HardwareParse hwParser;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -28,8 +28,6 @@ struct GetSizeRequiredTest : public CommandEnqueueFixture,
|
||||
usedBeforeDSH = dsh->getUsed();
|
||||
usedBeforeIOH = ioh->getUsed();
|
||||
usedBeforeSSH = ssh->getUsed();
|
||||
WhitelistedRegisters regs = {0};
|
||||
pDevice->setForceWhitelistedRegs(true, ®s);
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
|
||||
Reference in New Issue
Block a user