mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
nir: add a new nir_cf_list_clone_and_reinsert() helper
Reviewed-by: Thomas Helland <thomashelland90@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
03d7c65ad8
commit
6b961eb534
1 changed files with 10 additions and 0 deletions
|
|
@ -145,6 +145,16 @@ void nir_cf_delete(nir_cf_list *cf_list);
|
|||
void nir_cf_list_clone(nir_cf_list *dst, nir_cf_list *src, nir_cf_node *parent,
|
||||
struct hash_table *remap_table);
|
||||
|
||||
static inline void
|
||||
nir_cf_list_clone_and_reinsert(nir_cf_list *src_list, nir_cf_node *parent,
|
||||
nir_cursor cursor,
|
||||
struct hash_table *remap_table)
|
||||
{
|
||||
nir_cf_list list;
|
||||
nir_cf_list_clone(&list, src_list, parent, remap_table);
|
||||
nir_cf_reinsert(&list, cursor);
|
||||
}
|
||||
|
||||
static inline void
|
||||
nir_cf_list_extract(nir_cf_list *extracted, struct exec_list *cf_list)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue