panfrost: Disable point size upper limit clamping

The hardware already clamps this, there is no need to do it in the
shader.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15250>
This commit is contained in:
Icecream95 2022-01-18 16:02:12 +13:00 committed by Alyssa Rosenzweig
parent 66684339d5
commit 198cb4a77a
2 changed files with 2 additions and 2 deletions

View File

@ -3880,7 +3880,7 @@ 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, 1024.0);
NIR_PASS_V(nir, nir_lower_point_size, 1.0, 0.0);
}
/* Lower large arrays to scratch and small arrays to bcsel (TODO: tune

View File

@ -3155,7 +3155,7 @@ midgard_compile_shader_nir(nir_shader *nir,
if (ctx->stage == MESA_SHADER_VERTEX) {
NIR_PASS_V(nir, nir_lower_viewport_transform);
NIR_PASS_V(nir, nir_lower_point_size, 1.0, 1024.0);
NIR_PASS_V(nir, nir_lower_point_size, 1.0, 0.0);
}
NIR_PASS_V(nir, nir_lower_var_copies);