From: Eric Anholt Date: Thu, 13 Jul 2017 18:02:37 +0000 (-0700) Subject: broadcom/genxml: Use the same "gen" attr for HW version as Intel does. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd37ce6bec9b66364ab50d200323890020722e75;p=mesa.git broadcom/genxml: Use the same "gen" attr for HW version as Intel does. This will let us reuse their tools more easily. --- diff --git a/src/broadcom/cle/gen_pack_header.py b/src/broadcom/cle/gen_pack_header.py index 528ff8fa439..1ebeec7a794 100644 --- a/src/broadcom/cle/gen_pack_header.py +++ b/src/broadcom/cle/gen_pack_header.py @@ -383,8 +383,8 @@ class Parser(object): def start_element(self, name, attrs): if name == "vcxml": - self.platform = "V3D {}".format(attrs["ver"]) - self.ver = attrs["ver"].replace('.', '') + self.platform = "V3D {}".format(attrs["gen"]) + self.ver = attrs["gen"].replace('.', '') print(pack_header % {'license': license, 'platform': self.platform, 'guard': self.gen_guard()}) elif name in ("packet", "struct", "register"): default_field = None diff --git a/src/broadcom/cle/v3d_packet_v21.xml b/src/broadcom/cle/v3d_packet_v21.xml index 7a957e64072..5d285334bcc 100644 --- a/src/broadcom/cle/v3d_packet_v21.xml +++ b/src/broadcom/cle/v3d_packet_v21.xml @@ -1,4 +1,4 @@ - +