mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
brw: Fix folding case for MAD instruction with all immediates
Fixes:b605f76b2a("brw/algebraic: Constant fold multiplicands of MAD") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36867> (cherry picked from commit74a4e7dd4b)
This commit is contained in:
parent
ccbee20a6c
commit
75a07b9a7c
2 changed files with 5 additions and 5 deletions
|
|
@ -3194,7 +3194,7 @@
|
|||
"description": "brw: Fix folding case for MAD instruction with all immediates",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "b605f76b2a6b19194a3f4f29d7bb40e47648cda3",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -189,12 +189,12 @@ brw_opt_constant_fold_instruction(const intel_device_info *devinfo, brw_inst *in
|
|||
break;
|
||||
|
||||
case BRW_OPCODE_MAD:
|
||||
if (inst->src[1].file == IMM &&
|
||||
if (inst->src[0].file == IMM &&
|
||||
inst->src[1].file == IMM &&
|
||||
inst->src[2].file == IMM &&
|
||||
inst->src[3].file == IMM &&
|
||||
!brw_type_is_vector_imm(inst->src[0].type) &&
|
||||
!brw_type_is_vector_imm(inst->src[1].type) &&
|
||||
!brw_type_is_vector_imm(inst->src[2].type) &&
|
||||
!brw_type_is_vector_imm(inst->src[3].type)) {
|
||||
!brw_type_is_vector_imm(inst->src[2].type)) {
|
||||
fold_multiplicands_of_MAD(inst);
|
||||
assert(inst->opcode == BRW_OPCODE_ADD);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue