summaryrefslogtreecommitdiff
path: root/src/broadcom/compiler/nir_to_vir.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2021-05-03 08:31:13 +0200
committerIago Toral Quiroga <itoral@igalia.com>2021-05-06 12:27:06 +0200
commit4742300e6b5dc33c88b89387fdaebfc413a91486 (patch)
tree3849d0b15ccdf3a07bae449321c788ce1b26bea6 /src/broadcom/compiler/nir_to_vir.c
parentdb3fa1cc8c912ed86b2233d49c52528999f25f5f (diff)
v3d: move NIR compiler options to GL driver
The Vulkan driver was already creating and using its own set of options, so the ones defined in the compiler are only used with GL, which is confusing. Move them to the GL driver. Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10647>
Diffstat (limited to 'src/broadcom/compiler/nir_to_vir.c')
-rw-r--r--src/broadcom/compiler/nir_to_vir.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index 38a39008a9a..3cec6ba9bcd 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -3734,48 +3734,6 @@ nir_to_vir(struct v3d_compile *c)
}
}
-const nir_shader_compiler_options v3d_nir_options = {
- .lower_add_sat = true,
- .lower_all_io_to_temps = true,
- .lower_extract_byte = true,
- .lower_extract_word = true,
- .lower_bitfield_insert_to_shifts = true,
- .lower_bitfield_extract_to_shifts = true,
- .lower_bitfield_reverse = true,
- .lower_bit_count = true,
- .lower_cs_local_id_from_index = true,
- .lower_ffract = true,
- .lower_fmod = true,
- .lower_pack_unorm_2x16 = true,
- .lower_pack_snorm_2x16 = true,
- .lower_pack_unorm_4x8 = true,
- .lower_pack_snorm_4x8 = true,
- .lower_unpack_unorm_4x8 = true,
- .lower_unpack_snorm_4x8 = true,
- .lower_pack_half_2x16 = true,
- .lower_unpack_half_2x16 = true,
- .lower_fdiv = true,
- .lower_find_lsb = true,
- .lower_ffma16 = true,
- .lower_ffma32 = true,
- .lower_ffma64 = true,
- .lower_flrp32 = true,
- .lower_fpow = true,
- .lower_fsat = true,
- .lower_fsqrt = true,
- .lower_ifind_msb = true,
- .lower_isign = true,
- .lower_ldexp = true,
- .lower_mul_high = true,
- .lower_wpos_pntc = true,
- .lower_rotate = true,
- .lower_to_scalar = true,
- .has_fsub = true,
- .has_isub = true,
- .divergence_analysis_options =
- nir_divergence_multiple_workgroup_per_compute_subgroup,
-};
-
/**
* When demoting a shader down to single-threaded, removes the THRSW
* instructions (one will still be inserted at v3d_vir_to_qpu() for the