[Mesa-dev] [PATCH 02/11] spirv: Make 'info' a local array spirv_info_c.py

Jason Ekstrand jason at jlekstrand.net
Sun Dec 17 05:46:12 UTC 2017


---
 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 d898bf0..4a6a815 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.5.0.400.gff86faf



More information about the mesa-dev mailing list