summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/streaming-load-memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/streaming-load-memcpy.c')
-rw-r--r--src/mesa/main/streaming-load-memcpy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/streaming-load-memcpy.c b/src/mesa/main/streaming-load-memcpy.c
index d7147afdc5c..32854b60eb2 100644
--- a/src/mesa/main/streaming-load-memcpy.c
+++ b/src/mesa/main/streaming-load-memcpy.c
@@ -59,6 +59,9 @@ _mesa_streaming_load_memcpy(void *restrict dst, void *restrict src, size_t len)
len -= MIN2(bytes_before_alignment_boundary, len);
}
+ if (len >= 64)
+ _mm_mfence();
+
while (len >= 64) {
__m128i *dst_cacheline = (__m128i *)d;
__m128i *src_cacheline = (__m128i *)s;