From 8e6f97b5fc1444aa66f0b34c9cb2e01275189e48 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 3 Feb 2022 16:16:36 -0500 Subject: [PATCH] pan/bi: Force psiz to mediump To match driver behaviour. 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 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