[Mesa-dev] [PATCH 2/2] gallium/translate: require SSE2

Jose Fonseca jfonseca at vmware.com
Fri Feb 24 10:40:37 PST 2012


Marek,

Looking at the source code, it actually looks like src/gallium/auxiliary/translate/translate_sse.c can cope without SSE2 (just SSE). Not sure if it's getting the right bits though.

Jose

----- Original Message -----
> ---
>  src/gallium/auxiliary/translate/translate_sse.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gallium/auxiliary/translate/translate_sse.c
> b/src/gallium/auxiliary/translate/translate_sse.c
> index 54414ef..ed16058 100644
> --- a/src/gallium/auxiliary/translate/translate_sse.c
> +++ b/src/gallium/auxiliary/translate/translate_sse.c
> @@ -1454,8 +1454,7 @@ struct translate *translate_sse2_create( const
> struct translate_key *key )
>     struct translate_sse *p = NULL;
>     unsigned i;
>  
> -   /* this is misnamed, it actually refers to whether rtasm is
> enabled or not */
> -   if (!rtasm_cpu_has_sse())
> +   if (!rtasm_cpu_has_sse2())
>        goto fail;
>  
>     p = os_malloc_aligned(sizeof(struct translate_sse), 16);
> --
> 1.7.5.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list