Files
compute-runtime/shared/test/unit_test/image/image_surface_state_fixture.h
Kamil Kopryk ef896cc799 refactor: introduce ImageSurfaceState helper class
Moved global functions to the ImageSurfaceStateHelper class,
with declarations in the header file and definitions in the base .inl
file.
This change reduces compilation time by:
- removing unnecessary includes from the header file
- adding explicit template instantiations, which are faster than
implicit template instantiations.

Additionally, the image_skl_and_later.inl file has been removed as it
is no longer needed, and its implementation has been moved to the base .inl

Related-To: NEO-12149

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-01-30 19:20:31 +01:00

44 lines
1.1 KiB
C++

/*
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/gmm_helper/resource_info.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 "shared/test/common/fixtures/device_fixture.h"
#include "shared/test/common/mocks/mock_gmm.h"
#include <memory>
namespace NEO {
class ImageSurfaceStateTests : public DeviceFixture,
public testing::Test {
public:
ImageSurfaceStateTests() = default;
void SetUp() override {
DeviceFixture::setUp();
gmmHelper = pDevice->getGmmHelper();
mockGmm = std::make_unique<MockGmm>(gmmHelper);
}
void TearDown() override {
DeviceFixture::tearDown();
}
std::unique_ptr<MockGmm> mockGmm;
GmmHelper *gmmHelper = nullptr;
NEO::ImageInfo imageInfo{};
};
} // namespace NEO