diff options
author | Iago Toral Quiroga <[email protected]> | 2016-01-04 16:02:47 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-04-28 11:58:35 +0200 |
commit | 29541ec53175120f916a0ab74e5d82308aa9ef47 (patch) | |
tree | 270a230dde4cceba602b9f4bacf23cbd6f39f418 /src/compiler/nir/nir.h | |
parent | 5fab3d178b7093b0f0e5e98f09052f401ac714ad (diff) |
nir/lower_double_ops: lower floor()
At least i965 hardware does not have native support for floor on doubles.
v2 (Sam):
- Improve the lowering pass to remove one bcsel (Jason)
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 4a49d6e1ac8..809e83b7d12 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2418,6 +2418,7 @@ typedef enum { nir_lower_dsqrt = (1 << 1), nir_lower_drsq = (1 << 2), nir_lower_dtrunc = (1 << 3), + nir_lower_dfloor = (1 << 4), } nir_lower_doubles_options; void nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options); |