From 0c05198d6b5ba0fffafd3db410aa839629bb30b7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 28 Jan 2019 17:12:48 -0800 Subject: [PATCH] v3d: Always enable the NEON utile load/store code. I can't imagine the new HW block being paired with a v6 CPU, so don't bother with the CPU detection that vc4 had to do. Improves 1024x1024 TexImage on my 7278 by 47.3229% +/- 0.679632% --- src/gallium/drivers/v3d/meson.build | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/v3d/meson.build b/src/gallium/drivers/v3d/meson.build index 18e68a62696..9fd80a2e3e5 100644 --- a/src/gallium/drivers/v3d/meson.build +++ b/src/gallium/drivers/v3d/meson.build @@ -52,10 +52,11 @@ files_per_version = files( 'v3dx_state.c', ) -v3dv3_c_args = [] +v3d_args = ['-DV3D_BUILD_NEON'] + dep_v3dv3 = dependency('v3dv3', required: false) if dep_v3dv3.found() - v3dv3_c_args = '-DUSE_V3D_SIMULATOR' + v3d_args += '-DUSE_V3D_SIMULATOR' endif v3d_versions = ['33', '41'] @@ -69,7 +70,7 @@ foreach ver : v3d_versions inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_drivers, inc_drm_uapi, ], - c_args : [c_vis_args, v3dv3_c_args, '-DV3D_VERSION=' + ver], + c_args : [c_vis_args, v3d_args, '-DV3D_VERSION=' + ver], cpp_args : [cpp_vis_args], dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind], ) @@ -83,8 +84,8 @@ libv3d = static_library( inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_drivers, inc_drm_uapi, ], - c_args : [c_vis_args, v3dv3_c_args], - cpp_args : [cpp_vis_args, v3dv3_c_args], + c_args : [c_vis_args, v3d_args], + cpp_args : [cpp_vis_args, v3d_args], dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers], link_with: per_version_libs, ) -- 2.30.2