diff --git a/src/compiler/nir/nir_constant_expressions.py b/src/compiler/nir/nir_constant_expressions.py index de83bce5da8..007a0030f49 100644 --- a/src/compiler/nir/nir_constant_expressions.py +++ b/src/compiler/nir/nir_constant_expressions.py @@ -448,10 +448,7 @@ struct ${type}${width}_vec { % for j in range(op.num_inputs): % if op.input_sizes[j] == 0: <% continue %> - % elif "src" + str(j) not in op.const_expr: - ## Avoid unused variable warnings - <% continue %> - %endif + % endif const struct ${input_types[j]}_vec src${j} = { % for k in range(op.input_sizes[j]): @@ -481,9 +478,6 @@ struct ${type}${width}_vec { % for j in range(op.num_inputs): % if op.input_sizes[j] != 0: <% continue %> - % elif "src" + str(j) not in op.const_expr: - ## Avoid unused variable warnings - <% continue %> % elif input_types[j] == "int1": /* 1-bit integers use a 0/-1 convention */ const int1_t src${j} = -(int1_t)_src[${j}][_i].b;