Files
compute-runtime/shared/source/gmm_helper/drm/gmm_callbacks.inl
Mateusz Jablonski ec36dd6275 refactor: move gmm callbacks definition to common place
- 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>
2025-08-14 16:49:29 +02:00

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