feature: Add ioctl helpers for primary contexts

Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2025-02-24 15:34:54 +00:00
committed by Compute-Runtime-Automation
parent 7c3468794e
commit 0a7ed9f9f4
6 changed files with 18 additions and 7 deletions

View File

@@ -2098,7 +2098,7 @@ TEST_F(IoctlHelperXeTest, givenLowPriorityContextWhenSettingPropertiesThenCorrec
OsContextLinux osContext(*drm, 0, 5u, EngineDescriptorHelper::getDefaultDescriptor({aub_stream::ENGINE_CCS, EngineUsage::lowPriority}));
std::array<drm_xe_ext_set_property, MockIoctlHelperXe::maxContextSetProperties> extProperties{};
uint32_t extIndex = 1;
xeIoctlHelper->setContextProperties(osContext, &extProperties, extIndex);
xeIoctlHelper->setContextProperties(osContext, 0, &extProperties, extIndex);
EXPECT_EQ(reinterpret_cast<uint64_t>(&extProperties[1]), extProperties[0].base.next_extension);
EXPECT_EQ(0u, extProperties[1].base.next_extension);