Mesa (main): pan/bi: Force psiz to mediump
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 14:34:59 UTC 2022
Module: Mesa
Branch: main
Commit: 8e6f97b5fc1444aa66f0b34c9cb2e01275189e48
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e6f97b5fc1444aa66f0b34c9cb2e01275189e48
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Thu Feb 3 16:16:36 2022 -0500
pan/bi: Force psiz to mediump
To match driver behaviour.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15793>
---
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 b801503e8d3..65dec9f52f7 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -4349,6 +4349,12 @@ bi_finalize_nir(nir_shader *nir, unsigned gpu_id, bool is_blend)
if (nir->info.stage == MESA_SHADER_VERTEX) {
NIR_PASS_V(nir, nir_lower_viewport_transform);
NIR_PASS_V(nir, nir_lower_point_size, 1.0, 0.0);
+
+ nir_variable *psiz = nir_find_variable_with_location(nir,
+ nir_var_shader_out,
+ VARYING_SLOT_PSIZ);
+ if (psiz != NULL)
+ psiz->data.precision = GLSL_PRECISION_MEDIUM;
}
/* Lower large arrays to scratch and small arrays to bcsel (TODO: tune
More information about the mesa-commit
mailing list