mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Move L0HwHelper ownership to RootDeviceEnvironment 1/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Use RootDeviceEnvironment getHelper<L0CoreHelper> for - setAdditionalGroupProperty - createEvent - isResumeWARequired
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1bcceb1071
commit
aaa4e90ad4
@@ -406,10 +406,9 @@ void DebugSessionImp::applyResumeWa(uint8_t *bitmask, size_t bitmaskSize) {
|
||||
|
||||
UNRECOVERABLE_IF(bitmaskSize % 8 != 0);
|
||||
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
|
||||
if (l0HwHelper.isResumeWARequired()) {
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
|
||||
uint32_t *dwordBitmask = reinterpret_cast<uint32_t *>(bitmask);
|
||||
for (uint32_t i = 0; i < bitmaskSize / sizeof(uint32_t) - 1; i = i + 2) {
|
||||
@@ -426,9 +425,9 @@ bool DebugSessionImp::writeResumeCommand(const std::vector<EuThread::ThreadId> &
|
||||
|
||||
if (stateSaveAreaHeader->versionHeader.version.major < 2u) {
|
||||
auto &hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
|
||||
if (l0HwHelper.isResumeWARequired()) {
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
constexpr uint32_t sipResumeValue = 0x40000000;
|
||||
|
||||
bool isBindlessSip = (debugArea.reserved1 == 1);
|
||||
|
||||
Reference in New Issue
Block a user