r600: Assign shader type when creating a new CS state

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15898>
This commit is contained in:
Gert Wollny 2022-04-04 14:37:42 +02:00 committed by Marge Bot
parent 68ef895674
commit 29564031cf
1 changed files with 1 additions and 0 deletions

View File

@ -988,6 +988,7 @@ struct r600_pipe_shader_selector *r600_create_shader_state_tokens(struct pipe_co
sel->nir = nir_shader_clone(NULL, (const nir_shader *)prog);
nir_tgsi_scan_shader(sel->nir, &sel->info, true);
}
sel->ir_type = ir;
return sel;
}