intel/compiler: Basic support for DP4A instruction
v2: Very significant rebase on changes to previous commits. Specifically, brw_fs_nir.cpp changes were pretty much rewritten from scratch after changing the NIR opcode names and types. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12142>
This commit is contained in:
@@ -2025,6 +2025,18 @@ instruction_restrictions(const struct intel_device_info *devinfo,
|
||||
}
|
||||
}
|
||||
|
||||
if (brw_inst_opcode(devinfo, inst) == BRW_OPCODE_DP4A) {
|
||||
/* Page 396 (page 412 of the PDF) of the DG1 PRM volume 2a says:
|
||||
*
|
||||
* Only one of src0 or src1 operand may be an the (sic) accumulator
|
||||
* register (acc#).
|
||||
*/
|
||||
ERROR_IF(src0_is_acc(devinfo, inst) && src1_is_acc(devinfo, inst),
|
||||
"Only one of src0 or src1 operand may be an accumulator "
|
||||
"register (acc#).");
|
||||
|
||||
}
|
||||
|
||||
return error_msg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user