[Mesa-dev] [PATCH] st/va: hardlink driver instances to gallium_drv_video.so

Stefan Dirsch sndirsch at suse.de
Wed Apr 20 10:48:28 UTC 2016


Removes the need to set LIBVA_DRIVER_NAME=gallium for supported targets and is
consistent with vdpau and general gallium drivers.

Author: Jimmy Berry <jimmy at boombatower.com>

Signed-off-by: Jimmy Berry <jimmy at boombatower.com>
---
 src/gallium/targets/va/Makefile.am | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/gallium/targets/va/Makefile.am b/src/gallium/targets/va/Makefile.am
index 1edd5c2..df825b7 100644
--- a/src/gallium/targets/va/Makefile.am
+++ b/src/gallium/targets/va/Makefile.am
@@ -66,3 +66,17 @@ if HAVE_MESA_LLVM
 gallium_drv_video_la_LIBADD += $(LLVM_LIBS)
 gallium_drv_video_la_LDFLAGS += $(LLVM_LDFLAGS)
 endif
+
+# hardlink each megadriver instance, but don't actually have
+# gallium_drv_video.so in the set of final installed files.
+install-data-hook:
+	for i in $(TARGET_DRIVERS); do                                  \
+		ln -f $(DESTDIR)$(vadir)/gallium_drv_video.so                \
+		      $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
+	done;                                                           \
+	$(RM) $(DESTDIR)$(vadir)/gallium_drv_video.*
+
+uninstall-hook:
+	for i in $(TARGET_DRIVERS); do                                  \
+		$(RM) $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
+	done;
-- 
2.6.2



More information about the mesa-dev mailing list