mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
Include files are now grouped and sorted in following order: 1. Header file of the class the current file implements 2. Project files 3. Third party files 4. Standard library Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
50 lines
1006 B
C++
50 lines
1006 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "test.h"
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace OCLRT {
|
|
class MockContext;
|
|
class MockKernel;
|
|
class MockProgram;
|
|
class Image;
|
|
struct KernelInfo;
|
|
} // namespace OCLRT
|
|
|
|
namespace iOpenCL {
|
|
struct SKernelBinaryHeaderCommon;
|
|
}
|
|
|
|
class KernelImageArgTest : public Test<OCLRT::DeviceFixture> {
|
|
public:
|
|
KernelImageArgTest() {
|
|
}
|
|
|
|
~KernelImageArgTest() override;
|
|
|
|
protected:
|
|
void SetUp() override;
|
|
|
|
void TearDown() override;
|
|
|
|
cl_int retVal = 0;
|
|
std::unique_ptr<iOpenCL::SKernelBinaryHeaderCommon> kernelHeader;
|
|
std::unique_ptr<OCLRT::MockContext> context;
|
|
std::unique_ptr<OCLRT::MockProgram> program;
|
|
std::unique_ptr<OCLRT::KernelInfo> pKernelInfo;
|
|
std::unique_ptr<OCLRT::MockKernel> pKernel;
|
|
std::unique_ptr<OCLRT::Image> image;
|
|
|
|
char surfaceStateHeap[0x80];
|
|
uint32_t offsetNumMipLevelsImage0 = -1;
|
|
};
|