nir/algebraic: rename lower_bitshift to lower_bitops
Optimizations that insert bitshift or bitwise operations should not be applied on GPUs that don't support integer operations. The .lower_bitshift could be used to control the bitshift related ones, but there was also one bitwise optimization uncovered. Since only lima and freedreno use this option and the use case is that no bit operations are wanted, let's rename it to .lower_bitops and use it to control all bitops related optimizations. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
@@ -2544,8 +2544,8 @@ 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;
|
||||
/** enable rules to avoid bit ops */
|
||||
bool lower_bitops;
|
||||
|
||||
/** enables rules to lower isign to imin+imax */
|
||||
bool lower_isign;
|
||||
|
Reference in New Issue
Block a user