[BRW_REGISTER_TYPE_V] = 2,
[BRW_REGISTER_TYPE_UV] = 2,
};
+ if (type >= ARRAY_SIZE(type_size))
+ return -1;
+
return type_size[type];
}
[BRW_REGISTER_TYPE_V] = "V",
[BRW_REGISTER_TYPE_UV] = "UV",
};
+ if (type >= ARRAY_SIZE(letters))
+ return "INVALID";
+
assert(type < ARRAY_SIZE(letters));
return letters[type];
}