nir: Add lrp lowering for doubles in opt_algebraic
Some hardware (i965 on Broadwell generation, for example) does not support natively the execution of lrp instruction with double arguments. Add 'lower_flrp64' flag to lower this instruction in that case. v2: - Rename lower_flrp_double to lower_flrp64 (Jason) - Fix typo (Jason) - Adapt the code to define bit_size information in the opcodes. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -1625,6 +1625,8 @@ typedef struct nir_shader_compiler_options {
|
||||
bool lower_fdiv;
|
||||
bool lower_ffma;
|
||||
bool lower_flrp32;
|
||||
/** Lowers flrp when it does not support doubles */
|
||||
bool lower_flrp64;
|
||||
bool lower_fpow;
|
||||
bool lower_fsat;
|
||||
bool lower_fsqrt;
|
||||
|
Reference in New Issue
Block a user