mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
feature: enable getting fd from vmExport
Related-To: NEO-12680 Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1840bf793f
commit
ffc7bd1b37
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user