diff options
author | Marek Olšák <[email protected]> | 2019-07-22 15:09:54 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-29 17:52:53 -0400 |
commit | 417ab8ef6b82c868d7df16630c9a52bb71949b7b (patch) | |
tree | f1b0aa574373ef793cfa82fd5e7d53f4168512f7 /src | |
parent | 19d04191c4e7c2022fb3534d94ad21683feb1604 (diff) |
radeonsi: add AMD_DEBUG=nogfx for testing
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src')
-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, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 0140729d247..3bf3284671d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -90,6 +90,7 @@ static const struct debug_named_value debug_options[] = { { "zerovram", DBG(ZERO_VRAM), "Clear VRAM allocations." }, /* 3D engine options: */ + { "nogfx", DBG(NO_GFX), "Disable graphics. Only multimedia compute paths can be used." }, { "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." }, @@ -943,6 +944,9 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws, sscreen->debug_flags |= debug_get_flags_option("AMD_DEBUG", debug_options, 0); + if (sscreen->debug_flags & DBG(NO_GFX)) + sscreen->info.has_graphics = false; + /* Set functions first. */ sscreen->b.context_create = si_pipe_create_context; sscreen->b.destroy = si_destroy_screen; diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 8e2bd83aabc..1f9fe1c4754 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -175,6 +175,7 @@ enum { DBG_ZERO_VRAM, /* 3D engine options: */ + DBG_NO_GFX, DBG_ALWAYS_PD, DBG_PD, DBG_NO_PD, |