diff options
author | Marek Olšák <[email protected]> | 2016-07-22 23:40:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-26 23:06:46 +0200 |
commit | 1e5f00f9d5f412526d025f8f4762160ce7b5f2ba (patch) | |
tree | dd95c6ab356afabac296dfa377801cdd5282edda /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 18475aab6d484d4eb49b1cc9124c9aabc79f8527 (diff) |
radeonsi: pre-generate shader logs for ddebug
This cuts down the overhead of si_dump_shader when ddebug is capturing
shader logs, which is done for every draw call unconditionally (that's
quite a lot of work for a draw call).
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 47947371fc3..62a1486fbe2 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -7951,4 +7951,6 @@ void si_shader_destroy(struct si_shader *shader) if (!shader->is_binary_shared) radeon_shader_binary_clean(&shader->binary); + + free(shader->shader_log); } |