mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix(sysman): Create Engine Handles for multiple gt w.r.t Xe driver
For the Xe driver, a single tile can have multiple gts. Now the Engine handles are created for multiple gts available on the single tile as in the case for the Xe driver. Related-To: NEO-14401 Signed-off-by: Pratik Bari <pratik.bari@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ad49418575
commit
f67663d863
@@ -995,13 +995,15 @@ TEST_F(IoctlPrelimHelperTests, whenCallingGetStatusAndFlagsForResetStatsThenExpe
|
||||
EXPECT_FALSE(ioctlHelper.validPageFault(0u));
|
||||
}
|
||||
|
||||
TEST_F(IoctlPrelimHelperTests, whenCallingGetTileIdFromGtIdThenMinusOneIsReturned) {
|
||||
TEST_F(IoctlPrelimHelperTests, whenCallingGetTileIdFromGtIdThenExpectedValueIsReturned) {
|
||||
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
|
||||
auto drm = std::make_unique<DrmMock>(*executionEnvironment->rootDeviceEnvironments[0]);
|
||||
MockIoctlHelperPrelim20 ioctlHelper{*drm};
|
||||
|
||||
EXPECT_EQ(-1, ioctlHelper.getTileIdFromGtId(0));
|
||||
EXPECT_EQ(-1, ioctlHelper.getTileIdFromGtId(1));
|
||||
int32_t gtId = 0;
|
||||
EXPECT_EQ(gtId, ioctlHelper.getTileIdFromGtId(gtId));
|
||||
gtId = 1;
|
||||
EXPECT_EQ(gtId, ioctlHelper.getTileIdFromGtId(gtId));
|
||||
}
|
||||
|
||||
TEST(DrmTest, GivenDrmWhenAskedForPreemptionThenCorrectValueReturned) {
|
||||
|
||||
Reference in New Issue
Block a user