feature: enable getting fd from vmExport

Related-To: NEO-12680


Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik
2025-01-22 12:02:08 +00:00
committed by Compute-Runtime-Automation
parent 1840bf793f
commit ffc7bd1b37
2 changed files with 17 additions and 0 deletions

View File

@@ -13,4 +13,16 @@ void IoctlHelperXePrelim::setContextProperties(const OsContextLinux &osContext,
IoctlHelperXe::setContextProperties(osContext, extProperties, extIndexInOut);
}
bool IoctlHelperXePrelim::getFdFromVmExport(uint32_t vmId, uint32_t flags, int32_t *fd) {
return IoctlHelperXe::getFdFromVmExport(vmId, flags, fd);
}
unsigned int IoctlHelperXePrelim::getIoctlRequestValue(DrmIoctl ioctlRequest) const {
return IoctlHelperXe::getIoctlRequestValue(ioctlRequest);
}
std::string IoctlHelperXePrelim::getIoctlString(DrmIoctl ioctlRequest) const {
return IoctlHelperXe::getIoctlString(ioctlRequest);
}
} // namespace NEO

View File

@@ -14,6 +14,11 @@ class IoctlHelperXePrelim : public IoctlHelperXe {
public:
using IoctlHelperXe::IoctlHelperXe;
bool getFdFromVmExport(uint32_t vmId, uint32_t flags, int32_t *fd) override;
unsigned int getIoctlRequestValue(DrmIoctl ioctlRequest) const override;
std::string getIoctlString(DrmIoctl ioctlRequest) const override;
protected:
void setContextProperties(const OsContextLinux &osContext, void *extProperties, uint32_t &extIndexInOut) override;
};