Skip to content

Commit 5040387

Browse files
PawelJureksys_zuul
authored andcommitted
Cleanup GTSystemInfo interface
Change-Id: I4a47cf10dbf1d74a7f96792db34eeb2b011f0f0f
1 parent 94c5f3a commit 5040387

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

IGC/AdaptorOCL/ocl_igc_interface/gt_system_info.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ CIF_DEFINE_INTERFACE_VER(GTSystemInfo, 1){
9494

9595
CIF_DEFINE_INTERFACE_VER_WITH_COMPATIBILITY(GTSystemInfo, 2, 1) {
9696
CIF_INHERIT_CONSTRUCTOR();
97-
9897
};
9998

10099
CIF_DEFINE_INTERFACE_VER_WITH_COMPATIBILITY(GTSystemInfo, 3, 1) {
@@ -108,7 +107,7 @@ CIF_DEFINE_INTERFACE_VER_WITH_COMPATIBILITY(GTSystemInfo, 3, 1) {
108107

109108
CIF_GENERATE_VERSIONS_LIST(GTSystemInfo);
110109
CIF_MARK_LATEST_VERSION(GTSystemInfoLatest, GTSystemInfo);
111-
using GTSystemInfoTagOCL = GTSystemInfo<2>; // Note : can tag with different version for
110+
using GTSystemInfoTagOCL = GTSystemInfo<3>; // Note : can tag with different version for
112111
// transition periods
113112

114113
}

IGC/AdaptorOCL/ocl_igc_interface/impl/gt_system_info_impl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ DEFINE_GET_SET(GTSystemInfo, 1, CsrSizeInMb, uint32_t);
6161
DEFINE_GET_SET(GTSystemInfo, 1, MaxEuPerSubSlice, uint32_t);
6262
DEFINE_GET_SET(GTSystemInfo, 1, MaxSlicesSupported, uint32_t);
6363
DEFINE_GET_SET(GTSystemInfo, 1, MaxSubSlicesSupported, uint32_t);
64-
65-
DEFINE_GET_SET(GTSystemInfo, 3, MaxDualSubSlicesSupported, uint32_t);
66-
6764
DEFINE_GET_SET(GTSystemInfo, 1, IsL3HashModeEnabled, bool);
6865
DEFINE_GET_SET(GTSystemInfo, 1, IsDynamicallyPopulated, bool);
6966

67+
DEFINE_GET_SET(GTSystemInfo, 3, MaxDualSubSlicesSupported, uint32_t);
7068
DEFINE_GET_SET(GTSystemInfo, 3, DualSubSliceCount, uint32_t);
69+
7170
}
7271

7372
#include "cif/macros/disable.h"

IGC/AdaptorOCL/ocl_igc_interface/platform_helper.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ inline void PopulateInterfaceWith(IGC::GTSystemInfo<Ver> &dst,
8888
}
8989

9090
template <typename SrcStructT>
91-
inline void PopulateInterfaceWith(IGC::GTSystemInfo<2>& dst,
91+
inline void PopulateInterfaceWith(IGC::GTSystemInfo<3>& dst,
9292
const SrcStructT& src) {
9393
PopulateInterfaceWith<1>(dst, src);
94+
COPY_VAL_EXACT(MaxDualSubSlicesSupported);
95+
COPY_VAL_EXACT(DualSubSliceCount);
9496
}
9597

9698
}

0 commit comments

Comments
 (0)