mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
glsl_to_tgsi: support DDY (ir_unop_dFdy)
This commit is contained in:
parent
a6705aa5ca
commit
3b0858f1ae
1 changed files with 1 additions and 6 deletions
|
|
@ -1271,6 +1271,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
|
|||
emit(ir, OPCODE_DDX, result_dst, op[0]);
|
||||
break;
|
||||
case ir_unop_dFdy:
|
||||
op[0].negate = ~op[0].negate;
|
||||
emit(ir, OPCODE_DDY, result_dst, op[0]);
|
||||
break;
|
||||
|
||||
|
|
@ -3487,12 +3488,6 @@ compile_tgsi_instruction(struct st_translate *t,
|
|||
case OPCODE_NOISE4:
|
||||
assert(!"OPCODE_NOISE should have been lowered\n");
|
||||
break;
|
||||
|
||||
case OPCODE_DDY:
|
||||
// TODO: copy emit_ddy() function from st_mesa_to_tgsi.c
|
||||
assert(!"OPCODE_DDY");
|
||||
//emit_ddy( t, dst[0], &inst->src[0] );
|
||||
break;
|
||||
|
||||
default:
|
||||
ureg_insn( ureg,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue