vc4: Remove the usage of USE_ARM_ASM

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36635>
This commit is contained in:
Yonggang Luo 2025-08-08 00:59:03 +08:00 committed by Marge Bot
parent b2761d1481
commit 82bafaa1fa
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,6 @@ if host_machine.cpu_family() == 'arm'
c_args : ['-mfpu=neon', '-DV3D_BUILD_NEON'], c_args : ['-mfpu=neon', '-DV3D_BUILD_NEON'],
dependencies : vc4_deps, dependencies : vc4_deps,
) )
vc4_c_args += '-DUSE_ARM_ASM'
endif endif
if dep_simpenrose.found() if dep_simpenrose.found()

View file

@ -26,6 +26,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include "util/detect_arch.h"
#include "util/macros.h" #include "util/macros.h"
#include "util/u_cpu_detect.h" #include "util/u_cpu_detect.h"
@ -89,7 +90,7 @@ vc4_load_lt_image(void *dst, uint32_t dst_stride,
void *src, uint32_t src_stride, void *src, uint32_t src_stride,
int cpp, const struct pipe_box *box) int cpp, const struct pipe_box *box)
{ {
#ifdef USE_ARM_ASM #if DETECT_ARCH_ARM
if (util_get_cpu_caps()->has_neon) { if (util_get_cpu_caps()->has_neon) {
vc4_load_lt_image_neon(dst, dst_stride, src, src_stride, vc4_load_lt_image_neon(dst, dst_stride, src, src_stride,
cpp, box); cpp, box);
@ -105,7 +106,7 @@ vc4_store_lt_image(void *dst, uint32_t dst_stride,
void *src, uint32_t src_stride, void *src, uint32_t src_stride,
int cpp, const struct pipe_box *box) int cpp, const struct pipe_box *box)
{ {
#ifdef USE_ARM_ASM #if DETECT_ARCH_ARM
if (util_get_cpu_caps()->has_neon) { if (util_get_cpu_caps()->has_neon) {
vc4_store_lt_image_neon(dst, dst_stride, src, src_stride, vc4_store_lt_image_neon(dst, dst_stride, src, src_stride,
cpp, box); cpp, box);