Re: [Mesa-dev] [PATCH 1/2] glsl: validate IR after linking (debug builds only)

2011-08-05 Thread Kenneth Graunke
On 08/03/2011 05:07 PM, Paul Berry wrote: > At least one of the invariants verified by IR validation concerns the > relative ordering of toplevel constructs in the IR: references to > global variables must come after the declarations of those global > variables. > > Since linking affects the order

[Mesa-dev] [PATCH 1/2] glsl: validate IR after linking (debug builds only)

2011-08-03 Thread Paul Berry
At least one of the invariants verified by IR validation concerns the relative ordering of toplevel constructs in the IR: references to global variables must come after the declarations of those global variables. Since linking affects the ordering of toplevel constructs in the IR, it's possible th