aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2016-01-13 04:48:41 +0100
committerRoland Scheidegger <[email protected]>2016-01-13 04:48:41 +0100
commit38cdcb000d6890f3bab479ab8061d9811ded9d39 (patch)
treeb955b7cf55250c0e977df8264a2b04eac058fae1 /src/gallium/drivers/llvmpipe
parent49ec647c3b724c53f4be45ed97f8d8b1046e7ccd (diff)
llvmpipe: (trivial) use cast wrapper for __m128d to __m128 casts
some compiler was unhappy.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 4925da98bdb..aa241761586 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -993,8 +993,8 @@ calc_fixed_position(struct lp_setup_context *setup,
v0r = _mm_load_sd((const double *)v0[0]);
v1r = _mm_load_sd((const double *)v1[0]);
v2r = _mm_load_sd((const double *)v2[0]);
- vxy0xy2 = (__m128)_mm_unpacklo_pd(v0r, v2r);
- vxy1xy0 = (__m128)_mm_unpacklo_pd(v1r, v0r);
+ vxy0xy2 = _mm_castpd_ps(_mm_unpacklo_pd(v0r, v2r));
+ vxy1xy0 = _mm_castpd_ps(_mm_unpacklo_pd(v1r, v0r));
vxy0xy2 = _mm_sub_ps(vxy0xy2, pix_offset);
vxy1xy0 = _mm_sub_ps(vxy1xy0, pix_offset);
vxy0xy2 = _mm_mul_ps(vxy0xy2, fixed_one);