diff options
author | Marek Olšák <[email protected]> | 2019-08-20 22:37:52 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-27 16:16:08 -0400 |
commit | 467df4b90a38e50b749f90900b3693331685ca15 (patch) | |
tree | 7b56d9ea5156597dc49577878580b81909c41f8b /src/gallium/drivers | |
parent | 6229b5a058d0b3bb80815c5258e45ad23f1f6968 (diff) |
radeonsi/gfx10: add AMD_DEBUG=nongg
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index a0ad77435cb..487d9254a6b 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -89,6 +89,7 @@ static const struct debug_named_value debug_options[] = { /* 3D engine options: */ { "nogfx", DBG(NO_GFX), "Disable graphics. Only multimedia compute paths can be used." }, + { "nongg", DBG(NO_NGG), "Disable NGG and use the legacy pipeline." }, { "alwayspd", DBG(ALWAYS_PD), "Always enable the primitive discard compute shader." }, { "pd", DBG(PD), "Enable the primitive discard compute shader for large draw calls." }, { "nopd", DBG(NO_PD), "Disable the primitive discard compute shader." }, @@ -1123,7 +1124,8 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws, } sscreen->use_ngg = sscreen->info.chip_class >= GFX10 && - sscreen->info.family != CHIP_NAVI14; + sscreen->info.family != CHIP_NAVI14 && + !(sscreen->debug_flags & DBG(NO_NGG)); sscreen->use_ngg_streamout = false; /* Only enable primitive binning on APUs by default. */ diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index c9a415622c3..b0495f0841b 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -175,6 +175,7 @@ enum { /* 3D engine options: */ DBG_NO_GFX, + DBG_NO_NGG, DBG_ALWAYS_PD, DBG_PD, DBG_NO_PD, |