mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
freedreno/ir3: add debug flag to disable cp
FD_MESA_DEBUG=nocp will disable copy propagation pass.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
(cherry picked from commit 4f17e026bb)
Conflicts:
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
This commit is contained in:
parent
b379e36e64
commit
b0d6ba5970
3 changed files with 3 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ static const struct debug_named_value debug_options[] = {
|
|||
{"optmsgs", FD_DBG_OPTMSGS,"Enable optimizater debug messages"},
|
||||
{"optdump", FD_DBG_OPTDUMP,"Dump shader DAG to .dot files"},
|
||||
{"glsl130", FD_DBG_GLSL130,"Temporary flag to enable GLSL 130 on a3xx+"},
|
||||
{"nocp", FD_DBG_NOCP, "Disable copy-propagation"},
|
||||
DEBUG_NAMED_VALUE_END
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ enum adreno_stencil_op fd_stencil_op(unsigned op);
|
|||
#define FD_DBG_OPTMSGS 0x0400
|
||||
#define FD_DBG_OPTDUMP 0x0800
|
||||
#define FD_DBG_GLSL130 0x1000
|
||||
#define FD_DBG_NOCP 0x2000
|
||||
|
||||
extern int fd_mesa_debug;
|
||||
extern bool fd_binning_enabled;
|
||||
|
|
|
|||
|
|
@ -3175,7 +3175,7 @@ ir3_compile_shader(struct ir3_shader_variant *so,
|
|||
ir3_dump_instr_list(block->head);
|
||||
}
|
||||
|
||||
if (cp)
|
||||
if (cp && !(fd_mesa_debug & FD_DBG_NOCP))
|
||||
ir3_block_cp(block);
|
||||
|
||||
if (fd_mesa_debug & FD_DBG_OPTDUMP)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue