mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Add MI_MATH MOCS support
Related-To: NEO-7458 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c28f0c72ea
commit
c00c310cf4
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -24,6 +24,12 @@ class EncodeAluHelper {
|
||||
aluOps.miMath.DW0.BitField.DwordLength = AluCount - 1;
|
||||
}
|
||||
|
||||
void setMocs([[maybe_unused]] uint32_t mocs) {
|
||||
if constexpr (GfxFamily::isUsingMiMathMocs) {
|
||||
aluOps.miMath.DW0.BitField.MemoryObjectControlState = mocs;
|
||||
}
|
||||
}
|
||||
|
||||
void setNextAlu(AluRegisters opcode) {
|
||||
setNextAlu(opcode, AluRegisters::OPCODE_NONE, AluRegisters::OPCODE_NONE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user