Re: [Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-26 Thread Paul Berry
On 25 August 2013 23:46, Kenneth Graunke wrote: > Previously, we allocated space in brw_vs_prog_data's params and > pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't > necessary. > > On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * > 4 floats per plane * 8 byt

Re: [Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-26 Thread Eric Anholt
Kenneth Graunke writes: > Previously, we allocated space in brw_vs_prog_data's params and > pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't > necessary. > > On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * > 4 floats per plane * 8 bytes per float pointer * 2

[Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-25 Thread Kenneth Graunke
Previously, we allocated space in brw_vs_prog_data's params and pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't necessary. On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * 4 floats per plane * 8 bytes per float pointer * 2 arrays of pointers = 512 bytes). Si