mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radeonsi: add enable_sisched driconf option
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
0f8c5de869
commit
53485c2d0e
3 changed files with 16 additions and 0 deletions
|
|
@ -1 +1,4 @@
|
|||
// DriConf options specific to radeonsi
|
||||
DRI_CONF_SECTION_PERFORMANCE
|
||||
DRI_CONF_RADEONSI_ENABLE_SISCHED("false")
|
||||
DRI_CONF_SECTION_END
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
@ -992,6 +993,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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -429,3 +429,12 @@ DRI_CONF_OPT_END
|
|||
DRI_CONF_OPT_BEGIN(csmt_force, int, def) \
|
||||
DRI_CONF_DESC(en,gettext("If set to 1, force gallium nine CSMT. If set to 0, disable it. By default (-1) CSMT is enabled on known thread-safe drivers.")) \
|
||||
DRI_CONF_OPT_END
|
||||
|
||||
/**
|
||||
* \brief radeonsi specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_RADEONSI_ENABLE_SISCHED(def) \
|
||||
DRI_CONF_OPT_BEGIN_B(radeonsi_enable_sisched, def) \
|
||||
DRI_CONF_DESC(en,gettext("Use the LLVM sisched option for shader compiles")) \
|
||||
DRI_CONF_OPT_END
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue