freedreno: a2xx: add partial lower_scalar pass for ir2
[mesa.git] / src / gallium / drivers / freedreno / a2xx / ir2_nir.c
index ef9c5e0c4df7a423aaf61b9d7ee7f8bcaa410397..8679116976b1fe37af2fe27509a32eab214114bc 100644 (file)
@@ -1106,6 +1106,9 @@ ir2_nir_compile(struct ir2_context *ctx, bool binning)
 
        OPT_V(ctx->nir, nir_lower_bool_to_float);
 
+       /* lower to scalar instructions that can only be scalar on a2xx */
+       OPT_V(ctx->nir, ir2_nir_lower_scalar);
+
        OPT_V(ctx->nir, nir_lower_locals_to_regs);
 
        OPT_V(ctx->nir, nir_convert_from_ssa, true);