nir/spirv: Array lengths are constants not literals
[mesa.git] / src / glsl / opt_tree_grafting.cpp
index a7a219c55ca2db6ef525621a3662b84e426f1ed1..cd58213c019348de02439c2dcd2188d722201713 100644 (file)
@@ -275,6 +275,7 @@ ir_tree_grafting_visitor::visit_enter(ir_texture *ir)
    case ir_lod:
    case ir_query_levels:
    case ir_texture_samples:
+   case ir_samples_identical:
       break;
    case ir_txb:
       if (do_graft(&ir->lod_info.bias))
@@ -373,8 +374,6 @@ tree_grafting_basic_block(ir_instruction *bb_first,
          entry->referenced_count != 2)
         continue;
 
-      assert(assign == entry->assign);
-
       /* Found a possibly graftable assignment.  Now, walk through the
        * rest of the BB seeing if the deref is here, and if nothing interfered with
        * pasting its expression's values in between.