mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
- merge all the callbacks to single template class - store callback functions in global arrays - partially reuse callbacks on Linux Related-To: NEO-11080 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
28 lines
711 B
C++
28 lines
711 B
C++
/*
|
|
* Copyright (C) 2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/gmm_helper/gmm_callbacks_base.inl"
|
|
#include "shared/source/helpers/array_count.h"
|
|
#include "shared/source/helpers/populate_factory.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily>
|
|
long __stdcall GmmCallbacks<GfxFamily>::notifyAubCapture(void *csrHandle, uint64_t gfxAddress, size_t gfxSize, bool allocate) {
|
|
return 1;
|
|
}
|
|
|
|
template <>
|
|
void populateFactoryTable<GmmCallbacks<Family>>() {
|
|
UNRECOVERABLE_IF(!isInRange(gfxCore, writeL3AddressFuncFactory));
|
|
writeL3AddressFuncFactory[gfxCore] = GmmCallbacks<Family>::writeL3Address;
|
|
}
|
|
|
|
template struct GmmCallbacks<Family>;
|
|
|
|
} // namespace NEO
|