mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Create enum wrapper for drm engine class values
Related-To: NEO-6852, NEO-6999 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1e7d789e63
commit
0420df780d
@@ -152,10 +152,6 @@ uint32_t IoctlHelperUpstream::queryDistances(Drm *drm, std::vector<QueryItem> &q
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t IoctlHelperUpstream::getComputeEngineClass() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
uint16_t IoctlHelperUpstream::getWaitUserFenceSoftFlag() {
|
||||
return 0;
|
||||
}
|
||||
@@ -295,4 +291,13 @@ unsigned int IoctlHelperUpstream::getIoctlRequestValue(DrmIoctl ioctlRequest) {
|
||||
return 0u;
|
||||
}
|
||||
}
|
||||
|
||||
int IoctlHelperUpstream::getDrmParamValue(DrmParam drmParam) const {
|
||||
switch (drmParam) {
|
||||
case DrmParam::EngineClassCompute:
|
||||
return 4;
|
||||
default:
|
||||
return getDrmParamValueBase(drmParam);
|
||||
}
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user