[Mesa-dev] [PATCH 2/2] radeonsi: set LLVM denormal flags

Nicolai Hähnle nhaehnle at gmail.com
Fri Jun 24 08:16:32 UTC 2016


For both:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 22.06.2016 15:13, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> - make sure FP32 denormals will stay disabled in LLVM in the future
>    (the current default is disabled)
> - tell LLVM that FP64 denormals are enabled
> ---
>   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 65c0daa..0de25b9 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -32,6 +32,9 @@
>   #include "util/u_suballoc.h"
>   #include "vl/vl_decoder.h"
>
> +#define SI_LLVM_DEFAULT_FEATURES \
> +	"+DumpCode,+vgpr-spilling,-fp32-denormals,+fp64-denormals"
> +
>   /*
>    * pipe_context
>    */
> @@ -262,9 +265,9 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
>   					   r600_get_llvm_processor_name(sscreen->b.family),
>   #if HAVE_LLVM >= 0x0308
>   					   sscreen->b.debug_flags & DBG_SI_SCHED ?
> -					   	"+DumpCode,+vgpr-spilling,+si-scheduler" :
> +						SI_LLVM_DEFAULT_FEATURES ",+si-scheduler" :
>   #endif
> -					   	"+DumpCode,+vgpr-spilling",
> +						SI_LLVM_DEFAULT_FEATURES,
>   					   LLVMCodeGenLevelDefault,
>   					   LLVMRelocDefault,
>   					   LLVMCodeModelDefault);
>


More information about the mesa-dev mailing list