mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
refactor: pass additional data to ioctl helper
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f1c2ea0b69
commit
2a2596c13b
@@ -300,7 +300,7 @@ TEST_F(IoctlHelperPrelimFixture, givenPrelimsWhenWaitUserFenceThenCorrectValueRe
|
||||
uint64_t value = 0x98765ull;
|
||||
auto ioctlHelper = drm->getIoctlHelper();
|
||||
for (uint32_t i = 0u; i < 4; i++) {
|
||||
auto ret = ioctlHelper->waitUserFence(10u, gpuAddress, value, i, -1, 0u);
|
||||
auto ret = ioctlHelper->waitUserFence(10u, gpuAddress, value, i, -1, 0u, false, NEO::InterruptId::notUsed);
|
||||
EXPECT_EQ(0, ret);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,6 +270,7 @@ class DrmMockXe : public DrmMockCustom {
|
||||
ret = waitUserFenceReturn;
|
||||
auto waitUserFenceInput = static_cast<drm_xe_wait_user_fence *>(arg);
|
||||
waitUserFenceInputs.push_back(*waitUserFenceInput);
|
||||
handleUserFenceWaitExtensions(waitUserFenceInput);
|
||||
} break;
|
||||
|
||||
case DrmIoctl::gemContextCreateExt: {
|
||||
@@ -302,6 +303,8 @@ class DrmMockXe : public DrmMockCustom {
|
||||
return ret;
|
||||
}
|
||||
|
||||
virtual void handleUserFenceWaitExtensions(drm_xe_wait_user_fence *userFenceWait) {}
|
||||
|
||||
void addMockedQueryTopologyData(uint16_t tileId, uint16_t maskType, uint32_t nBytes, const std::vector<uint8_t> &mask) {
|
||||
|
||||
ASSERT_EQ(nBytes, mask.size());
|
||||
|
||||
Reference in New Issue
Block a user