mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

In gen/sku specific tests include only required files to reduce dependency on not related HW scpecific headers and improve build performance. This is achieved by reduce in usage of hw_test.h and related collateral, like shared/source/helpers/definitions/hw_cmds.h which can be replaced by sku specific hw_cmds_<sku>.h Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
27 lines
1.0 KiB
C++
27 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
#include "shared/test/common/helpers/hw_helper_tests.h"
|
|
#include "shared/test/common/test_macros/hw_test.h"
|
|
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenAskedForHvAlign4RequiredThenReturnTrue) {
|
|
auto &hwHelper = HwHelper::get(pDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
|
EXPECT_TRUE(hwHelper.hvAlign4Required());
|
|
}
|
|
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenGettingBindlessSurfaceExtendedMessageDescriptorValueThenCorrectValueIsReturned) {
|
|
auto &hwHelper = HwHelper::get(pDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
|
auto value = hwHelper.getBindlessSurfaceExtendedMessageDescriptorValue(0x200);
|
|
|
|
typename FamilyType::DataPortBindlessSurfaceExtendedMessageDescriptor messageExtDescriptor = {};
|
|
messageExtDescriptor.setBindlessSurfaceOffset(0x200);
|
|
|
|
EXPECT_EQ(messageExtDescriptor.getBindlessSurfaceOffsetToPatch(), value);
|
|
EXPECT_EQ(0x200u << 6, value);
|
|
}
|