refactor: add separate function to create IoctlHelperXe

unify ioctl helper xe logic

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-04-16 16:19:33 +00:00
committed by Compute-Runtime-Automation
parent 9903009889
commit 15d7a31148
14 changed files with 181 additions and 269 deletions

View File

@@ -32,7 +32,7 @@ struct BindInfo {
class IoctlHelperXe : public IoctlHelper {
public:
using IoctlHelper::IoctlHelper;
static std::unique_ptr<IoctlHelperXe> create(Drm &drmArg);
IoctlHelperXe(Drm &drmArg);
~IoctlHelperXe() override;
int ioctl(DrmIoctl request, void *arg) override;
@@ -135,7 +135,7 @@ class IoctlHelperXe : public IoctlHelper {
const char *xeGetBindOperationName(int bindOperation);
const char *xeGetBindFlagsName(int bindFlags);
uint64_t getExtraFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident, bool bindLock, bool readOnlyResource);
virtual uint64_t getExtraFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident, bool bindLock, bool readOnlyResource);
const char *xeGetengineClassName(uint32_t engineClass);
template <typename DataType>
std::vector<DataType> queryData(uint32_t queryId);
@@ -181,7 +181,6 @@ class IoctlHelperXe : public IoctlHelper {
};
std::vector<DebugMetadata> debugMetadata;
private:
template <typename... XeLogArgs>
void xeLog(XeLogArgs &&...args) const;