[Mesa-dev] [PATCH 3/3] radeonsi/compute: Enable PIPE_SHADER_CAP_DOUBLES

Michel Dänzer michel at daenzer.net
Thu Feb 26 19:02:39 PST 2015


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.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list