From 793d18b79bf2c79552546e606d7af7865c793db4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 4 May 2021 16:05:38 -0400 Subject: [PATCH] pan/bi: Enable mediump BLEND lowering Other lowerings will wait until we iron out various missing features. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 7e422d00a62..70a305af7c4 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -3151,6 +3151,12 @@ bifrost_compile_shader_nir(nir_shader *nir, NIR_PASS_V(nir, nir_lower_vars_to_ssa); NIR_PASS_V(nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out, glsl_type_size, 0); + + if (ctx->stage == MESA_SHADER_FRAGMENT) { + NIR_PASS_V(nir, nir_lower_mediump_io, nir_var_shader_out, + ~0, false); + } + NIR_PASS_V(nir, nir_lower_ssbo); NIR_PASS_V(nir, pan_nir_lower_zs_store); NIR_PASS_V(nir, pan_lower_sample_pos);