mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 21:21:39 +02:00
pan/bi: Schedule FCMP.v2f16 with abs modifier
So many encoding restrictions, because Bifrost. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11327>
This commit is contained in:
parent
0c4de24f15
commit
097c9092af
1 changed files with 4 additions and 0 deletions
|
|
@ -362,6 +362,10 @@ bi_can_add(bi_instr *ins)
|
|||
if (ins->op == BI_OPCODE_FADD_V2F16 && ins->clamp)
|
||||
return false;
|
||||
|
||||
/* +FCMP.v2f16 lacks abs modifier, use *FCMP.v2f16 instead */
|
||||
if (ins->op == BI_OPCODE_FCMP_V2F16 && (ins->src[0].abs || ins->src[1].abs))
|
||||
return false;
|
||||
|
||||
/* TODO: some additional fp16 constraints */
|
||||
return bi_opcode_props[ins->op].add;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue