pco: support re-indexing loops and ifs
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
committed by
Marge Bot
parent
160f206d7c
commit
3611c1313d
@@ -82,9 +82,15 @@ bool pco_index(pco_shader *shader, bool skip_ssa)
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: */
|
||||
/* pco_foreach_if_in_func */
|
||||
/* pco_foreach_loop_in_func */
|
||||
func->next_if = 0;
|
||||
pco_foreach_if_in_func (pif, func) {
|
||||
pif->index = func->next_if++;
|
||||
}
|
||||
|
||||
func->next_loop = 0;
|
||||
pco_foreach_loop_in_func (loop, func) {
|
||||
loop->index = func->next_loop++;
|
||||
}
|
||||
|
||||
if (!skip_ssa) {
|
||||
_mesa_hash_table_u64_destroy(func->vec_infos);
|
||||
|
||||
Reference in New Issue
Block a user