Mesa (master): vk/util: remove unneeded array index

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Apr 8 17:03:25 UTC 2019


Module: Mesa
Branch: master
Commit: ed91ca0629a929bd3031d0acd908f7b46b6eb80c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed91ca0629a929bd3031d0acd908f7b46b6eb80c

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Fri Apr  5 15:58:28 2019 +0100

vk/util: remove unneeded array index

This is an array of 1, so [0] is the only content, and meson already
flattens the list so this is unnecessary.
Also, all the other uses of vk_api_xml don't do that.

Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

 src/vulkan/util/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/util/meson.build b/src/vulkan/util/meson.build
index 1e15fcb8dda..ca292bbf7d6 100644
--- a/src/vulkan/util/meson.build
+++ b/src/vulkan/util/meson.build
@@ -28,7 +28,7 @@ files_vulkan_util = files(
 
 vk_enum_to_str = custom_target(
   'vk_enum_to_str',
-  input : ['gen_enum_to_str.py', vk_api_xml[0]],
+  input : ['gen_enum_to_str.py', vk_api_xml],
   output : ['vk_enum_to_str.c', 'vk_enum_to_str.h'],
   command : [
     prog_python, '@INPUT0@', '--xml', '@INPUT1@', '--outdir',




More information about the mesa-commit mailing list