mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 18:23:03 +08:00
Change-Id: Ib61e987388ba14b721a573e3e84332a7f6c9ef9c Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
26 lines
868 B
C++
26 lines
868 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/helpers/hardware_commands_helper.h"
|
|
#include "opencl/source/mem_obj/buffer.h"
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
#include "opencl/test/unit_test/mocks/mock_kernel.h"
|
|
#include "test.h"
|
|
|
|
using namespace NEO;
|
|
|
|
using Gen9KernelTest = Test<ClDeviceFixture>;
|
|
GEN9TEST_F(Gen9KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
|
|
MockKernelWithInternals mockKernel(*pClDevice);
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
EXPECT_TRUE(retVal);
|
|
}
|
|
using Gen9HardwareCommandsTest = testing::Test;
|
|
GEN9TEST_F(Gen9HardwareCommandsTest, givenGen9PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
EXPECT_TRUE(HardwareCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
|
}
|