From 1555ac6f0ba57fde41ba58bd2b2ee34cdc00c6d1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 25 Nov 2022 19:57:25 -0500 Subject: [PATCH] agx: Clamp point sizes Fixes vs-point_size-zero. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index e841313a1c2..19fbfbc9ab5 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1934,6 +1934,9 @@ agx_preprocess_nir(nir_shader *nir) { NIR_PASS_V(nir, nir_lower_vars_to_ssa); + if (nir->info.stage == MESA_SHADER_VERTEX) + NIR_PASS_V(nir, nir_lower_point_size, 1.0, 0.0); + /* Lower large arrays to scratch and small arrays to csel */ NIR_PASS_V(nir, nir_lower_vars_to_scratch, nir_var_function_temp, 16, glsl_get_natural_size_align_bytes);