vkd3d-shader/hlsl: Allow cloned blocks to contain external references.

This commit is contained in:
Victor Chiletto 2024-07-09 10:03:03 -03:00 committed by Henri Verbeet
parent 5bc56d43bb
commit 7edd7dcf79
Notes: Henri Verbeet 2024-07-11 00:40:50 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/786

View File

@ -1885,9 +1885,7 @@ static struct hlsl_ir_node *map_instr(const struct clone_instr_map *map, struct
return map->instrs[i].dst;
}
/* The block passed to hlsl_clone_block() should have been free of external
* references. */
vkd3d_unreachable();
return src;
}
static bool clone_deref(struct hlsl_ctx *ctx, struct clone_instr_map *map,