diff options
author | Iago Toral Quiroga <[email protected]> | 2016-01-04 12:52:14 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-04-28 11:58:13 +0200 |
commit | 5fab3d178b7093b0f0e5e98f09052f401ac714ad (patch) | |
tree | 3cc50a18dd248b29714ddce24ebc5692ef9454bb /src/compiler/nir/nir.h | |
parent | 2ea3649c63f39f07b9cebda1ef0569b7347ada93 (diff) |
nir/lower_double_ops: lower trunc()
At least i965 hardware does not have native support for truncating doubles.
v2:
- Simplified the implementation significantly.
- Fixed the else branch, that was not doing what we wanted.
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 cbbf47e2570..4a49d6e1ac8 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2417,6 +2417,7 @@ typedef enum { nir_lower_drcp = (1 << 0), nir_lower_dsqrt = (1 << 1), nir_lower_drsq = (1 << 2), + nir_lower_dtrunc = (1 << 3), } nir_lower_doubles_options; void nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options); |