From: Jason Ekstrand Date: Tue, 12 Dec 2017 05:52:22 +0000 (-0800) Subject: spirv: Make 'info' a local array spirv_info_c.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab85fd02d56c66d25dfdd2d999884a7dfb83da36;p=mesa.git spirv: Make 'info' a local array spirv_info_c.py Reviewed-by: Lionel Landwerlin --- diff --git a/src/compiler/spirv/spirv_info_c.py b/src/compiler/spirv/spirv_info_c.py index d898bf0131b..4a6a81524b3 100644 --- a/src/compiler/spirv/spirv_info_c.py +++ b/src/compiler/spirv/spirv_info_c.py @@ -78,8 +78,10 @@ if __name__ == "__main__": spirv_info = json.JSONDecoder().decode(open(pargs.json, "r").read()) - capabilities = collect_data(spirv_info, "Capability") - decorations = collect_data(spirv_info, "Decoration") + info = [ + collect_data(spirv_info, "Capability"), + collect_data(spirv_info, "Decoration"), + ] with open(pargs.out, 'w') as f: - f.write(TEMPLATE.render(info=[capabilities, decorations])) + f.write(TEMPLATE.render(info=info))