2018-03-27 14:30:05 +02:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-03-27 14:30:05 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-03-27 14:30:05 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-06-12 09:13:06 +02:00
|
|
|
#include "runtime/helpers/hardware_commands_helper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "test.h"
|
2018-03-27 14:30:05 +02:00
|
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2018-03-27 14:30:05 +02:00
|
|
|
|
|
|
|
using Gen8KernelTest = Test<DeviceFixture>;
|
|
|
|
GEN8TEST_F(Gen8KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsFalse) {
|
|
|
|
MockKernelWithInternals mockKernel(*pDevice);
|
|
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
|
|
EXPECT_FALSE(retVal);
|
|
|
|
}
|
2019-06-12 09:13:06 +02:00
|
|
|
using Gen8HardwareCommandsTest = testing::Test;
|
|
|
|
GEN8TEST_F(Gen8HardwareCommandsTest, givenGen8PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
|
|
EXPECT_TRUE(HardwareCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
2018-09-17 09:24:21 +00:00
|
|
|
}
|