summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-04-21 15:38:45 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2023-02-01 15:38:08 +0200
commitf2c271130f33d0ec9a1f6400ddb288f6d776e0c8 (patch)
tree189cbfa54c4abeff0d76f6b1ddce5d28e9c579b3
parent2b552ed7d528d24b688b992a5164e062827d0ccb (diff)
sna: Don't emit sse2 code where not wanted
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ä <ville.syrjala@linux.intel.com>
-rw-r--r--src/sna/blt.c2
1 files changed, 1 insertions, 1 deletions
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