turnip: Deconflict vk_format_table regeneration
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 12 Mar 2019 23:38:02 +0000 (00:38 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 16 Mar 2019 14:38:51 +0000 (14:38 +0000)
Avoids

src/freedreno/vulkan/meson.build:42:0: ERROR:  Tried to create target "vk_format_table.c", but a target of that name already exists.

when building both radv and turnip.

Fixes: 26380b3a9f8 "turnip: Add driver skeleton (v2)"
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/amd/vulkan/meson.build
src/freedreno/vulkan/meson.build

index 06c33ca45dc97585d3fd145ed32ee2fa8cfd0012..385b5ada0b9f2d718b349194b1f14dcd2a2398cc 100644 (file)
@@ -39,8 +39,8 @@ radv_extensions_c = custom_target(
   ],
 )
 
-vk_format_table_c = custom_target(
-  'vk_format_table.c',
+amd_vk_format_table_c = custom_target(
+  'amd_vk_format_table.c',
   input : ['vk_format_table.py', 'vk_format_layout.csv'],
   output : 'vk_format_table.c',
   command : [prog_python, '@INPUT@'],
@@ -130,7 +130,7 @@ endif
 
 libvulkan_radeon = shared_library(
   'vulkan_radeon',
-  [libradv_files, radv_entrypoints, radv_extensions_c, vk_format_table_c, sha1_h],
+  [libradv_files, radv_entrypoints, radv_extensions_c, amd_vk_format_table_c, sha1_h],
   include_directories : [
     inc_common, inc_amd, inc_amd_common, inc_compiler, inc_vulkan_util,
     inc_vulkan_wsi,
index 40a0105e9aedcd6cb33f15a4ad36e39eaed1bdf6..f58aff2cbdbadfc3051b9174add4545693ccefcd 100644 (file)
@@ -39,8 +39,8 @@ tu_extensions_c = custom_target(
   ],
 )
 
-vk_format_table_c = custom_target(
-  'vk_format_table.c',
+tu_format_table_c = custom_target(
+  'tu_format_table.c',
   input : ['vk_format_table.py', 'vk_format_layout.csv'],
   output : 'vk_format_table.c',
   command : [prog_python, '@INPUT@'],
@@ -86,7 +86,7 @@ endif
 
 libvulkan_freedreno = shared_library(
   'vulkan_freedreno',
-  [libtu_files, tu_entrypoints, tu_extensions_c, vk_format_table_c],
+  [libtu_files, tu_entrypoints, tu_extensions_c, tu_format_table_c],
   include_directories : [
     inc_common,
     inc_compiler,