On 27.02.2015 10:06, Tom Stellard wrote:
> ---
>  src/gallium/drivers/radeonsi/si_pipe.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c 
> b/src/gallium/drivers/radeonsi/si_pipe.c
> index 26182c2..c7a7622 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -360,8 +360,11 @@ static int si_get_shader_param(struct pipe_screen* 
> pscreen, unsigned shader, enu
>                       return PIPE_SHADER_IR_NATIVE;
>  #endif
>               case PIPE_SHADER_CAP_DOUBLES:
> -                     return 0; /* XXX: Enable doubles once the compiler can
> -                                  handle them. */
> +#if HAVE_LLVM >= 0x0307
> +                     return 1;
> +#else
> +                     return 0;
> +#endif

Could just use

                        return HAVE_LLVM >= 0x0307;

but either way,

Reviewed-by: Michel Dänzer <michel.daen...@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to