2020-02-13 21:43:34 +08:00
|
|
|
/*
|
2023-02-04 00:43:19 +08:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-02-13 21:43:34 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-05-18 03:04:23 +08:00
|
|
|
#pragma once
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#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"
|
2021-01-21 20:10:13 +08:00
|
|
|
#include "shared/test/common/fixtures/device_fixture.h"
|
2021-10-14 23:37:18 +08:00
|
|
|
#include "shared/test/common/mocks/mock_gmm.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-06-10 18:47:58 +08:00
|
|
|
class ImageSurfaceStateTests : public DeviceFixture,
|
2020-02-13 21:43:34 +08:00
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
ImageSurfaceStateTests() = default;
|
|
|
|
void SetUp() override {
|
2022-08-11 22:01:11 +08:00
|
|
|
DeviceFixture::setUp();
|
2020-02-13 21:43:34 +08:00
|
|
|
gmmHelper = pDevice->getGmmHelper();
|
2022-04-27 18:20:10 +08:00
|
|
|
mockGmm = std::make_unique<MockGmm>(gmmHelper);
|
2020-02-13 21:43:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
2022-08-11 22:01:11 +08:00
|
|
|
DeviceFixture::tearDown();
|
2020-02-13 21:43:34 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:29:22 +08:00
|
|
|
std::unique_ptr<MockGmm> mockGmm;
|
2020-02-13 21:43:34 +08:00
|
|
|
GmmHelper *gmmHelper = nullptr;
|
2022-01-19 02:18:15 +08:00
|
|
|
NEO::ImageInfo imageInfo{};
|
2020-03-19 21:26:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NEO
|