2020-02-13 21:43:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#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"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/helpers/surface_formats.h"
|
|
|
|
#include "opencl/source/kernel/kernel.h"
|
|
|
|
#include "opencl/source/mem_obj/image.h"
|
2020-05-28 20:05:12 +08:00
|
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
2020-02-23 22:20:22 +08:00
|
|
|
#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"
|
2020-02-13 21:43:34 +08:00
|
|
|
#include "test.h"
|
2020-02-23 16:03:33 +08:00
|
|
|
|
2020-02-13 21:43:34 +08:00
|
|
|
#include <memory>
|
|
|
|
|
2020-03-19 21:26:08 +08:00
|
|
|
namespace NEO {
|
|
|
|
|
2020-05-28 20:05:12 +08:00
|
|
|
class ImageSurfaceStateTests : public ClDeviceFixture,
|
2020-02-13 21:43:34 +08:00
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
ImageSurfaceStateTests() = default;
|
|
|
|
void SetUp() override {
|
2020-05-28 20:05:12 +08:00
|
|
|
ClDeviceFixture::SetUp();
|
2020-02-13 21:43:34 +08:00
|
|
|
gmmHelper = pDevice->getGmmHelper();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
2020-05-28 20:05:12 +08:00
|
|
|
ClDeviceFixture::TearDown();
|
2020-02-13 21:43:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
MockGmm mockGmm;
|
|
|
|
GmmHelper *gmmHelper = nullptr;
|
|
|
|
NEO::ImageInfo imageInfo;
|
2020-03-19 21:26:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NEO
|