Skip to content

Commit 187f772

Browse files
Remove drm_query_flags
Signed-off-by: Daniel Chabrowski [email protected] Related-To: NEO-6591
1 parent 7d2d5e5 commit 187f772

File tree

4 files changed

+4
-26
lines changed

4 files changed

+4
-26
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,6 @@ include_directories(${NEO_SOURCE_DIR}/opencl/source/mem_obj/definitions${BRANCH_
724724
include_directories(${NEO_SOURCE_DIR}/opencl/source/memory_manager/definitions${BRANCH_DIR_SUFFIX})
725725
if(MSVC)
726726
include_directories(${NEO_SOURCE_DIR}/opencl/source/sharings/gl/windows/include)
727-
else()
728-
include_directories(${NEO_SHARED_DIRECTORY}/os_interface/linux/flags${BRANCH_DIR_SUFFIX})
729727
endif()
730728

731729
macro(macro_for_each_core_type)

shared/source/os_interface/linux/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ set(NEO_CORE_OS_INTERFACE_LINUX
5757
${CMAKE_CURRENT_SOURCE_DIR}/ioctl_strings_prelim.cpp
5858
${CMAKE_CURRENT_SOURCE_DIR}/engine_info.h
5959
${CMAKE_CURRENT_SOURCE_DIR}/engine_info.cpp
60-
${CMAKE_CURRENT_SOURCE_DIR}/flags${BRANCH_DIR_SUFFIX}drm_query_flags.h
6160
${CMAKE_CURRENT_SOURCE_DIR}/memory_info.h
6261
${CMAKE_CURRENT_SOURCE_DIR}/memory_info.cpp
6362
${CMAKE_CURRENT_SOURCE_DIR}/os_context_linux.cpp

shared/source/os_interface/linux/drm_neo.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
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

10081006
bool 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

10191017
std::vector<uint8_t> Drm::getMemoryRegions() {
1020-
return this->query(ioctlHelper->getMemRegionsIoctlVal(), DrmQueryItemFlags::empty);
1018+
return this->query(ioctlHelper->getMemRegionsIoctlVal(), 0);
10211019
}
10221020

10231021
bool Drm::queryMemoryInfo() {
@@ -1031,7 +1029,7 @@ bool Drm::queryMemoryInfo() {
10311029
}
10321030

10331031
bool 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
}

shared/source/os_interface/linux/flags/drm_query_flags.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)