mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Decrease number of classes deriving from Program 4/n
Change-Id: I73a8616162b72e2dd29e4fa7facbd9bbe1932303 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
955aaccb74
commit
b9310afe76
@@ -56,7 +56,6 @@ class CompilerInterfaceTest : public DeviceFixture,
|
||||
DeviceFixture::SetUp();
|
||||
|
||||
retVal = CL_SUCCESS;
|
||||
MockProgram mockProgram;
|
||||
|
||||
// create the compiler interface
|
||||
pCompilerInterface.reset(new MockCompilerInterface());
|
||||
@@ -287,14 +286,8 @@ TEST_F(CompilerInterfaceTest, CompileClToIr) {
|
||||
}
|
||||
|
||||
TEST_F(CompilerInterfaceTest, GivenProgramCreatedFromIrWhenCompileIsCalledThenIrFormatIsPreserved) {
|
||||
struct MockProgram : Program {
|
||||
using Program::isSpirV;
|
||||
using Program::pDevice;
|
||||
using Program::programBinaryType;
|
||||
};
|
||||
MockProgram prog;
|
||||
MockProgram prog(pContext, false);
|
||||
prog.programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
|
||||
prog.pDevice = pContext->getDevice(0);
|
||||
prog.isSpirV = true;
|
||||
retVal = pCompilerInterface->compile(prog, inputArgs);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
Reference in New Issue
Block a user