pixman: Branch 'master' - 2 commits
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Dec 2 03:03:11 UTC 2024
.gitlab-ci.d/03-test.yml | 12 ------------
pixman/pixman-vmx.c | 18 +++---------------
2 files changed, 3 insertions(+), 27 deletions(-)
New commits:
commit e627c57442e388257347317d0e0bc1be3122cb52
Author: Marek Pikuła <m.pikula at partner.samsung.com>
Date: Sat Nov 30 14:13:17 2024 -0500
ci: Enable ppc64le testing with clang
diff --git a/.gitlab-ci.d/03-test.yml b/.gitlab-ci.d/03-test.yml
index 66d24bb..383e7e2 100644
--- a/.gitlab-ci.d/03-test.yml
+++ b/.gitlab-ci.d/03-test.yml
@@ -128,19 +128,7 @@ include:
- local: .gitlab-ci.d/templates/test.yml
inputs:
target: linux-ppc64le
- toolchain: [gnu]
qemu_cpu: [power10]
- # TODO: Merge up after resolving
- # https://gitlab.freedesktop.org/pixman/pixman/-/issues/109
- - local: .gitlab-ci.d/templates/test.yml
- inputs:
- target: linux-ppc64le
- toolchain: [llvm]
- qemu_cpu: [power10]
- job_name_prefix: "."
- job_name_suffix: ":failing"
- allow_failure: true
- retry: 0
- local: .gitlab-ci.d/templates/test.yml
inputs:
target: linux-riscv64
commit 207626180d0282bb14a50f2e494174f54ac8a6ce
Author: Matt Turner <mattst88 at gmail.com>
Date: Sat Nov 30 12:24:25 2024 -0500
vmx: Fix is_opaque, is_zero, is_transparent functions
These functions were copied much too literally from pixman-sse2.c in
commit c12ee95 ("vmx: add helper functions")
Fixes: c12ee95 ("vmx: add helper functions")
Closes: https://gitlab.freedesktop.org/pixman/pixman/-/issues/52
diff --git a/pixman/pixman-vmx.c b/pixman/pixman-vmx.c
index d4b5dc8..ceac1f3 100644
--- a/pixman/pixman-vmx.c
+++ b/pixman/pixman-vmx.c
@@ -396,31 +396,19 @@ unpack_565_to_8888 (vector unsigned int lo)
static force_inline int
is_opaque (vector unsigned int x)
{
- uint32_t cmp_result;
- vector bool int ffs = vec_cmpeq(x, x);
-
- cmp_result = vec_all_eq(x, ffs);
-
- return (cmp_result & 0x8888) == 0x8888;
+ return vec_all_eq (vec_and (x, mask_ff000000), mask_ff000000);
}
static force_inline int
is_zero (vector unsigned int x)
{
- uint32_t cmp_result;
-
- cmp_result = vec_all_eq(x, (vector unsigned int) AVV(0));
-
- return cmp_result == 0xffff;
+ return vec_all_eq (x, (vector unsigned int) AVV (0));
}
static force_inline int
is_transparent (vector unsigned int x)
{
- uint32_t cmp_result;
-
- cmp_result = vec_all_eq(x, (vector unsigned int) AVV(0));
- return (cmp_result & 0x8888) == 0x8888;
+ return vec_all_eq (vec_and (x, mask_ff000000), (vector unsigned int) AVV (0));
}
static force_inline uint32_t
More information about the xorg-commit
mailing list