projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: Move _mesa_all_buffers_are_unmapped to arrayobj.c.
[mesa.git]
/
src
/
mesa
/
main
/
streaming-load-memcpy.c
diff --git
a/src/mesa/main/streaming-load-memcpy.c
b/src/mesa/main/streaming-load-memcpy.c
index d7147afdc5c436a8563ab366cb4e62e00d76e57a..32854b60eb223282a749af6a58e3d417271493bb 100644
(file)
--- 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;