Mesa (main): pan/bi: Enable mediump BLEND lowering
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 6 23:43:27 UTC 2021
Module: Mesa
Branch: main
Commit: 793d18b79bf2c79552546e606d7af7865c793db4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=793d18b79bf2c79552546e606d7af7865c793db4
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Tue May 4 16:05:38 2021 -0400
pan/bi: Enable mediump BLEND lowering
Other lowerings will wait until we iron out various missing features.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9239>
---
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);
More information about the mesa-commit
mailing list