3434#include " shared/source/os_interface/os_interface.h"
3535#include " shared/source/utilities/directory.h"
3636
37- #include " drm_query_flags.h"
38-
3937#include < cstdio>
4038#include < cstring>
4139#include < linux/limits.h>
@@ -1007,7 +1005,7 @@ int Drm::waitUserFence(uint32_t ctxId, uint64_t address, uint64_t value, ValueWi
10071005
10081006bool Drm::querySystemInfo () {
10091007 auto request = ioctlHelper->getHwConfigIoctlVal ();
1010- auto deviceBlobQuery = this ->query (request, DrmQueryItemFlags::empty );
1008+ auto deviceBlobQuery = this ->query (request, 0 );
10111009 if (deviceBlobQuery.empty ()) {
10121010 PRINT_DEBUG_STRING (DebugManager.flags .PrintDebugMessages .get (), stdout, " %s" , " INFO: System Info query failed!\n " );
10131011 return false ;
@@ -1017,7 +1015,7 @@ bool Drm::querySystemInfo() {
10171015}
10181016
10191017std::vector<uint8_t > Drm::getMemoryRegions () {
1020- return this ->query (ioctlHelper->getMemRegionsIoctlVal (), DrmQueryItemFlags::empty );
1018+ return this ->query (ioctlHelper->getMemRegionsIoctlVal (), 0 );
10211019}
10221020
10231021bool Drm::queryMemoryInfo () {
@@ -1031,7 +1029,7 @@ bool Drm::queryMemoryInfo() {
10311029}
10321030
10331031bool Drm::queryEngineInfo (bool isSysmanEnabled) {
1034- auto enginesQuery = this ->query (ioctlHelper->getEngineInfoIoctlVal (), DrmQueryItemFlags::empty );
1032+ auto enginesQuery = this ->query (ioctlHelper->getEngineInfoIoctlVal (), 0 );
10351033 if (enginesQuery.empty ()) {
10361034 return false ;
10371035 }
@@ -1186,7 +1184,7 @@ bool Drm::queryTopology(const HardwareInfo &hwInfo, QueryTopologyData &topologyD
11861184
11871185 // fallback to DRM_I915_QUERY_TOPOLOGY_INFO
11881186
1189- auto dataQuery = this ->query (DRM_I915_QUERY_TOPOLOGY_INFO, DrmQueryItemFlags::topology );
1187+ auto dataQuery = this ->query (DRM_I915_QUERY_TOPOLOGY_INFO, 0 );
11901188 if (dataQuery.empty ()) {
11911189 return false ;
11921190 }
0 commit comments