mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Return true in Device::isSimulation() when AUB or TBX CSR is selected
- when CSR is set to AUB or TBX (with AubDump) Device should return true in isSimulation(). This method is used to set flag m_IsSimulation in deviceQueue which is used by scheduler kernel Change-Id: Ibdf07d4c940335fb0bb8448071b66d47e9391d71
This commit is contained in:

committed by
sys_ocldev

parent
a3e97e8cc3
commit
a9566e0c05
@ -54,6 +54,8 @@
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
#include "runtime/command_queue/gpgpu_walker.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
using namespace OCLRT;
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, UltCommandStreamReceiverTest, givenPreambleSentAndThreadArbitrationPolicyNotChangedWhenEstimatingPreambleCmdSizeThenReturnItsValue) {
|
||||
@ -142,3 +144,12 @@ HWTEST_F(CommandStreamReceiverFlushTests, shouldAlignToCacheLineSize) {
|
||||
|
||||
EXPECT_EQ(0u, commandStream.getUsed() % MemoryConstants::cacheLineSize);
|
||||
}
|
||||
|
||||
typedef Test<DeviceFixture> CommandStreamReceiverHwTest;
|
||||
|
||||
HWTEST_F(CommandStreamReceiverHwTest, givenCsrHwWhenTypeIsCheckedThenCsrHwIsReturned) {
|
||||
HardwareInfo hwInfo = *platformDevices[0];
|
||||
auto csr = std::unique_ptr<CommandStreamReceiver>(CommandStreamReceiverHw<FamilyType>::create(hwInfo));
|
||||
|
||||
EXPECT_EQ(CommandStreamReceiverType::CSR_HW, csr->getType());
|
||||
}
|
||||
|
Reference in New Issue
Block a user