aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-05-31 13:54:12 -0400
committerJonathan Marek <[email protected]>2019-05-31 21:35:26 +0000
commitf889180ee101c2fecd573dd364d91883ccdd30df (patch)
tree4b88aee012ea2b289546226cd764ae1f01e1faf5 /src/gallium/drivers/lima
parent887c2a60923debf0facc4d95554ed87555d83620 (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/gallium/drivers/lima')
-rw-r--r--src/gallium/drivers/lima/lima_program.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c
index a2d687ec8b0..e01c487cfd3 100644
--- a/src/gallium/drivers/lima/lima_program.c
+++ b/src/gallium/drivers/lima/lima_program.c
@@ -50,6 +50,7 @@ static const nir_shader_compiler_options vs_nir_options = {
.lower_ftrunc = true,
/* could be implemented by clamp */
.lower_fsat = true,
+ .lower_bitshift = true,
};
static const nir_shader_compiler_options fs_nir_options = {