diff options
author | Jason Ekstrand <[email protected]> | 2019-03-04 22:54:44 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-03-06 17:24:57 +0000 |
commit | 0ce1aea88b9a8bd037fbddfc0399ebc483349174 (patch) | |
tree | 1b347b9927b1ca36ea2305fe8d496b922a5b9900 /src/mesa | |
parent | 9314084237d50e109ab575fca8696da28cf76798 (diff) |
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |