[Mesa-stable] [PATCH] swr: [rasterizer jitter] fix llvm >= 7 build break

Chuck Atkins chuck.atkins at kitware.com
Thu Sep 20 18:26:00 UTC 2018


Hi Tim, Bruce, George,

diff --git
> a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
> b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
> index 7605823c04..c58a7552a3 100644
> ---
> a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
> +++
> b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
> @@ -76,7 +76,11 @@ namespace SwrJit
>          {"meta.intrinsic.VCVTPS2PH", Intrinsic::x86_vcvtps2ph_256},
>          {"meta.intrinsic.VPTESTC", Intrinsic::x86_avx_ptestc_256},
>          {"meta.intrinsic.VPTESTZ", Intrinsic::x86_avx_ptestz_256},
> +#if LLVM_VERSION_MAJOR >= 7
> +        {"meta.intrinsic.VFMADDPS", Intrinsic::fma},
> +#else
>          {"meta.intrinsic.VFMADDPS", Intrinsic::x86_fma_vfmadd_ps_256},
> +#endif
>          {"meta.intrinsic.VPHADDD", Intrinsic::x86_avx2_phadd_d},
>          {"meta.intrinsic.PDEP32", Intrinsic::x86_bmi_pdep_32},
>          {"meta.intrinsic.RDTSC", Intrinsic::x86_rdtsc},
>

This is the only piece I really wasn't sure about.  Everything else is just
simple function name changes.

- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-stable/attachments/20180920/3c361b81/attachment.html>


More information about the mesa-stable mailing list