diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-06-28 17:37:53 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-31 15:56:57 +0200 |
commit | 0478a7c4222b466b38000ad4905a46e4cfc002f6 (patch) | |
tree | 5322be1bd484fbecc5f42f4f43dd90e6e5dba579 /src/gallium/drivers | |
parent | a4aec6b2c3bd9a96079b2abb6e7d5d3c5f4364bb (diff) |
radeonsi: add enable_sisched driconf optiondriconf
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 3 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/driinfo_radeonsi.h b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h index a358f0263e..af6284a778 100644 --- a/src/gallium/drivers/radeonsi/driinfo_radeonsi.h +++ b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h @@ -1 +1,4 @@ // DriConf options specific to radeonsi +DRI_CONF_SECTION_PERFORMANCE + DRI_CONF_RADEONSI_ENABLE_SISCHED("false") +DRI_CONF_SECTION_END diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 47992cd8dd..a915ea708e 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -31,6 +31,7 @@ #include "util/u_memory.h" #include "util/u_suballoc.h" #include "util/u_tests.h" +#include "util/xmlconfig.h" #include "vl/vl_decoder.h" #include "../ddebug/dd_util.h" @@ -991,6 +992,9 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws, return NULL; } + if (driQueryOptionb(config->options, "radeonsi_enable_sisched")) + sscreen->b.debug_flags |= DBG_SI_SCHED; + /* Only enable as many threads as we have target machines, but at most * the number of CPUs - 1 if there is more than one. */ |