nir: add int_to_float lowering pass
This new pass lowers ints and bools to floats. It allows hardware that doesn't have native integers (e.g. Mali4x0) use the same code paths as modern hardware. It uses newly introduced pass to gather SSA types and should be used as late as possible. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:

committed by
Qiang Yu

parent
49025292fb
commit
443c5a3cd6
@@ -3183,6 +3183,7 @@ bool nir_lower_alu(nir_shader *shader);
|
||||
bool nir_lower_alu_to_scalar(nir_shader *shader);
|
||||
bool nir_lower_bool_to_float(nir_shader *shader);
|
||||
bool nir_lower_bool_to_int32(nir_shader *shader);
|
||||
bool nir_lower_int_to_float(nir_shader *shader);
|
||||
bool nir_lower_load_const_to_scalar(nir_shader *shader);
|
||||
bool nir_lower_read_invocation_to_scalar(nir_shader *shader);
|
||||
bool nir_lower_phis_to_scalar(nir_shader *shader);
|
||||
|
Reference in New Issue
Block a user