mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
25 lines
808 B
C++
25 lines
808 B
C++
|
|
/*
|
||
|
|
* Copyright (C) 2019 Intel Corporation
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: MIT
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "runtime/helpers/hardware_commands_helper.h"
|
||
|
|
#include "test.h"
|
||
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
||
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
||
|
|
|
||
|
|
using namespace NEO;
|
||
|
|
|
||
|
|
using Gen12LpKernelTest = Test<DeviceFixture>;
|
||
|
|
GEN12LPTEST_F(Gen12LpKernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
|
||
|
|
MockKernelWithInternals mockKernel(*pDevice);
|
||
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
||
|
|
EXPECT_TRUE(retVal);
|
||
|
|
}
|
||
|
|
using Gen12LpHardwareCommandsTest = testing::Test;
|
||
|
|
GEN12LPTEST_F(Gen12LpHardwareCommandsTest, givenGen12LpPlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
||
|
|
EXPECT_FALSE(HardwareCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
||
|
|
}
|