mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
radeonsi: add a debug flag that disables printing TGSI in shader dumps
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ac19a896d3
commit
2dcbd427da
3 changed files with 3 additions and 1 deletions
|
|
@ -336,6 +336,7 @@ static const struct debug_named_value common_debug_options[] = {
|
|||
{ "tcs", DBG_TCS, "Print tessellation control shaders" },
|
||||
{ "tes", DBG_TES, "Print tessellation evaluation shaders" },
|
||||
{ "noir", DBG_NO_IR, "Don't print the LLVM IR"},
|
||||
{ "notgsi", DBG_NO_TGSI, "Don't print the TGSI"},
|
||||
|
||||
/* features */
|
||||
{ "nodma", DBG_NO_ASYNC_DMA, "Disable asynchronous DMA" },
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@
|
|||
#define DBG_TCS (1 << 10)
|
||||
#define DBG_TES (1 << 11)
|
||||
#define DBG_NO_IR (1 << 12)
|
||||
#define DBG_NO_TGSI (1 << 13)
|
||||
/* Bits 21-31 are reserved for the r600g driver. */
|
||||
/* features */
|
||||
#define DBG_NO_ASYNC_DMA (1llu << 32)
|
||||
|
|
|
|||
|
|
@ -4008,7 +4008,7 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
|
|||
|
||||
/* Dump TGSI code before doing TGSI->LLVM conversion in case the
|
||||
* conversion fails. */
|
||||
if (dump) {
|
||||
if (dump && !(sscreen->b.debug_flags & DBG_NO_TGSI)) {
|
||||
si_dump_key(sel->type, &shader->key);
|
||||
tgsi_dump(tokens, 0);
|
||||
si_dump_streamout(&sel->so);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue