v2: remove the enablement code
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6622>
const struct nir_shader_compiler_options nir_options = {
.lower_scmp = true,
+ .lower_flrp16 = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_fsat = true,
.max_unroll_iterations = 32,
.use_interpolated_input_intrinsics = true,
.lower_uniforms_to_ubo = true,
+ .support_16bit_alu = sscreen->info.has_packed_math_16bit,
+ .vectorize_vec2_16bit = sscreen->info.has_packed_math_16bit,
};
sscreen->nir_options = nir_options;
}
sscreen->ws = ws;
ws->query_info(ws, &sscreen->info);
+ /* Older LLVM have buggy v_pk_* instructions. */
+ sscreen->info.has_packed_math_16bit &= LLVM_VERSION_MAJOR >= 11;
+
if (sscreen->info.chip_class == GFX10_3 && LLVM_VERSION_MAJOR < 11) {
fprintf(stderr, "radeonsi: GFX 10.3 requires LLVM 11 or higher\n");
FREE(sscreen);