From 0ce1aea88b9a8bd037fbddfc0399ebc483349174 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Mar 2019 22:54:44 -0600 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.30.2