From 62d1bd1ea20d70f82ee25c9efc069636ee3071bf Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 3 Aug 2020 11:55:38 +1000 Subject: [PATCH] [common] framebuffer: use stream load instead of plain load --- common/src/framebuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/framebuffer.c b/common/src/framebuffer.c index 2d291f97..04eae2d2 100644 --- a/common/src/framebuffer.c +++ b/common/src/framebuffer.c @@ -61,7 +61,7 @@ bool framebuffer_read(const FrameBuffer * frame, void * dst, size_t dstpitch, __m128i * s = (__m128i *)(frame->data + rp); for(int i = 0; i < blocks; ++i, ++s, d += 16) - _mm_stream_si128((__m128i *)d, _mm_load_si128(s)); + _mm_stream_si128((__m128i *)d, _mm_stream_load_si128(s)); if (left) memcpy(d, frame->data + rp + blocks * 16, left); @@ -116,7 +116,7 @@ bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size) /* copy in chunks */ while(size > 15) { - _mm_stream_si128((__m128i *)(frame->data + wp), _mm_loadu_si128(s++)); + _mm_stream_si128((__m128i *)(frame->data + wp), _mm_stream_load_si128(s++)); size -= 16; wp += 16;