Commit 1290cc3e authored by Christian Gmeiner's avatar Christian Gmeiner
Browse files

etnaviv: split destroy_shader


Signed-off-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek's avatarJonathan Marek <jonathan@marek.ca>
parent f90b23b8
Pipeline #56319 passed with stages
in 18 minutes and 37 seconds
......@@ -2535,9 +2535,6 @@ etna_dump_shader(const struct etna_shader_variant *shader)
void
etna_destroy_shader(struct etna_shader_variant *shader)
{
if (DBG_ENABLED(ETNA_DBG_NIR))
return etna_destroy_shader_nir(shader);
assert(shader);
FREE(shader->code);
......
......@@ -417,7 +417,11 @@ etna_delete_shader_state(struct pipe_context *pctx, void *ss)
v = v->next;
if (t->bo)
etna_bo_del(t->bo);
etna_destroy_shader(t);
if (DBG_ENABLED(ETNA_DBG_NIR))
etna_destroy_shader_nir(t);
else
etna_destroy_shader(t);
}
ralloc_free(shader->nir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment