Instead of looking the devinfo directly, look at the lowering options we
provided to NIR. This is more accurate as it's now checking for "do we
need full software lowering" rather than a hardware bit.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
- if (!devinfo->has_64bit_types && nir->info.uses_64bit) {
+ if ((options->lower_doubles_options & nir_lower_fp64_full_software) &&
+ nir->info.uses_64bit) {
nir_shader *fp64 = compile_fp64_funcs(ctx, options, ralloc_parent(nir), stage);
nir_validate_shader(fp64, "fp64");