mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add support for Gen11 platform
Related-To: NEO-2388 Change-Id: I4da92efe7f875f409cd62519a31ed4509b55bda7 Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
This commit is contained in:
25
unit_tests/gen11/kernel_tests_gen11.cpp
Normal file
25
unit_tests/gen11/kernel_tests_gen11.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/helpers/kernel_commands.h"
|
||||
#include "test.h"
|
||||
#include "unit_tests/fixtures/device_fixture.h"
|
||||
#include "unit_tests/mocks/mock_kernel.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
using Gen11KernelTest = Test<DeviceFixture>;
|
||||
GEN11TEST_F(Gen11KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
|
||||
MockKernelWithInternals mockKernel(*pDevice);
|
||||
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
||||
EXPECT_TRUE(retVal);
|
||||
}
|
||||
|
||||
using Gen11KernelCommandsTest = testing::Test;
|
||||
GEN11TEST_F(Gen11KernelCommandsTest, givenGen11PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsFalse) {
|
||||
EXPECT_FALSE(KernelCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
||||
}
|
||||
Reference in New Issue
Block a user