r600: don't clone the nir shader, just use it

The nir shader passed in with the shader state has to be released by
the backe-end, so don't clone it, just use it.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17729>
This commit is contained in:
Gert Wollny 2022-07-24 13:58:42 +02:00 committed by Marge Bot
parent 97d4e98501
commit 8166be0e83
1 changed files with 1 additions and 1 deletions

View File

@ -996,7 +996,7 @@ struct r600_pipe_shader_selector *r600_create_shader_state_tokens(struct pipe_co
ir = PIPE_SHADER_IR_TGSI;
tgsi_scan_shader(sel->tokens, &sel->info);
} else {
sel->nir = nir_shader_clone(NULL, s);
sel->nir = s;
nir_tgsi_scan_shader(sel->nir, &sel->info, true);
}
}