mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Another step towards cleaner callers of StateBaseAddressHelper<>::programStateBaseAddress. Export programming state base address into a separate function to improve code reuse and reduce copy-pasted fragments, which make code modifications or maintenance more and more difficult over time. Use specialization for gen-specific variations. Related-To: NEO-6774 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
27 lines
631 B
C++
27 lines
631 B
C++
/*
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/helpers/state_base_address.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily>
|
|
void StateBaseAddressHelper<GfxFamily>::appendStateBaseAddressParameters(
|
|
StateBaseAddressHelperArgs<GfxFamily> &args,
|
|
bool overrideBindlessSurfaceStateBase) {
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
uint32_t StateBaseAddressHelper<GfxFamily>::getMaxBindlessSurfaceStates() {
|
|
return 0;
|
|
}
|
|
|
|
template <>
|
|
void StateBaseAddressHelper<Gen8Family>::programStateBaseAddress(StateBaseAddressHelperArgs<Gen8Family> &args);
|
|
|
|
} // namespace NEO
|