While lima still doesn't support some kinds of intrinsics, it is more
helpful to display the name of the unsupported instr->intrinsic to make
debugging easier.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
return true;
}
default:
- gpir_error("unsupported nir_intrinsic_instr %d\n", instr->intrinsic);
+ gpir_error("unsupported nir_intrinsic_instr %s\n",
+ nir_intrinsic_infos[instr->intrinsic].name);
return false;
}
}
return &snode->node;
default:
- ppir_error("unsupported nir_intrinsic_instr %d\n", instr->intrinsic);
+ ppir_error("unsupported nir_intrinsic_instr %s\n",
+ nir_intrinsic_infos[instr->intrinsic].name);
return NULL;
}
}