Re: [Mesa-dev] [PATCH] glsl: Fix gl_NormalMatrix swizzle setup to match i965's invariants.

2011-10-20 Thread Eric Anholt
On Wed, 19 Oct 2011 11:26:02 -0700, Paul Berry wrote: Non-text part: multipart/alternative > On 18 October 2011 17:33, Eric Anholt wrote: > > > A driver trying to set up builtin uniforms is faced with a problem: > > How do I walk the ir_variable structure (representing an array of > > structs, o

Re: [Mesa-dev] [PATCH] glsl: Fix gl_NormalMatrix swizzle setup to match i965's invariants.

2011-10-19 Thread Paul Berry
On 18 October 2011 17:33, Eric Anholt wrote: > A driver trying to set up builtin uniforms is faced with a problem: > How do I walk the ir_variable structure (representing an array of > structs, or array of matrices, or struct, or whatever), and set up > driver structures so that dereference of th

[Mesa-dev] [PATCH] glsl: Fix gl_NormalMatrix swizzle setup to match i965's invariants.

2011-10-18 Thread Eric Anholt
A driver trying to set up builtin uniforms is faced with a problem: How do I walk the ir_variable structure (representing an array of structs, or array of matrices, or struct, or whatever), and set up driver structures so that dereference of that uniform gets the corresponding ParameterValues[] ent