nir: Add a type parameter to nir_lower_point_size()
On Mali, we need not only clamp but also convert to float16 on Valhall+. We could have a separate pass for this but it fits in nicely with the rest of nir_lower_point_size() so we might as well put it there. Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38379>
This commit is contained in:
committed by
Marge Bot
parent
5af8abbf8b
commit
6ee4ea5ea3
@@ -1035,7 +1035,7 @@ v3d_nir_lower_vs_early(struct v3d_compile *c)
|
||||
|
||||
/* This must go before nir_lower_io */
|
||||
if (c->vs_key->per_vertex_point_size)
|
||||
NIR_PASS(_, c->s, nir_lower_point_size, 1.0f, 0.0f);
|
||||
NIR_PASS(_, c->s, nir_lower_point_size, 1.0f, 0.0f, nir_type_invalid);
|
||||
|
||||
NIR_PASS(_, c->s, nir_lower_io, nir_var_shader_in | nir_var_shader_out,
|
||||
type_size_vec4,
|
||||
@@ -1077,7 +1077,7 @@ v3d_nir_lower_gs_early(struct v3d_compile *c)
|
||||
|
||||
/* This must go before nir_lower_io */
|
||||
if (c->gs_key->per_vertex_point_size)
|
||||
NIR_PASS(_, c->s, nir_lower_point_size, 1.0f, 0.0f);
|
||||
NIR_PASS(_, c->s, nir_lower_point_size, 1.0f, 0.0f, nir_type_invalid);
|
||||
|
||||
NIR_PASS(_, c->s, nir_lower_io, nir_var_shader_in | nir_var_shader_out,
|
||||
type_size_vec4,
|
||||
|
||||
Reference in New Issue
Block a user