mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Change-Id: Ib61e987388ba14b721a573e3e84332a7f6c9ef9c Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/gmm_helper/gmm.h"
|
|
#include "shared/source/gmm_helper/gmm_helper.h"
|
|
#include "shared/source/helpers/aligned_memory.h"
|
|
#include "shared/source/helpers/basic_math.h"
|
|
#include "shared/source/image/image_surface_state.h"
|
|
#include "shared/source/memory_manager/graphics_allocation.h"
|
|
#include "shared/source/memory_manager/surface.h"
|
|
|
|
#include "opencl/source/helpers/surface_formats.h"
|
|
#include "opencl/source/kernel/kernel.h"
|
|
#include "opencl/source/mem_obj/image.h"
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
#include "opencl/test/unit_test/fixtures/image_fixture.h"
|
|
#include "opencl/test/unit_test/mocks/mock_gmm.h"
|
|
#include "opencl/test/unit_test/mocks/mock_gmm_resource_info.h"
|
|
#include "opencl/test/unit_test/mocks/mock_graphics_allocation.h"
|
|
#include "test.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
|
|
class ImageSurfaceStateTests : public ClDeviceFixture,
|
|
public testing::Test {
|
|
public:
|
|
ImageSurfaceStateTests() = default;
|
|
void SetUp() override {
|
|
ClDeviceFixture::SetUp();
|
|
gmmHelper = pDevice->getGmmHelper();
|
|
}
|
|
|
|
void TearDown() override {
|
|
ClDeviceFixture::TearDown();
|
|
}
|
|
|
|
MockGmm mockGmm;
|
|
GmmHelper *gmmHelper = nullptr;
|
|
NEO::ImageInfo imageInfo;
|
|
};
|
|
|
|
} // namespace NEO
|