diff options
author | Marek Olšák <[email protected]> | 2018-04-01 14:22:54 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-05 15:34:58 -0400 |
commit | 42500d1dab7b617366191be7815695393225f274 (patch) | |
tree | 1a9667a176c297fd8c7d03cea03d8f0b86fb6a1d /src/gallium/drivers/radeonsi/si_debug.c | |
parent | 02a61e71a256ff06612b2afddac3ae216f0f65b1 (diff) |
radeonsi: move si_destroy_saved_cs to si_debug.c
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_debug.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 30b45eeac7b..886f79d5a52 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -37,6 +37,13 @@ static void si_dump_bo_list(struct si_context *sctx, DEBUG_GET_ONCE_OPTION(replace_shaders, "RADEON_REPLACE_SHADERS", NULL) +void si_destroy_saved_cs(struct si_saved_cs *scs) +{ + si_clear_saved_cs(&scs->gfx); + r600_resource_reference(&scs->trace_buf, NULL); + free(scs); +} + static void si_dump_shader(struct si_screen *sscreen, enum pipe_shader_type processor, const struct si_shader *shader, FILE *f) |