summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-28 17:12:48 -0800
committerEric Anholt <[email protected]>2019-01-29 16:00:25 -0800
commit0c05198d6b5ba0fffafd3db410aa839629bb30b7 (patch)
tree5aef7cff18be142339252dfc5d8651ac4aca9faf /src/gallium
parent385843ac3ce1b868d9e24fcb2dbc0c8d5f5a7c99 (diff)
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%
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/v3d/meson.build11
1 files 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,
)