mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Check if direct submission enable in OsContext
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
8a700c5187
commit
7c99739b89
@ -159,6 +159,15 @@ HWTEST_F(DeviceTest, WhenDeviceIsCreatedThenActualEngineTypeIsSameAsDefault) {
|
||||
|
||||
EXPECT_EQ(&device->getDefaultEngine().commandStreamReceiver->getOsContext(), device->getDefaultEngine().osContext);
|
||||
EXPECT_EQ(defaultEngineType, actualEngineType);
|
||||
|
||||
int defaultCounter = 0;
|
||||
const auto &engines = device->getEngines();
|
||||
for (const auto &engine : engines) {
|
||||
if (engine.osContext->isDefaultContext()) {
|
||||
defaultCounter++;
|
||||
}
|
||||
}
|
||||
EXPECT_EQ(defaultCounter, 1);
|
||||
}
|
||||
|
||||
HWTEST_F(DeviceTest, givenNoHwCsrTypeAndModifiedDefaultEngineIndexWhenIsSimulationIsCalledThenTrueIsReturned) {
|
||||
|
Reference in New Issue
Block a user