mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
intel/eu: Assert that the instruction is send-like in brw_set_desc_ex().
Constructing a descriptor in-place as part of the immediate of an ALU instruction is no longer supported. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
6f81e2b994
commit
6643143f6e
1 changed files with 3 additions and 2 deletions
|
|
@ -368,11 +368,12 @@ brw_set_desc_ex(struct brw_codegen *p, brw_inst *inst,
|
|||
unsigned desc, unsigned ex_desc)
|
||||
{
|
||||
const struct gen_device_info *devinfo = p->devinfo;
|
||||
assert(brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SEND ||
|
||||
brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SENDC);
|
||||
brw_inst_set_src1_file_type(devinfo, inst,
|
||||
BRW_IMMEDIATE_VALUE, BRW_REGISTER_TYPE_D);
|
||||
brw_inst_set_send_desc(devinfo, inst, desc);
|
||||
if (devinfo->gen >= 9 && (brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SEND ||
|
||||
brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SENDC))
|
||||
if (devinfo->gen >= 9)
|
||||
brw_inst_set_send_ex_desc(devinfo, inst, ex_desc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue