Re: [Mesa-dev] [PATCH 3/6] glsl: Generalize compute_packing_order for varying structs.

2013-01-23 Thread Ian Romanick
On 01/21/2013 05:16 PM, Paul Berry wrote: This patch paves the way for allowing varying structs by generalizing varying_matches::compute_packing_order to handle any type of varying. Previously, we packed in the order (vec4, vec2, float, vec3), with matrices being packed according to the size of

Re: [Mesa-dev] [PATCH 3/6] glsl: Generalize compute_packing_order for varying structs.

2013-01-23 Thread Paul Berry
On 23 January 2013 07:38, Ian Romanick i...@freedesktop.org wrote: On 01/21/2013 05:16 PM, Paul Berry wrote: This patch paves the way for allowing varying structs by generalizing varying_matches::compute_**packing_order to handle any type of varying. Previously, we packed in the order (vec4,

Re: [Mesa-dev] [PATCH 3/6] glsl: Generalize compute_packing_order for varying structs.

2013-01-23 Thread Ian Romanick
On 01/23/2013 11:16 AM, Paul Berry wrote: On 23 January 2013 07:38, Ian Romanick i...@freedesktop.org mailto:i...@freedesktop.org wrote: On 01/21/2013 05:16 PM, Paul Berry wrote: This patch paves the way for allowing varying structs by generalizing

Re: [Mesa-dev] [PATCH 3/6] glsl: Generalize compute_packing_order for varying structs.

2013-01-23 Thread Paul Berry
On 23 January 2013 08:36, Ian Romanick i...@freedesktop.org wrote: On 01/23/2013 11:16 AM, Paul Berry wrote: On 23 January 2013 07:38, Ian Romanick i...@freedesktop.org mailto:i...@freedesktop.org wrote: On 01/21/2013 05:16 PM, Paul Berry wrote: This patch paves the way for

[Mesa-dev] [PATCH 3/6] glsl: Generalize compute_packing_order for varying structs.

2013-01-21 Thread Paul Berry
This patch paves the way for allowing varying structs by generalizing varying_matches::compute_packing_order to handle any type of varying. Previously, we packed in the order (vec4, vec2, float, vec3), with matrices being packed according to the size of their columns. Now, we pack everything