From ab85fd02d56c66d25dfdd2d999884a7dfb83da36 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 11 Dec 2017 21:52:22 -0800 Subject: [PATCH] spirv: Make 'info' a local array spirv_info_c.py Reviewed-by: Lionel Landwerlin --- src/compiler/spirv/spirv_info_c.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)) -- 2.30.2