nir: Add lrp lowering for doubles in opt_algebraic
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 26 Apr 2016 07:35:30 +0000 (09:35 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 28 Apr 2016 10:01:40 +0000 (12:01 +0200)
commitdb07b46f2cb89d96a17a28a0453a236451b560c7
treea50b9afc729d430f135ee6bb52672d8ca3cbb0c1
parent443600d51e34576a7ee0060948e3d6f56b41b51d
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>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py