radeonsi: copy the NIR enablement debug bit to the shader cache flags
authorMarek Olšák <marek.olsak@amd.com>
Fri, 9 Feb 2018 00:47:26 +0000 (01:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 9 Feb 2018 01:01:45 +0000 (02:01 +0100)
When NIR is enabled, TGSI must not be used. When NIR is disabled, TGSI

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 26835d673dc5be81aa5810655846ee97524e94aa..97f11ea687957aef60fc2faed76285b99bbfe24b 100644 (file)
@@ -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),