Skip to content

Commit 32592d9

Browse files
Enable DG1 by default
Signed-off-by: Szymon Morek <[email protected]>
1 parent fffc0a5 commit 32592d9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cmake/setup_platform_flags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
SET_FLAGS_FOR("GEN8" "BDW")
88
SET_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL")
99
SET_FLAGS_FOR("GEN11" "ICLLP" "LKF" "EHL")
10-
SET_FLAGS_FOR("GEN12LP" "TGLLP" "RKL" "ADLS" "ADLP")
10+
SET_FLAGS_FOR("GEN12LP" "TGLLP" "RKL" "ADLS" "ADLP" "DG1")
1111

1212
foreach(GEN_TYPE ${XEHP_AND_LATER_GENS})
1313
if(TESTS_${GEN_TYPE})

opencl/test/unit_test/os_interface/linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ if(NEO__LIBVA_FOUND)
5757
)
5858
endif()
5959

60-
if(SUPPORT_DG1 AND "${BRANCH_TYPE}" STREQUAL "")
60+
if(TESTS_DG1 AND "${BRANCH_TYPE}" STREQUAL "")
6161
list(APPEND IGDRCL_SRCS_tests_os_interface_linux
6262
${CMAKE_CURRENT_SOURCE_DIR}/local_memory_helper_tests_dg1.cpp
6363
${CMAKE_CURRENT_SOURCE_DIR}/drm_mock_prod_dg1.h
6464
)
6565
endif()
6666

67-
if(SUPPORT_XE_HP_SDV AND "${BRANCH_TYPE}" STREQUAL "")
67+
if(TESTS_XE_HP_SDV AND "${BRANCH_TYPE}" STREQUAL "")
6868
list(APPEND IGDRCL_SRCS_tests_os_interface_linux
6969
${CMAKE_CURRENT_SOURCE_DIR}/local_memory_helper_tests_xe_hp_sdv.cpp
7070
)

opencl/test/unit_test/os_interface/linux/drm_mock_memory_info.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Intel Corporation
2+
* Copyright (C) 2020-2021 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -10,8 +10,8 @@
1010
#include "shared/source/os_interface/linux/memory_info_impl.h"
1111

1212
constexpr drm_i915_memory_region_info memoryRegions[2] = {
13-
{{I915_MEMORY_CLASS_SYSTEM, 0}, 0, 0, 64 * GB, 0, {}},
14-
{{I915_MEMORY_CLASS_DEVICE, 0}, 0, 0, 8 * GB, 0, {}}};
13+
{{I915_MEMORY_CLASS_SYSTEM, 0}, 0, 64 * GB, 0, {}},
14+
{{I915_MEMORY_CLASS_DEVICE, 0}, 0, 8 * GB, 0, {}}};
1515

1616
struct MockMemoryInfo : public MemoryInfoImpl {
1717
MockMemoryInfo() : MemoryInfoImpl(memoryRegions, 2) {}

shared/source/os_interface/linux/local_memory_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LocalMemoryHelperImpl : public LocalMemoryHelper {
4040
return &instance;
4141
}
4242
uint32_t createGemExt(Drm *drm, void *data, uint32_t dataSize, size_t allocSize, uint32_t &handle) override;
43-
std::unique_ptr<uint8_t[]> translateIfRequired(uint8_t *dataQuery, int32_t length);
43+
std::unique_ptr<uint8_t[]> translateIfRequired(uint8_t *dataQuery, int32_t length) override;
4444
};
4545

4646
template <PRODUCT_FAMILY gfxProduct>

0 commit comments

Comments
 (0)