[Libva] [PATCH intel-driver] shaders/gen9: fix build when no intel-gen4asm available

U. Artie Eoff ullysses.a.eoff at intel.com
Wed Jul 20 16:33:18 UTC 2016


If intel-gen4asm version is < 1.9 or not installed then we
shouldn't run the associated make rules.

This fixes 'make dist' failure.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
 src/shaders/post_processing/gen9/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/shaders/post_processing/gen9/Makefile.am b/src/shaders/post_processing/gen9/Makefile.am
index 1e32dffd6abd..3e0c2cec5c80 100644
--- a/src/shaders/post_processing/gen9/Makefile.am
+++ b/src/shaders/post_processing/gen9/Makefile.am
@@ -56,6 +56,7 @@ all-local: $(TARGETS)
 
 SUFFIXES = .g9b .g9s .asm
 
+if HAVE_GEN4ASM
 $(INTEL_PP_GEN9_ASM): $(INTEL_PP_ASM) $(INTEL_PP_G9A)
 .asm.g9s:
 	$(AM_V_GEN)cpp $< > _pp0.$@;		\
@@ -63,6 +64,7 @@ $(INTEL_PP_GEN9_ASM): $(INTEL_PP_ASM) $(INTEL_PP_G9A)
 	rm _pp0.$@
 .g9s.g9b:
 	$(AM_V_GEN)$(GEN4ASM) -a -o $@ -g 9 $<
+endif
 
 CLEANFILES = $(INTEL_PP_GEN9_ASM)
 
-- 
2.1.0



More information about the Libva mailing list