mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Add getSupportedThreadArbitrationPolicies
Related-To: LOCI-2319 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6061b61aea
commit
415e6c4aa5
@@ -83,5 +83,13 @@ size_t PreambleHelper<SKLFamily>::getThreadArbitrationCommandsSize() {
|
||||
return sizeof(MI_LOAD_REGISTER_IMM) + sizeof(PIPE_CONTROL);
|
||||
}
|
||||
|
||||
template <>
|
||||
std::vector<uint32_t> PreambleHelper<SKLFamily>::getSupportedThreadArbitrationPolicies() {
|
||||
std::vector<uint32_t> retVal;
|
||||
for (const uint32_t &p : DebugControlReg2::supportedArbitrationPolicy) {
|
||||
retVal.push_back(p);
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
template struct PreambleHelper<SKLFamily>;
|
||||
} // namespace NEO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -33,6 +33,9 @@ constexpr uint32_t address = 0xE404;
|
||||
constexpr uint32_t getRegData(const uint32_t &policy) {
|
||||
return policy == ThreadArbitrationPolicy::RoundRobin ? 0x100 : 0x0;
|
||||
};
|
||||
static const uint32_t supportedArbitrationPolicy[] = {
|
||||
ThreadArbitrationPolicy::AgeBased,
|
||||
ThreadArbitrationPolicy::RoundRobin};
|
||||
} // namespace DebugControlReg2
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user