Stop fixing up bitmasks.

This seems to not be required anymore.
This commit is contained in:
Robin Voetter
2021-04-08 13:02:07 +02:00
parent fb5ca7cf90
commit efb63a5cac
2 changed files with 1 additions and 30 deletions

View File

@@ -119,7 +119,7 @@ fn parseBitmaskType(ty: *xml.Element) !registry.Declaration {
return registry.Declaration{
.name = ty.getCharData("name") orelse return error.InvalidRegistry,
.decl_type = .{.bitmask = .{
.bits_enum = ty.getAttribute("requires"),
.bits_enum = ty.getAttribute("requires") orelse ty.getAttribute("bitvalues"), // Who knows why these are different fields
.bitwidth = bitwidth,
}},
};