mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
intel/eu/validate: Validate that the ExecSize is a factor of chosen ChanOff
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>
This commit is contained in:
parent
dbf6f0291a
commit
cfb34dc695
1 changed files with 13 additions and 0 deletions
|
|
@ -242,6 +242,19 @@ invalid_values(const struct brw_isa_info *isa, const brw_inst *inst)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (error_msg.str)
|
||||||
|
return error_msg;
|
||||||
|
|
||||||
|
if (devinfo->ver >= 12) {
|
||||||
|
unsigned group_size = 1 << brw_inst_exec_size(devinfo, inst);
|
||||||
|
unsigned qtr_ctrl = brw_inst_qtr_control(devinfo, inst);
|
||||||
|
unsigned nib_ctrl = brw_inst_nib_control(devinfo, inst);
|
||||||
|
|
||||||
|
unsigned chan_off = (qtr_ctrl * 2 + nib_ctrl) << 2;
|
||||||
|
ERROR_IF(chan_off % group_size != 0,
|
||||||
|
"The execution size must be a factor of the chosen offset");
|
||||||
|
}
|
||||||
|
|
||||||
if (inst_is_send(isa, inst))
|
if (inst_is_send(isa, inst))
|
||||||
return error_msg;
|
return error_msg;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue