pan/bi: Force psiz to mediump
To match driver behaviour. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15793>
This commit is contained in:
committed by
Marge Bot
parent
90d3f55aff
commit
8e6f97b5fc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user