Use correct engine group type when programming state base address

Command lists and their helper classes should use engine group type
assigned to the particular command list to check if it is RCS group
and not use default CSR class assigned to the device, since default
and current in command list might be different.

Related-To: NEO-5019

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-08-17 14:58:27 +00:00
committed by Compute-Runtime-Automation
parent dda5b19859
commit acac5ea0d5
19 changed files with 219 additions and 130 deletions

View File

@@ -53,11 +53,27 @@ class CommandEncodeStatesFixture : public DeviceFixture {
false, // isCooperative
false, // isHostScopeSignalEvent
false, // isKernelUsingSystemAllocation
false // isKernelDispatchedFromImmediateCmdList
false, // isKernelDispatchedFromImmediateCmdList
false // isRcs
};
return args;
}
template <typename FamilyType>
EncodeStateBaseAddressArgs<FamilyType> createDefaultEncodeStateBaseAddressArgs(
CommandContainer *container,
typename FamilyType::STATE_BASE_ADDRESS &sbaCmd,
uint32_t statelessMocs) {
EncodeStateBaseAddressArgs<FamilyType> args = {
container,
sbaCmd,
statelessMocs,
false,
false,
false};
return args;
}
};
} // namespace NEO