Commit 417ab8ef authored by Marek Olšák's avatar Marek Olšák
Browse files

radeonsi: add AMD_DEBUG=nogfx for testing


Reviewed-by: Pierre-Eric Pelloux-Prayer's avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
parent 19d04191
...@@ -90,6 +90,7 @@ static const struct debug_named_value debug_options[] = { ...@@ -90,6 +90,7 @@ static const struct debug_named_value debug_options[] = {
{ "zerovram", DBG(ZERO_VRAM), "Clear VRAM allocations." }, { "zerovram", DBG(ZERO_VRAM), "Clear VRAM allocations." },
/* 3D engine options: */ /* 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." }, { "alwayspd", DBG(ALWAYS_PD), "Always enable the primitive discard compute shader." },
{ "pd", DBG(PD), "Enable the primitive discard compute shader for large draw calls." }, { "pd", DBG(PD), "Enable the primitive discard compute shader for large draw calls." },
{ "nopd", DBG(NO_PD), "Disable the primitive discard compute shader." }, { "nopd", DBG(NO_PD), "Disable the primitive discard compute shader." },
...@@ -943,6 +944,9 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws, ...@@ -943,6 +944,9 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws,
sscreen->debug_flags |= debug_get_flags_option("AMD_DEBUG", sscreen->debug_flags |= debug_get_flags_option("AMD_DEBUG",
debug_options, 0); debug_options, 0);
if (sscreen->debug_flags & DBG(NO_GFX))
sscreen->info.has_graphics = false;
/* Set functions first. */ /* Set functions first. */
sscreen->b.context_create = si_pipe_create_context; sscreen->b.context_create = si_pipe_create_context;
sscreen->b.destroy = si_destroy_screen; sscreen->b.destroy = si_destroy_screen;
......
...@@ -175,6 +175,7 @@ enum { ...@@ -175,6 +175,7 @@ enum {
DBG_ZERO_VRAM, DBG_ZERO_VRAM,
/* 3D engine options: */ /* 3D engine options: */
DBG_NO_GFX,
DBG_ALWAYS_PD, DBG_ALWAYS_PD,
DBG_PD, DBG_PD,
DBG_NO_PD, DBG_NO_PD,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment