radv: Fix architecture in radeon_icd.{arch}.json

Use the host arch, not the target arch. In Meson and in recent
Autotools, the host arch is where the binary will be used. The target
arch is useful only when compiling a compiler.

See: http://mesonbuild.com/Cross-compilation.html
See: https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
Reported-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Chad Versace 2017-11-09 14:55:37 -08:00
parent 2a4798ad98
commit 9ec33972cc

View file

@ -130,7 +130,7 @@ radv_data.set('libvulkan_radeon_path', libvulkan_radeon.full_path())
configure_file(
configuration : radv_data,
input : 'radeon_icd.json.in',
output : 'radeon_icd.@0@.json'.format(target_machine.cpu()),
output : 'radeon_icd.@0@.json'.format(host_machine.cpu()),
install_dir : with_vulkan_icd_dir,
)
configure_file(