mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
nv50: DPH
This commit is contained in:
parent
7145ab214f
commit
e02c63bc10
1 changed files with 7 additions and 0 deletions
|
|
@ -1337,6 +1337,13 @@ bld_instruction(struct bld_context *bld,
|
|||
FOR_EACH_DST0_ENABLED_CHANNEL(c, insn)
|
||||
dst0[c] = temp;
|
||||
break;
|
||||
case TGSI_OPCODE_DPH:
|
||||
src0 = bld_dot(bld, insn, 3);
|
||||
src1 = emit_fetch(bld, insn, 1, 3);
|
||||
temp = bld_insn_2(bld, NV_OP_ADD, src0, src1);
|
||||
FOR_EACH_DST0_ENABLED_CHANNEL(c, insn)
|
||||
dst0[c] = temp;
|
||||
break;
|
||||
case TGSI_OPCODE_DST:
|
||||
if (insn->Dst[0].Register.WriteMask & 1)
|
||||
dst0[0] = bld_imm_f32(bld, 1.0f);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue