Commit 4a0f62f1 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Marge Bot
Browse files

lima: ppir: don't delete root ld_tex nodes without successors in current block

We don't clone ld_tex nodes into each block anymore, so ld_tex may have
successors in another block.

Fixes: c8554f84

 ("lima/ppir: don't clone texture loads")
Reviewed-by: Erico Nunes's avatarErico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick's avatarVasily Khoruzhick <anarsoul@gmail.com>
Part-of: <mesa/mesa!3564>
parent 63af27bc
......@@ -150,14 +150,9 @@ static bool ppir_lower_texture(ppir_block *block, ppir_node *node)
{
ppir_load_texture_node *load_tex = ppir_node_to_load_texture(node);
ppir_dest *dest = ppir_node_get_dest(node);
if (ppir_node_is_root(node) && dest->type == ppir_target_ssa) {
ppir_node_delete(node);
return true;
}
ppir_node *src_coords = ppir_node_get_src(node, 0)->node;
ppir_load_node *load = NULL;
if (src_coords && ppir_node_has_single_src_succ(src_coords) &&
(src_coords->op == ppir_op_load_coords))
load = ppir_node_to_load(src_coords);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment