[Mesa-dev] [PATCH 2/4] meson: Add support for ppc assembly/optimizations

Matt Turner mattst88 at gmail.com
Fri Jun 8 23:01:09 UTC 2018


On Thu, Jun 7, 2018 at 11:53 AM, Dylan Baker <dylan at pnwbakers.com> wrote:
> ---
>  meson.build       | 30 ++++++++++++++++++++++++++----
>  meson_options.txt |  7 +++++++
>  2 files changed, 33 insertions(+), 4 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 0171328bcd7..f6fe141056a 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -601,13 +601,33 @@ if with_gallium_st_nine
>    endif
>  endif
>
> +if get_option('altivec') != 'false'
> +  if host_machine.cpu_family() == 'ppc64le'
> +    if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.8')

cc isn't defined until later, so this won't work as is. I assume the
thing to do is move this down.


More information about the mesa-dev mailing list