nir: Add and set info::uses_64bit
Will be used to communicate that a shader uses 64-bit operations to the concerned lowering passes. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -307,6 +307,11 @@ gather_alu_info(nir_alu_instr *instr, nir_shader *shader)
|
||||
shader->info.uses_fddx_fddy = true;
|
||||
break;
|
||||
default:
|
||||
shader->info.uses_64bit |= instr->dest.dest.ssa.bit_size == 64;
|
||||
unsigned num_srcs = nir_op_infos[instr->op].num_inputs;
|
||||
for (unsigned i = 0; i < num_srcs; i++) {
|
||||
shader->info.uses_64bit |= nir_src_bit_size(instr->src[i].src) == 64;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user