nvc0: dump program binary only when NV50_PROG_DEBUG is set
When the chipset is forced with NV50_PROG_CHIPSET, we actually only want to output the binary if NV50_PROG_DEBUG is also enabled. Otherwise, this pollutes the shader-db output. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -677,7 +677,7 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset,
|
||||
info->bin.instructions, info->bin.codeSize);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (debug_get_option("NV50_PROG_CHIPSET", NULL))
|
||||
if (debug_get_option("NV50_PROG_CHIPSET", NULL) && info->dbgFlags)
|
||||
nvc0_program_dump(prog);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user