[Mesa-dev] radeonsi: copy the NIR enablement debug bit to the shader cache flags

Dieter Nützel Dieter at nuetzel-hh.de
Sat Feb 10 02:13:07 UTC 2018


Hello,

I know that NIR support for radeonsi is new, but should this land in 
Mesa 18.0.0 final as early upgrade path?
I've tried running my whole system with NIR enabled in /etc/environment
export R600_DEBUG=nir
But older Mesa 18.0.0-rc3/4 (in the background) created disk cache files 
interfere even with this commit.

Any thoughts/ideas?

Dieter

> When NIR is enabled, TGSI must not be used. When NIR is disabled, TGSI
> 
> Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
> Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
> Diffstat
> -rw-r--r--	src/gallium/drivers/radeonsi/si_pipe.c	3	
> 1 files changed, 2 insertions, 1 deletions
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c
> b/src/gallium/drivers/radeonsi/si_pipe.c
> index 26835d6..97f11ea 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -642,7 +642,8 @@ static void si_disk_cache_create(struct si_screen 
> *sscreen)
> 				sscreen->debug_flags &
> 				(DBG(FS_CORRECT_DERIVS_AFTER_KILL) |
> 				 DBG(SI_SCHED) |
> -				 DBG(UNSAFE_MATH));
> +				 DBG(UNSAFE_MATH) |
> +				 DBG(NIR));
> 
> 			sscreen->disk_shader_cache =
> 				disk_cache_create(si_get_family_name(sscreen),


More information about the mesa-dev mailing list