1 # HG changeset patch |
1 # HG changeset patch |
2 # User msirringhaus@suse.de |
2 # User msirringhaus@suse.de |
3 # Date 1558452418 -7200 |
3 # Date 1558452418 -7200 |
4 # Tue May 21 17:26:58 2019 +0200 |
4 # Tue May 21 17:26:58 2019 +0200 |
5 # Node ID 6cd963b6c82ea6629aaf4050851789b78f310338 |
5 # Node ID 6cd963b6c82ea6629aaf4050851789b78f310338 |
6 # Parent 602e92722e765a3c238d3b96b26c0c8063b5eeb4 |
6 # Parent 010a35335b4e45e222b9efdbda24fd1963202ecf |
7 imported patch mozilla-ppc-altivec_static_inline.patch |
7 imported patch mozilla-ppc-altivec_static_inline.patch |
8 |
8 |
9 diff -r 602e92722e76 -r 6cd963b6c82e gfx/qcms/transform-altivec.c |
9 diff --git a/gfx/qcms/transform-altivec.cpp b/gfx/qcms/transform-altivec.cpp |
10 --- a/gfx/qcms/transform-altivec.c Tue May 21 17:26:48 2019 +0200 |
10 --- a/gfx/qcms/transform-altivec.cpp |
11 +++ b/gfx/qcms/transform-altivec.c Tue May 21 17:26:58 2019 +0200 |
11 +++ b/gfx/qcms/transform-altivec.cpp |
12 @@ -30,7 +30,7 @@ |
12 @@ -25,17 +25,17 @@ |
|
13 |
|
14 #include "qcmsint.h" |
|
15 |
|
16 #define FLOATSCALE (float)(PRECACHE_OUTPUT_SIZE) |
|
17 #define CLAMPMAXVAL (((float) (PRECACHE_OUTPUT_SIZE - 1)) / PRECACHE_OUTPUT_SIZE) |
13 static const ALIGN float floatScaleX4 = FLOATSCALE; |
18 static const ALIGN float floatScaleX4 = FLOATSCALE; |
14 static const ALIGN float clampMaxValueX4 = CLAMPMAXVAL; |
19 static const ALIGN float clampMaxValueX4 = CLAMPMAXVAL; |
15 |
20 |
16 -inline vector float load_aligned_float(float *dataPtr) |
21 -inline vector float load_aligned_float(float *dataPtr) |
17 +static inline vector float load_aligned_float(float *dataPtr) |
22 +static inline vector float load_aligned_float(float *dataPtr) |
18 { |
23 { |
19 vector float data = vec_lde(0, dataPtr); |
24 vector float data = vec_lde(0, dataPtr); |
20 vector unsigned char moveToStart = vec_lvsl(0, dataPtr); |
25 vector unsigned char moveToStart = vec_lvsl(0, dataPtr); |
|
26 return vec_perm(data, data, moveToStart); |
|
27 } |
|
28 |
|
29 template <size_t kRIndex, size_t kGIndex, size_t kBIndex, size_t kAIndex = NO_A_INDEX> |
|
30 static void qcms_transform_data_template_lut_altivec(const qcms_transform *transform, |