diff options
author | Marek Olšák <[email protected]> | 2015-04-10 23:58:34 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-04-16 18:36:29 +0200 |
commit | b79c620663dc4eab1ad342a7961fa7aa16cff562 (patch) | |
tree | d9ba3147fad1adaa3e94ad839dbd11ff20bb946d /src/gallium/drivers/radeon | |
parent | 99eef3b8b324d3be6f3b8f2a34c95006d8205599 (diff) |
radeonsi: add a debug option to compile shaders when they're created
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 0ef5fc24d99..2b27e0ab200 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -323,6 +323,7 @@ static const struct debug_named_value common_debug_options[] = { { "notiling", DBG_NO_TILING, "Disable tiling" }, { "switch_on_eop", DBG_SWITCH_ON_EOP, "Program WD/IA to switch on end-of-packet." }, { "forcedma", DBG_FORCE_DMA, "Use asynchronous DMA for all operations when possible." }, + { "precompile", DBG_PRECOMPILE, "Compile one shader variant at shader creation." }, DEBUG_NAMED_VALUE_END /* must be last */ }; diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index a08d08cdf14..febd2a167bb 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -83,6 +83,7 @@ #define DBG_NO_TILING (1 << 14) #define DBG_SWITCH_ON_EOP (1 << 15) #define DBG_FORCE_DMA (1 << 16) +#define DBG_PRECOMPILE (1 << 17) /* The maximum allowed bit is 20. */ #define R600_MAP_BUFFER_ALIGNMENT 64 |