i965: Compile the fp64 program based on nir options

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>
This commit is contained in:
Jason Ekstrand 2019-03-04 22:54:44 -06:00 committed by Jason Ekstrand
parent 9314084237
commit 0ce1aea88b
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ brw_create_nir(struct brw_context *brw,
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");