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