mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Create Level Zero command queue based on queue desc ordinal
And correctly return the number of engines available. Related-to: NEO-4590 Change-Id: I637b3a94473e146003ea5e1c86d38e311406ce7e Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
b7e65150d3
commit
77791ba889
@ -54,7 +54,7 @@ TEST_F(DeviceTest, givenDeviceWhenEngineIsCreatedThenSetInitialValueForTag) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, givenDeviceWhenAskedForSpecificEngineThenRetrunIt) {
|
||||
TEST_F(DeviceTest, givenDeviceWhenAskedForSpecificEngineThenReturnIt) {
|
||||
auto &engines = HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily).getGpgpuEngineInstances(*defaultHwInfo);
|
||||
for (uint32_t i = 0; i < engines.size(); i++) {
|
||||
bool lowPriority = (HwHelper::lowPriorityGpgpuEngineIndex == i);
|
||||
@ -66,6 +66,14 @@ TEST_F(DeviceTest, givenDeviceWhenAskedForSpecificEngineThenRetrunIt) {
|
||||
EXPECT_THROW(pDevice->getEngine(aub_stream::ENGINE_VCS, false), std::exception);
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, givenDeviceWhenAskedForEngineWithValidIndexThenReturnIt) {
|
||||
auto &engines = HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily).getGpgpuEngineInstances(*defaultHwInfo);
|
||||
for (uint32_t i = 0; i < engines.size(); i++) {
|
||||
auto &deviceEngine = pDevice->getEngine(i);
|
||||
EXPECT_EQ(deviceEngine.osContext->getEngineType(), engines[i]);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, givenDebugVariableToAlwaysChooseEngineZeroWhenNotExistingEngineSelectedThenIndexZeroEngineIsReturned) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.OverrideInvalidEngineWithDefault.set(true);
|
||||
|
Reference in New Issue
Block a user