gallivm: use fp16 casts lowering
authorDave Airlie <airlied@redhat.com>
Tue, 29 Dec 2020 02:43:47 +0000 (12:43 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Mar 2021 02:17:31 +0000 (12:17 +1000)
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9643>

src/gallium/auxiliary/gallivm/lp_bld_nir.c

index a98ea75..9354d03 100644 (file)
@@ -2289,7 +2289,7 @@ void lp_build_opt_nir(struct nir_shader *nir)
    NIR_PASS_V(nir, nir_lower_frexp);
 
    NIR_PASS_V(nir, nir_lower_flrp, 16|32|64, true);
-
+   NIR_PASS_V(nir, nir_lower_fp16_casts);
    do {
       progress = false;
       NIR_PASS_V(nir, nir_opt_constant_folding);