From 7436669d55d3041c8f4eaa938ad38c3ec1dd7efa Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Mon, 7 Nov 2022 10:44:39 +0800 Subject: [PATCH] mesa/vbo: Replace the usage of cpu_has_sse4_1 with util_get_cpu_caps()->has_sse4_1 in vbo/vbo_minmax_index.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yonggang Luo Reviewed-by: Marek Olšák Part-of: --- src/mesa/vbo/vbo_minmax_index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/vbo/vbo_minmax_index.c b/src/mesa/vbo/vbo_minmax_index.c index 6ff1655106a..c761780f686 100644 --- a/src/mesa/vbo/vbo_minmax_index.c +++ b/src/mesa/vbo/vbo_minmax_index.c @@ -27,11 +27,11 @@ */ #include "util/glheader.h" +#include "util/u_cpu_detect.h" #include "main/context.h" #include "main/varray.h" #include "main/macros.h" #include "main/sse_minmax.h" -#include "x86/common_x86_asm.h" #include "util/hash_table.h" #include "util/u_memory.h" #include "pipe/p_state.h" @@ -249,7 +249,7 @@ vbo_get_minmax_index_mapped(unsigned count, unsigned index_size, } else { #if defined(USE_SSE41) - if (cpu_has_sse4_1) { + if (util_get_cpu_caps()->has_sse4_1) { _mesa_uint_array_min_max(ui_indices, &min_ui, &max_ui, count); } else