mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 10:10:14 +01:00
nvc0: dump program binary when chipset has been forced
Currently, program binaries are only dumped at upload time, but when the chipset has been forced via NV50_PROG_CHIPSET we might want to show the generated code, especially with shaderdb. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
cc4a19c4ad
commit
a41cfbbf2b
1 changed files with 5 additions and 0 deletions
|
|
@ -676,6 +676,11 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset,
|
|||
prog->type, info->bin.tlsSpace, prog->num_gprs,
|
||||
info->bin.instructions, info->bin.codeSize);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (debug_get_option("NV50_PROG_CHIPSET", NULL))
|
||||
nvc0_program_dump(prog);
|
||||
#endif
|
||||
|
||||
out:
|
||||
FREE(info);
|
||||
return !ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue