mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Adding initial PreemptionMode::Initial
- account for initial setting (when set mode was equal to initial(Disabled)) estimate size in cmdStreamCS, program MMIO Change-Id: Ice218ae986583c8f3bab4f4f6979e38f03e30d7e
This commit is contained in:

committed by
sys_ocldev

parent
4db1e3af6a
commit
012b8bd73c
@ -386,7 +386,7 @@ HWTEST_F(BlockedCommandQueueTest, givenCommandQueueWhichHasSomeUsedHeapsWhenBloc
|
||||
bool oldMemsetAllocationsFlag = MemoryManagement::memsetNewAllocations;
|
||||
MemoryManagement::memsetNewAllocations = true;
|
||||
|
||||
DebugManager.flags.ForcePreemptionMode.set(0); // allow default preemption mode
|
||||
DebugManager.flags.ForcePreemptionMode.set(-1); // allow default preemption mode
|
||||
auto deviceWithDefaultPreemptionMode = std::unique_ptr<MockDevice>(DeviceHelper<>::create(nullptr));
|
||||
this->pDevice->setPreemptionMode(deviceWithDefaultPreemptionMode->getPreemptionMode());
|
||||
this->pDevice->getCommandStreamReceiver().setPreemptionCsrAllocation(deviceWithDefaultPreemptionMode->getPreemptionAllocation());
|
||||
|
Reference in New Issue
Block a user