diff options
author | Jonathan Marek <[email protected]> | 2019-05-31 13:54:12 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-05-31 21:35:26 +0000 |
commit | f889180ee101c2fecd573dd364d91883ccdd30df (patch) | |
tree | 4b88aee012ea2b289546226cd764ae1f01e1faf5 /src/compiler/nir/nir.h | |
parent | 887c2a60923debf0facc4d95554ed87555d83620 (diff) |
nir: add lower_bitshift option
Add a "lower_bitshift" option, which disables optimizations introducing
bitshifts and lowers ishl by constant to a multiply, so that we don't have
to deal with bitshifts in int_to_float lowering.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 660f6ae04d8..ee60f2410a8 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2272,6 +2272,9 @@ typedef struct nir_shader_compiler_options { /** enables rules to lower idiv by power-of-two: */ bool lower_idiv; + /** enable rules to avoid bit shifts */ + bool lower_bitshift; + /** enables rules to lower isign to imin+imax */ bool lower_isign; |