From f2c271130f33d0ec9a1f6400ddb288f6d776e0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Thu, 21 Apr 2022 15:38:45 +0300 Subject: sna: Don't emit sse2 code where not wanted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the s/push_options/pop_options/ pragma so that we don't emit sse2 in the codepaths that run on non-sse2 machines as well. Seems gcc has become much more aggressive in its sse2 usage recently and I'm now hitting sse2 instructions in choose_memcpy_tiled_x() on my non-sse2 P3 machine. Signed-off-by: Ville Syrjälä --- src/sna/blt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/blt.c b/src/sna/blt.c index afc719f6..803c5142 100644 --- a/src/sna/blt.c +++ b/src/sna/blt.c @@ -631,7 +631,7 @@ memcpy_between_tiled_x__swizzle_0__sse2(const void *src, void *dst, int bpp, } } -#pragma GCC push_options +#pragma GCC pop_options #endif fast void -- cgit v1.2.3