Files
compute-runtime/shared/test/common/libult/xe3_core.cpp
Mateusz Jablonski a22817200f refactor: add wrapper for max gfx core
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-11-24 21:35:38 +01:00

36 lines
980 B
C++

/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/populate_factory.h"
#include "shared/source/xe3_core/hw_cmds_base.h"
#include "shared/test/common/libult/ult_command_stream_receiver.h"
#include "shared/test/common/mocks/mock_l0_debugger.h"
namespace NEO {
using Family = Xe3CoreFamily;
constexpr auto gfxCore = IGFX_XE3_CORE;
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * NEO::maxCoreEnumValue];
template <>
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
commandStreamReceiverFactory[NEO::maxCoreEnumValue + gfxCore] = UltCommandStreamReceiver<Family>::create;
}
struct EnableXe3Core {
EnableXe3Core() {
populateFactoryTable<UltCommandStreamReceiver<Family>>();
}
};
static EnableXe3Core enable;
static MockDebuggerL0HwPopulateFactory<gfxCore, Family> mockDebuggerXe3Core;
template class UltCommandStreamReceiver<Family>;
} // namespace NEO