glsl: Extend lowering pass for gl_ClipDistance to support other arrays (v4)
[mesa.git] / src / compiler / glsl / ir_optimization.h
index f9599a39ff5c917f14338484c1d1c127e2f2b512..2a1b709443e52f423721cd2028fde9d771512116 100644 (file)
@@ -117,7 +117,9 @@ bool lower_variable_index_to_cond_assign(gl_shader_stage stage,
     bool lower_temp, bool lower_uniform);
 bool lower_quadop_vector(exec_list *instructions, bool dont_lower_swz);
 bool lower_const_arrays_to_uniforms(exec_list *instructions);
-bool lower_clip_distance(gl_shader *shader);
+bool lower_combined_clip_cull_distance(gl_shader *shader,
+                                       uint8_t clipDistanceArraySize,
+                                       uint8_t cullDistanceArraySize);
 void lower_output_reads(unsigned stage, exec_list *instructions);
 bool lower_packing_builtins(exec_list *instructions, int op_mask);
 void lower_shared_reference(struct gl_shader *shader, unsigned *shared_size);