Add a few missing ppir_op_ceil enum handling entries to implement
nir_op_fceil in lima ppir.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
case ppir_op_floor:
f->op = ppir_codegen_vec4_acc_op_floor;
break;
+ case ppir_op_ceil:
+ f->op = ppir_codegen_vec4_acc_op_ceil;
+ break;
case ppir_op_fract:
f->op = ppir_codegen_vec4_acc_op_fract;
break;
case ppir_op_floor:
f->op = ppir_codegen_float_acc_op_floor;
break;
+ case ppir_op_ceil:
+ f->op = ppir_codegen_float_acc_op_ceil;
+ break;
case ppir_op_fract:
f->op = ppir_codegen_float_acc_op_fract;
break;
[nir_op_fmin] = ppir_op_min,
[nir_op_frcp] = ppir_op_rcp,
[nir_op_ffloor] = ppir_op_floor,
+ [nir_op_fceil] = ppir_op_ceil,
[nir_op_ffract] = ppir_op_fract,
[nir_op_fand] = ppir_op_and,
[nir_op_for] = ppir_op_or,
PPIR_INSTR_SLOT_END
},
},
+ [ppir_op_ceil] = {
+ .name = "ceil",
+ .slots = (int []) {
+ PPIR_INSTR_SLOT_ALU_SCL_ADD, PPIR_INSTR_SLOT_ALU_VEC_ADD,
+ PPIR_INSTR_SLOT_END
+ },
+ },
[ppir_op_fract] = {
.name = "fract",
.slots = (int []) {