diff options
author | Marek Olšák <[email protected]> | 2019-02-19 17:20:01 -0500 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-02-20 08:13:24 -0800 |
commit | a5f16a42a53932514763a73004cb133a490546f2 (patch) | |
tree | b24521a8836025aca6e517491ff6533949766b06 /src/gallium | |
parent | 2e7833ad916c493969d00871cdf56db4407b80eb (diff) |
radeonsi: add driconf option radeonsi_enable_nir
Cc: 18.3 19.0 <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
(cherry picked from commit ccbfe44e5ff88a19451701561f752c6046677122)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/driinfo_radeonsi.h b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h index cbf3bb01fb3..edf8edba035 100644 --- a/src/gallium/drivers/radeonsi/driinfo_radeonsi.h +++ b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h @@ -12,4 +12,5 @@ DRI_CONF_SECTION_END DRI_CONF_SECTION_DEBUG DRI_CONF_RADEONSI_CLEAR_DB_CACHE_BEFORE_CLEAR("false") + DRI_CONF_RADEONSI_ENABLE_NIR("false") DRI_CONF_SECTION_END diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 41d395d7d3f..2656bdc2068 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -865,7 +865,8 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws, sscreen->debug_flags |= DBG(FS_CORRECT_DERIVS_AFTER_KILL); if (driQueryOptionb(config->options, "radeonsi_enable_sisched")) sscreen->debug_flags |= DBG(SI_SCHED); - + if (driQueryOptionb(config->options, "radeonsi_enable_nir")) + sscreen->debug_flags |= DBG(NIR); if (sscreen->debug_flags & DBG(INFO)) ac_print_gpu_info(&sscreen->info); |