mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Use single class to program load register command
Change-Id: I90fe084409588cb32f0ac43a3db5082047d7a68b Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
138f04bdcd
commit
ce1b669cda
@@ -72,13 +72,10 @@ void PreambleHelper<ICLFamily>::programThreadArbitration(LinearStream *pCommandS
|
||||
cmd.setCommandStreamerStallEnable(true);
|
||||
*pipeControl = cmd;
|
||||
|
||||
auto pCmd = pCommandStream->getSpaceForCmd<MI_LOAD_REGISTER_IMM>();
|
||||
MI_LOAD_REGISTER_IMM lriCmd = ICLFamily::cmdInitLoadRegisterImm;
|
||||
|
||||
lriCmd.setRegisterOffset(RowChickenReg4::address);
|
||||
lriCmd.setDataDword(RowChickenReg4::regDataForArbitrationPolicy[requiredThreadArbitrationPolicy]);
|
||||
|
||||
*pCmd = lriCmd;
|
||||
LriHelper<ICLFamily>::program(pCommandStream,
|
||||
RowChickenReg4::address,
|
||||
RowChickenReg4::regDataForArbitrationPolicy[requiredThreadArbitrationPolicy],
|
||||
false);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user