nouveau/nir: Lower 64-bit phis
authorM Henning <drawoc@darkrefraction.com>
Thu, 30 Dec 2021 01:06:26 +0000 (20:06 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Jan 2022 17:35:05 +0000 (17:35 +0000)
Fixes arb_gpu_shader_fp64-fs-non-uniform-control-flow-ubo
on kepler with NV50_PROG_USE_NIR=1

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14343>

src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

index e28c94f..1473f01 100644 (file)
@@ -3172,6 +3172,7 @@ Converter::run()
       NIR_PASS(progress, nir, nir_copy_prop);
       NIR_PASS(progress, nir, nir_opt_dce);
       NIR_PASS(progress, nir, nir_opt_dead_cf);
+      NIR_PASS(progress, nir, nir_lower_64bit_phis);
    } while (progress);
 
    NIR_PASS_V(nir, nir_lower_bool_to_int32);