pan/bi: Remove hacks for 1-bit booleans in IR
[mesa.git] / src / panfrost / bifrost / bir.c
index c385cfe7587c71f3fe2c515e6a2165068b2aea06..f110564aa642e49a5520730814edad0341afd9b6 100644 (file)
@@ -100,7 +100,7 @@ bi_get_component_count(bi_instruction *ins, unsigned src)
         } else {
                 /* Stores imply VECTOR */
                 assert(ins->dest_type);
-                unsigned bytes = MAX2(nir_alu_type_get_type_size(ins->dest_type), 8);
+                unsigned bytes = nir_alu_type_get_type_size(ins->dest_type);
                 return 32 / bytes;
         }
 }
@@ -125,7 +125,7 @@ bi_bytemask_of_read_components(bi_instruction *ins, unsigned node)
                 unsigned component_count = bi_get_component_count(ins, s);
                 nir_alu_type T = ins->src_types[s];
                 unsigned size = nir_alu_type_get_type_size(T);
-                unsigned bytes = (MAX2(size, 8) / 8);
+                unsigned bytes = size / 8;
                 unsigned cmask = (1 << bytes) - 1;
 
                 for (unsigned i = 0; i < component_count; ++i) {