panfrost: Fix remaining release-build warnings.
[mesa.git] / src / panfrost / bifrost / bi_pack.c
index d4a61a2671bf61e7e921bcff09ffb3bd44ca3c4a..2c30017d9e2ad09d0bafe075a6e8a42b7189222b 100644 (file)
@@ -1476,7 +1476,7 @@ bi_pack_add_tex_compact(bi_clause *clause, bi_instruction *ins, bi_registers *re
 static unsigned
 bi_pack_add_select(bi_instruction *ins, bi_registers *regs)
 {
-        unsigned size = nir_alu_type_get_type_size(ins->src_types[0]);
+        ASSERTED unsigned size = nir_alu_type_get_type_size(ins->src_types[0]);
         assert(size == 16);
 
         unsigned swiz = (ins->swizzle[0][0] | (ins->swizzle[1][0] << 1));
@@ -1591,7 +1591,7 @@ static unsigned
 bi_pack_add_cmp(bi_instruction *ins, bi_registers *regs)
 {
         nir_alu_type Tl = ins->src_types[0];
-        nir_alu_type Tr = ins->src_types[1];
+        ASSERTED nir_alu_type Tr = ins->src_types[1];
         nir_alu_type Bl = nir_alu_type_get_base_type(Tl);
 
         if (Bl == nir_type_uint || Bl == nir_type_int) {      
@@ -1827,7 +1827,7 @@ bi_pack_constants(bi_context *ctx, bi_clause *clause,
 {
         /* After these two, are we done? Determines tag */
         bool done = clause->constant_count <= (index + 2);
-        bool only = clause->constant_count <= (index + 1);
+        ASSERTED bool only = clause->constant_count <= (index + 1);
 
         /* Is the constant we're packing for a branch? */
         bool branches = clause->branch_constant && done;