nir: support lowering clipdist to arrays
This allows us to make sure clipdist is emitted as a scalar array rather than two vec4s. This matches SPIR-V semantics, and will be useful for Zink. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -3906,9 +3906,13 @@ bool nir_lower_idiv(nir_shader *shader);
|
||||
|
||||
bool nir_lower_input_attachments(nir_shader *shader, bool use_fragcoord_sysval);
|
||||
|
||||
bool nir_lower_clip_vs(nir_shader *shader, unsigned ucp_enables, bool use_vars);
|
||||
bool nir_lower_clip_gs(nir_shader *shader, unsigned ucp_enables);
|
||||
bool nir_lower_clip_fs(nir_shader *shader, unsigned ucp_enables);
|
||||
bool nir_lower_clip_vs(nir_shader *shader, unsigned ucp_enables,
|
||||
bool use_vars,
|
||||
bool use_clipdist_array);
|
||||
bool nir_lower_clip_gs(nir_shader *shader, unsigned ucp_enables,
|
||||
bool use_clipdist_array);
|
||||
bool nir_lower_clip_fs(nir_shader *shader, unsigned ucp_enables,
|
||||
bool use_clipdist_array);
|
||||
bool nir_lower_clip_cull_distance_arrays(nir_shader *nir);
|
||||
|
||||
void nir_lower_point_size_mov(nir_shader *shader,
|
||||
|
Reference in New Issue
Block a user