summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2018-02-09 01:47:26 +0100
committerMarek Olšák <marek.olsak@amd.com>2018-02-09 02:01:45 +0100
commit12fd567c78c66b136b5c67782be754790951a560 (patch)
treee18692ccbc14b112e612a6b74a6ae9931b2dadd5
parent8f20cf166ed434092242dba05a09f682df3028d8 (diff)
radeonsi: copy the NIR enablement debug bit to the shader cache flags
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>
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c3
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 26835d673dc..97f11ea6879 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),