From 874635cc490add78b2cf274cab2ac405273a7aae Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 16 Feb 2018 10:48:49 +0100 Subject: [PATCH] Do not use a vector function to write into a scalar variable even if vectorize support is disabled --- OpenCL/inc_rp.cl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenCL/inc_rp.cl b/OpenCL/inc_rp.cl index 25ab5b62a..23064b5ee 100644 --- a/OpenCL/inc_rp.cl +++ b/OpenCL/inc_rp.cl @@ -26,7 +26,7 @@ void append_four_byte (const u32 *buf_src, const int off_src, u32 *buf_dst, cons const int dm = off_dst & 3; const int dm8 = dm * 8; - u64 t64 = hl32_to_64 (buf_src[sd + 1], buf_src[sd + 0]); + u64 t64 = hl32_to_64_S (buf_src[sd + 1], buf_src[sd + 0]); t64 >>= sm8; t64 &= 0xffffffff; @@ -49,7 +49,7 @@ void append_three_byte (const u32 *buf_src, const int off_src, u32 *buf_dst, con const int dm = off_dst & 3; const int dm8 = dm * 8; - u64 t64 = hl32_to_64 (buf_src[sd + 1], buf_src[sd + 0]); + u64 t64 = hl32_to_64_S (buf_src[sd + 1], buf_src[sd + 0]); t64 >>= sm8; t64 &= 0x00ffffff; @@ -72,7 +72,7 @@ void append_two_byte (const u32 *buf_src, const int off_src, u32 *buf_dst, const const int dm = off_dst & 3; const int dm8 = dm * 8; - u64 t64 = hl32_to_64 (buf_src[sd + 1], buf_src[sd + 0]); + u64 t64 = hl32_to_64_S (buf_src[sd + 1], buf_src[sd + 0]); t64 >>= sm8; t64 &= 0x0000ffff;