diff options
author | Jimmy Berry <[email protected]> | 2016-04-21 15:05:41 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-06-13 15:31:29 +0100 |
commit | 0c0f841e5de27d01312f8857641668ca439b1ab1 (patch) | |
tree | 361258f2f1b22c93e51569eaae9e3c434ee356ef /src/gallium | |
parent | 1fb4179f927442354f93dfc8494f0236e50af838 (diff) |
st/va: hardlink driver instances to gallium_drv_video.so
Removes the need to set LIBVA_DRIVER_NAME=gallium for supported targets and is
consistent with vdpau and general gallium drivers.
Note: some versions of libva can detect the gallium name and use the
backend. Although that behaviour seems inconsistent since it only works
for some platforms/backends.
Cc: "12.0" <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/targets/va/Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/targets/va/Makefile.am b/src/gallium/targets/va/Makefile.am index 1edd5c2a5c6..df825b764a8 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; |