mesa/src
Emil Velikov 1cd4fde053 gallium/targets: don't leave an empty target directory(ies)
Some drivers do not support certain targets - for example nouveau
doesn't do VAAPI, while freedreno doesn't do of the video backends.

As such if we enter vdpau when building freedreno/ilo/etc, a vdpau/
folder will be created, empty library will be build and almost
immediately removed. Thus keeping an empty vdpau/ folder around.

There are two ways to fix this.

 * add substantial tracking in configure/makefiles so that we never end
up in targets/vdpau
 Downsides:
Error prone, as the configure checks and the 'include
gallium/drivers/foo/Automake.inc' can easily get out of sync.

 * remove the folder, if empty, alongside the empty library.
 Downsides:
In the latter case vdpau/ might be empty before the mesa build has
started, yet we'll remove it either way.

This patch implements the latter option, as the downside isn't that
significant, plus the patch is way shorter ;-)

v2: use has_drivers to track since TARGET_DRIVERS can contain space,
hence neither string comparison nor -n/-z works correctly.

Gentoo Bugzilla: https://bugs.gentoo.org/545230
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2017-03-04 15:26:43 +00:00
..
amd radv: use enum_to_str util functions. 2017-03-04 15:05:14 +00:00
compiler nir/int64: Properly handle imod/irem 2017-03-03 13:59:27 -08:00
egl egl/wayland: Don't use DRM format codes for SHM 2017-03-01 18:36:55 +00:00
gallium gallium/targets: don't leave an empty target directory(ies) 2017-03-04 15:26:43 +00:00
gbm gbm/dri: fix memory leaks in error path 2017-01-27 17:56:58 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx/tests: automake: add dispatch-index-check to the tarball 2017-02-28 16:18:27 +00:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: Advertise shaderInt64 on Broadwell and above 2017-03-03 13:59:29 -08:00
loader egl/dri3: implement query surface hook 2017-02-28 10:11:42 +00:00
mapi glapi: Fix a comment typo 2017-03-03 20:29:12 +11:00
mesa mesa/main: *TextureSubImage* generates INVALID_OPERATION on wrong target 2017-03-03 08:14:53 +01:00
util util/disk_cache: compress individual cache entries 2017-03-03 12:09:08 +11:00
vulkan vulkan/wsi: Improve the DRI3 error message 2017-03-01 19:11:47 -08:00
Makefile.am vulkan: Build common Vulkan code earlier 2017-03-04 14:46:53 +00:00
SConscript