mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
brw/builder: Add new style ALU3 builder
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31834>
This commit is contained in:
parent
8329c04521
commit
de45273307
1 changed files with 11 additions and 0 deletions
|
|
@ -477,6 +477,17 @@ namespace brw {
|
|||
const brw_reg &src2) const \
|
||||
{ \
|
||||
return emit(BRW_OPCODE_##op, dst, src0, src1, src2); \
|
||||
} \
|
||||
brw_reg \
|
||||
op(const brw_reg &src0, const brw_reg &src1, const brw_reg &src2, \
|
||||
fs_inst **out = NULL) const \
|
||||
{ \
|
||||
enum brw_reg_type inferred_dst_type = \
|
||||
brw_type_larger_of(brw_type_larger_of(src0.type, src1.type),\
|
||||
src2.type); \
|
||||
fs_inst *inst = op(vgrf(inferred_dst_type), src0, src1, src2); \
|
||||
if (out) *out = inst; \
|
||||
return inst->dst; \
|
||||
}
|
||||
|
||||
ALU3(ADD3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue