def type(self):
if isinstance(self.value, (bool)):
- return "nir_type_bool32"
+ return "nir_type_bool"
elif isinstance(self.value, integer_types):
return "nir_type_int"
elif isinstance(self.value, float):
def type(self):
if self.required_type == 'bool':
- return "nir_type_bool32"
+ return "nir_type_bool"
elif self.required_type in ('int', 'uint'):
return "nir_type_int"
elif self.required_type == 'float':
if (!src.is_ssa)
return false;
- /* Turn nir_type_bool32 into nir_type_bool...they're the same thing. */
- if (nir_alu_type_get_base_type(type) == nir_type_bool)
- type = nir_type_bool;
-
if (src.ssa->parent_instr->type == nir_instr_type_alu) {
nir_alu_instr *src_alu = nir_instr_as_alu(src.ssa->parent_instr);
nir_alu_type output_type = nir_op_infos[src_alu->op].output_type;
case nir_type_int:
case nir_type_uint:
- case nir_type_bool32: {
+ case nir_type_bool: {
unsigned bit_size = nir_src_bit_size(instr->src[src].src);
uint64_t mask = bit_size == 64 ? UINT64_MAX : (1ull << bit_size) - 1;
for (unsigned i = 0; i < num_components; ++i) {
}
break;
- case nir_type_bool32:
+ case nir_type_bool:
+ assert(bitsize->dest_size == 32);
load->value.u32[0] = c->data.u;
break;
default: