Skip to content

nir/lower_clip: support non-compact clipdistance array

Juan A. Suárez requested to merge jasuarez/mesa:review/lower-clipfs-gl into main

OpenGL do allow fragment shaders to read gl_ClipDistance[]. In this case, the variable is a non-compact array, but the lowering function assumed it was always compact (as this is the case for Vulkan).

This MR updates the lowering to cover this case.

Merge request reports