summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/spirv_info_c.py
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-12-11 21:52:22 -0800
committerJason Ekstrand <[email protected]>2018-01-08 14:57:44 -0800
commitab85fd02d56c66d25dfdd2d999884a7dfb83da36 (patch)
tree293d12e00279d9e72ce30f29af8716d9ee6983f6 /src/compiler/spirv/spirv_info_c.py
parent296046556ac89cae6ad73f4195025ffd2203c919 (diff)
spirv: Make 'info' a local array spirv_info_c.py
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_info_c.py')
-rw-r--r--src/compiler/spirv/spirv_info_c.py8
1 files 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))