mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
i965: Claim that SEND/math has two sources.
src1 must be a descriptor (including the information to determine that the SEND is doing an extended math operation), but src0 can actually be null since it serves as the source of the implicit GRF -> MRF move. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c9724682b5
commit
fce0612fc2
1 changed files with 8 additions and 1 deletions
|
|
@ -96,7 +96,14 @@ num_sources_from_inst(const struct gen_device_info *devinfo,
|
|||
} else if (devinfo->gen < 6 &&
|
||||
brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SEND) {
|
||||
if (brw_inst_sfid(devinfo, inst) == BRW_SFID_MATH) {
|
||||
math_function = brw_inst_math_msg_function(devinfo, inst);
|
||||
/* src1 must be a descriptor (including the information to determine
|
||||
* that the SEND is doing an extended math operation), but src0 can
|
||||
* actually be null since it serves as the source of the implicit GRF
|
||||
* to MRF move.
|
||||
*
|
||||
* If we stop using that functionality, we'll have to revisit this.
|
||||
*/
|
||||
return 2;
|
||||
} else {
|
||||
/* Send instructions are allowed to have null sources since they use
|
||||
* the base_mrf field to specify which message register source.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue