v3d: Always enable the NEON utile load/store code.
[mesa.git] / src / gallium / drivers / v3d / meson.build
index 18e68a6269681865b4a52bc3670fbbc9c8c4b6bd..9fd80a2e3e536d7149d4f6c7dfbbe8d3193cb275 100644 (file)
@@ -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,
 )