Commit 456557a8 authored by Sagar Ghuge's avatar Sagar Ghuge

nir: Add lower_rotate flag and set to true in all drivers

Signed-off-by: Sagar Ghuge's avatarSagar Ghuge <sagar.ghuge@intel.com>
Suggested-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
Reviewed-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
parent 1e92e838
......@@ -74,6 +74,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_ffma = true,
.lower_fpow = true,
.lower_mul_2x32_64 = true,
.lower_rotate = true,
.max_unroll_iterations = 32
};
......
......@@ -2419,6 +2419,7 @@ const nir_shader_compiler_options v3d_nir_options = {
.lower_ldexp = true,
.lower_mul_high = true,
.lower_wpos_pntc = true,
.lower_rotate = true,
};
/**
......
......@@ -55,6 +55,7 @@ static const nir_shader_compiler_options options = {
.lower_bitfield_insert_to_shifts = true,
.lower_bitfield_extract_to_shifts = true,
.use_interpolated_input_intrinsics = true,
.lower_rotate = true,
};
/* we don't want to lower vertex_id to _zero_based on newer gpus: */
......@@ -79,6 +80,7 @@ static const nir_shader_compiler_options options_a6xx = {
.lower_bitfield_insert_to_shifts = true,
.lower_bitfield_extract_to_shifts = true,
.use_interpolated_input_intrinsics = true,
.lower_rotate = true,
};
const nir_shader_compiler_options *
......
......@@ -40,6 +40,7 @@ static const nir_shader_compiler_options options = {
.lower_all_io_to_temps = true,
.vertex_id_zero_based = true, /* its not implemented anyway */
.lower_bitshift = true,
.lower_rotate = true,
};
const nir_shader_compiler_options *
......
......@@ -52,6 +52,7 @@ static const nir_shader_compiler_options vs_nir_options = {
/* could be implemented by clamp */
.lower_fsat = true,
.lower_bitshift = true,
.lower_rotate = true,
};
static const nir_shader_compiler_options fs_nir_options = {
......@@ -63,6 +64,7 @@ static const nir_shader_compiler_options fs_nir_options = {
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_fsign = true,
.lower_rotate = true,
};
const void *
......
......@@ -900,6 +900,7 @@ static const nir_shader_compiler_options nir_options = {
.lower_extract_word = true,
.lower_all_io_to_temps = false,
.lower_cs_local_index_from_id = true,
.lower_rotate = true,
.use_interpolated_input_intrinsics = true,
.max_unroll_iterations = 32,
};
......
......@@ -117,6 +117,7 @@ static const nir_shader_compiler_options midgard_nir_options = {
.vertex_id_zero_based = true,
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_rotate = true,
.lower_doubles_options = nir_lower_dmod,
......
......@@ -503,6 +503,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_unpack_unorm_4x8 = true,
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_rotate = true,
.optimize_sample_mask_in = true,
.max_unroll_iterations = 32,
};
......
......@@ -2195,6 +2195,7 @@ static const nir_shader_compiler_options nir_options = {
.lower_fsqrt = true,
.lower_ldexp = true,
.lower_negate = true,
.lower_rotate = true,
.max_unroll_iterations = 32,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment