}
}
+const char *
+bi_interp_mode_name(enum bifrost_interp_mode mode)
+{
+ switch (mode) {
+ case BIFROST_INTERP_PER_FRAG: return ".per_frag";
+ case BIFROST_INTERP_CENTROID: return ".centroid";
+ case BIFROST_INTERP_DEFAULT: return "";
+ case BIFROST_INTERP_EXPLICIT: return ".explicit";
+ default: return ".unknown";
+ }
+}
+
const char *
bi_ldst_type_name(enum bifrost_ldst_type type)
{
const char * bi_minmax_mode_name(enum bifrost_minmax_mode mod);
const char * bi_round_mode_name(enum bifrost_roundmode mod);
const char * bi_csel_cond_name(enum bifrost_csel_cond cond);
+const char * bi_interp_mode_name(enum bifrost_interp_mode mode);
const char * bi_ldst_type_name(enum bifrost_ldst_type type);
#endif
fprintf(fp, ".reuse");
if (ADD.op & 0x400)
fprintf(fp, ".flat");
- switch ((ADD.op >> 7) & 0x3) {
- case BIFROST_INTERP_PER_FRAG:
- fprintf(fp, ".per_frag");
- break;
- case BIFROST_INTERP_CENTROID:
- fprintf(fp, ".centroid");
- break;
- case BIFROST_INTERP_DEFAULT:
- break;
- case BIFROST_INTERP_EXPLICIT:
- fprintf(fp, ".explicit");
- break;
- }
+ fprintf(fp, "%s", bi_interp_mode_name((ADD.op >> 7) & 0x3));
fprintf(fp, ".v%d", ((ADD.op >> 5) & 0x3) + 1);
} else if (info.src_type == ADD_BRANCH) {
enum bifrost_branch_code branchCode = (enum bifrost_branch_code) ((ADD.op >> 6) & 0x3f);