diff options
Diffstat (limited to 'src/gallium/drivers/etnaviv')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_compiler.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler.c b/src/gallium/drivers/etnaviv/etnaviv_compiler.c index 88f204cacaa..3ccb7373817 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler.c @@ -1664,33 +1664,6 @@ trans_lg2(const struct instr_translater *t, struct etna_compile *c, } static void -trans_dph(const struct instr_translater *t, struct etna_compile *c, - const struct tgsi_full_instruction *inst, struct etna_inst_src *src) -{ - /* - DP3 tmp.xyzw, src0.xyzw, src1,xyzw, void - ADD dst.xyzw, tmp.xyzw, void, src1.wwww - */ - struct etna_native_reg temp = etna_compile_get_inner_temp(c); - struct etna_inst ins[2] = { }; - - ins[0].opcode = INST_OPCODE_DP3; - ins[0].dst = etna_native_to_dst(temp, INST_COMPS_X | INST_COMPS_Y | - INST_COMPS_Z | INST_COMPS_W); - ins[0].src[0] = src[0]; - ins[0].src[1] = src[1]; - - ins[1].opcode = INST_OPCODE_ADD; - ins[1].sat = inst->Instruction.Saturate; - ins[1].dst = convert_dst(c, &inst->Dst[0]); - ins[1].src[0] = etna_native_to_src(temp, INST_SWIZ_IDENTITY); - ins[1].src[2] = swizzle(src[1], SWIZZLE(W, W, W, W)); - - emit_inst(c, &ins[0]); - emit_inst(c, &ins[1]); -} - -static void trans_sampler(const struct instr_translater *t, struct etna_compile *c, const struct tgsi_full_instruction *inst, struct etna_inst_src *src) @@ -1833,7 +1806,6 @@ static const struct instr_translater translaters[TGSI_OPCODE_LAST] = { INSTR(LRP, trans_lrp), INSTR(LIT, trans_lit), INSTR(SSG, trans_ssg), - INSTR(DPH, trans_dph), INSTR(SIN, trans_trig), INSTR(COS, trans_trig), |