[Pixman] [PATCH] vmx: Fix vector loads on ppc64le

Adam Jackson ajax at redhat.com
Thu May 10 14:47:09 UTC 2018


From: Dan HorĂ¡k <dan at danny.cz>

Bugzilla: https://bugzilla.redhat.com/1572540
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 pixman/pixman-vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pixman/pixman-vmx.c b/pixman/pixman-vmx.c
index 41efdcf..52de37e 100644
--- a/pixman/pixman-vmx.c
+++ b/pixman/pixman-vmx.c
@@ -227,7 +227,7 @@ do							  \
 #define COMPUTE_SHIFT_MASKC(dest, source, mask)
 
 # define LOAD_VECTOR(source)				\
-    v ## source = *((typeof(v ## source)*)source);
+    v ## source = (typeof(v ## source))vec_xl(0, source);
 
 # define LOAD_VECTORS(dest, source)			\
     LOAD_VECTOR(source);				\
-- 
2.17.0



More information about the Pixman mailing list