meson: Enable VC4's NEON assembly support.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Tested-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -489,8 +489,8 @@ endif
|
|||||||
|
|
||||||
# FIXME: enable asm when cross compiler
|
# FIXME: enable asm when cross compiler
|
||||||
# This is doable (autotools does it), but it's not of immediate concern
|
# This is doable (autotools does it), but it's not of immediate concern
|
||||||
if meson.is_cross_build()
|
if meson.is_cross_build() and host_machine.cpu_family().startswith('x86')
|
||||||
message('Cross compiling, disabling asm')
|
message('Cross compiling, disabling x86/x86_64 asm')
|
||||||
with_asm = false
|
with_asm = false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -81,6 +81,18 @@ files_libvc4 = files(
|
|||||||
'vc4_uniforms.c',
|
'vc4_uniforms.c',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
libvc4_neon = []
|
||||||
|
if with_asm_arch == 'arm'
|
||||||
|
libvc4_neon = static_library(
|
||||||
|
'vc4_neon',
|
||||||
|
'vc4_tiling_lt_neon.c',
|
||||||
|
include_directories : [
|
||||||
|
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom
|
||||||
|
],
|
||||||
|
c_args : '-mfpu=neon',
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
simpenrose_c_args = []
|
simpenrose_c_args = []
|
||||||
dep_simpenrose = dependency('simpenrose', required : false)
|
dep_simpenrose = dependency('simpenrose', required : false)
|
||||||
if dep_simpenrose.found()
|
if dep_simpenrose.found()
|
||||||
@@ -94,6 +106,7 @@ libvc4 = static_library(
|
|||||||
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
|
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
|
||||||
inc_gallium_drivers, inc_drm_uapi,
|
inc_gallium_drivers, inc_drm_uapi,
|
||||||
],
|
],
|
||||||
|
link_with: libvc4_neon,
|
||||||
c_args : [c_vis_args, simpenrose_c_args],
|
c_args : [c_vis_args, simpenrose_c_args],
|
||||||
cpp_args : [cpp_vis_args],
|
cpp_args : [cpp_vis_args],
|
||||||
dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind],
|
dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind],
|
||||||
|
Reference in New Issue
Block a user