mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Multiple engine support for Sysman Engine API
- multiple engines support for Sysman Engine API - added engineQuery support - opencl ULTs to validate engineQuery - Sysman ULTs to validate engine APIs Change-Id: I3b4d3a96a4cdca7dd9957f6a57f7b1bf900582d3 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com> Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cf8f0c6437
commit
8f52561307
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/linux/drm_engine_mapper.h"
|
||||
#include "shared/source/os_interface/linux/engine_info_impl.h"
|
||||
#include "shared/source/os_interface/linux/memory_info_impl.h"
|
||||
|
||||
#include "drm_neo.h"
|
||||
@@ -32,7 +33,14 @@ int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) {
|
||||
}
|
||||
|
||||
bool Drm::queryEngineInfo() {
|
||||
return true;
|
||||
auto length = 0;
|
||||
auto dataQuery = this->query(DRM_I915_QUERY_ENGINE_INFO, length);
|
||||
auto data = reinterpret_cast<drm_i915_query_engine_info *>(dataQuery.get());
|
||||
if (data) {
|
||||
this->engineInfo.reset(new EngineInfoImpl(data->engines, data->num_engines));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Drm::queryMemoryInfo() {
|
||||
|
||||
Reference in New Issue
Block a user