freedreno: Fix clipdist lolz
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:
- We were ignoring the rasterizer state, so not disabling unused clip-planes. Which would get random values if the
if
statement wheregl_ClipDistances[]
was written was not taken - We had the pipe cap logic inverted resulting in doing both mesa/st clipdist lowering and hw clipdist.