Skip to content

freedreno: Fix clipdist lolz

Rob Clark requested to merge robclark/mesa:fd/clipdist-fix into main

A recent virglrenderer change (virgl/virglrenderer@072f3095) resulted in conditional writes to gl_ClipDistance[], but disabling the corresponding clip planes when unused. Which surfaced a few bugs:

  1. We were ignoring the rasterizer state, so not disabling unused clip-planes. Which would get random values if the if statement where gl_ClipDistances[] was written was not taken
  2. We had the pipe cap logic inverted resulting in doing both mesa/st clipdist lowering and hw clipdist.

Merge request reports