scons: fix SPIR-V -> NIR build
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 12 Oct 2020 13:39:27 +0000 (14:39 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Tue, 13 Oct 2020 15:53:10 +0000 (16:53 +0100)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Fixes: 18f9fc919e1 ('spirv: add and use a generator id enum')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7096>

src/compiler/SConscript.spirv

index 4941088..65ced55 100644 (file)
@@ -39,6 +39,13 @@ env.CodeGenerate(
     command = python_cmd + ' $SCRIPT $SOURCE $TARGET'
 )
 
+env.CodeGenerate(
+    target = 'spirv/vtn_generator_ids.h',
+    script = 'spirv/vtn_generator_ids_h.py',
+    source = ['spirv/spir-v.xml'],
+    command = python_cmd + ' $SCRIPT $SOURCE $TARGET'
+)
+
 # parse Makefile.sources
 source_lists = env.ParseSourceList('Makefile.sources')