Files
compute-runtime/opencl/test/unit_test/program/program_with_zebin.h
Fabian Zwoliński a2f60af5c6 fix: change global Var/Const Buffer type to SharedPoolAllocation
This is prep work for the future implementation of pooling these allocations.

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-08-19 17:29:34 +02:00

38 lines
993 B
C++

/*
* Copyright (C) 2022-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/test/unit_test/program/program_tests.h"
namespace NEO {
struct KernelInfo;
class MockGraphicsAllocation;
class MockProgram;
} // namespace NEO
using namespace NEO;
class MockBuffer;
class ProgramWithZebinFixture : public ProgramTests {
public:
std::unique_ptr<MockProgram> program;
std::unique_ptr<KernelInfo> kernelInfo;
std::unique_ptr<MockGraphicsAllocation> mockAlloc;
std::unique_ptr<MockBuffer> globalSurface;
std::unique_ptr<MockBuffer> constantSurface;
const char strings[12] = "Hello olleH";
void SetUp() override;
void TearDown() override;
void addEmptyZebin(MockProgram *program);
void populateProgramWithSegments(MockProgram *program);
void populateProgramWithSegments(MockProgram *program, bool createWithSharedGlobalConstSurfaces);
~ProgramWithZebinFixture() override;
ProgramWithZebinFixture();
};