Files
compute-runtime/opencl/test/unit_test/command_queue/enqueue_media_kernel.cpp
Mateusz Jablonski e4bbed49d0 Use full path to include test.h 1/n
fix files in opencl

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 12:34:34 +01:00

32 lines
1006 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/test_macros/test.h"
#include "opencl/test/unit_test/fixtures/media_kernel_fixture.h"
using namespace NEO;
typedef MediaKernelFixture<HelloWorldFixtureFactory> MediaKernelTest;
TEST_F(MediaKernelTest, GivenKernelWhenCheckingIsVmeKernelThenOnlyVmeKernelReportsTrue) {
ASSERT_NE(true, pKernel->isVmeKernel());
ASSERT_EQ(true, pVmeKernel->isVmeKernel());
}
HWTEST_F(MediaKernelTest, GivenVmeKernelWhenEnqueuingKernelThenSinglePipelineSelectIsProgrammed) {
enqueueVmeKernel<FamilyType>();
auto numCommands = getCommandsList<typename FamilyType::PIPELINE_SELECT>().size();
EXPECT_EQ(1u, numCommands);
}
HWTEST_F(MediaKernelTest, GivenNonVmeKernelWhenEnqueuingKernelThenSinglePipelineSelectIsProgrammed) {
enqueueRegularKernel<FamilyType>();
auto numCommands = getCommandsList<typename FamilyType::PIPELINE_SELECT>().size();
EXPECT_EQ(1u, numCommands);
}