-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also move hwhelper tests from opencl to shared folder Related-To: HSD-18025130857 Signed-off-by: Katarzyna Cencelewska <[email protected]>
- Loading branch information
1 parent
d91d22d
commit 5cfb59c
Showing
12 changed files
with
205 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
opencl/test/unit_test/helpers/cl_hw_helper_tests_xehp_and_later.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) 2021-2022 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
#include "shared/test/common/helpers/hw_helper_tests.h" | ||
#include "shared/test/common/test_macros/hw_test.h" | ||
|
||
#include "opencl/source/helpers/cl_hw_helper.h" | ||
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h" | ||
#include "opencl/test/unit_test/mocks/mock_context.h" | ||
|
||
using ClHwHelperTestXeHpAndLater = ::testing::Test; | ||
|
||
HWCMDTEST_F(IGFX_XE_HP_CORE, ClHwHelperTestXeHpAndLater, givenCLImageFormatsWhenCallingIsFormatRedescribableThenFalseIsReturned) { | ||
static const cl_image_format redescribeFormats[] = { | ||
{CL_R, CL_UNSIGNED_INT8}, | ||
{CL_R, CL_UNSIGNED_INT16}, | ||
{CL_R, CL_UNSIGNED_INT32}, | ||
{CL_RG, CL_UNSIGNED_INT32}, | ||
{CL_RGBA, CL_UNSIGNED_INT32}, | ||
}; | ||
MockContext context; | ||
auto &clHwHelper = ClHwHelper::get(context.getDevice(0)->getHardwareInfo().platform.eRenderCoreFamily); | ||
|
||
for (const auto &format : redescribeFormats) { | ||
EXPECT_EQ(false, clHwHelper.isFormatRedescribable(format)); | ||
} | ||
} |
168 changes: 0 additions & 168 deletions
168
opencl/test/unit_test/helpers/hw_helper_tests_dg2_and_later.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.