scons: Add PROGRAM_NIR_FILES.
authorVinson Lee <vlee@freedesktop.org>
Sat, 12 May 2018 07:27:52 +0000 (00:27 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 12 May 2018 07:50:05 +0000 (00:50 -0700)
Fix SCons build error.

  Linking build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1.5 ...
build/linux-x86_64-debug/mesa/libmesa.a(st_program.os): In function `st_translate_prog_to_nir':
src/mesa/state_tracker/st_program.c:392: undefined reference to `prog_to_nir'

Fixes: 5c33e8c7729e ("st/nir: use NIR for asm programs")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/mesa/SConscript

index ba98ad4323c519cd39060290e49d13f706b80649..5a21b64f561e477d561f7a238d2c416600364fea 100644 (file)
@@ -42,6 +42,7 @@ env.CFile('program/program_parse.tab.c', 'program/program_parse.y')
 mesa_sources = (
     source_lists['MESA_FILES'] +
     source_lists['PROGRAM_FILES'] +
+    source_lists['PROGRAM_NIR_FILES'] +
     source_lists['STATETRACKER_FILES']
 )