aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
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/freedreno/a2xx/ir2_nir.c
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/freedreno/a2xx/ir2_nir.c')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/ir2_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
index 219ba75e59d..b9f372a3fd0 100644
--- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
+++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
@@ -39,6 +39,7 @@ static const nir_shader_compiler_options options = {
/* .fdot_replicates = true, it is replicated, but it makes things worse */
.lower_all_io_to_temps = true,
.vertex_id_zero_based = true, /* its not implemented anyway */
+ .lower_bitshift = true,
};
const nir_shader_compiler_options *