From: Jason Ekstrand Date: Tue, 5 Mar 2019 04:54:44 +0000 (-0600) Subject: i965: Compile the fp64 program based on nir options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ce1aea88b9a8bd037fbddfc0399ebc483349174;p=mesa.git 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 Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 5dedca5a719..5b7c1afe55a 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -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");