Re: [Mesa-dev] [PATCH 1/4] glsl: make max array trackers ints and use -1 as base.

2016-05-23 Thread Ilia Mirkin
On Thu, May 19, 2016 at 11:47 PM, Dave Airlie wrote: > From: Dave Airlie > > This fixes a bug that breaks cull distances. The problem > is the max array accessors can't tell the difference between > an never accessed unsized array and an accessed at location 0 > unsized array. This leads to conve

[Mesa-dev] [PATCH 1/4] glsl: make max array trackers ints and use -1 as base.

2016-05-19 Thread Dave Airlie
From: Dave Airlie This fixes a bug that breaks cull distances. The problem is the max array accessors can't tell the difference between an never accessed unsized array and an accessed at location 0 unsized array. This leads to converting an undeclared unused gl_ClipDistance inside or outside gl_P