Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-23 Thread Paul Berry
On 22 March 2013 13:11, Paul Berry wrote: > On 22 March 2013 12:32, Eric Anholt wrote: > >> Paul Berry writes: >> > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c >> b/src/mesa/drivers/dri/i965/brw_vs.c >> > index c8ca018..7e941dd 100644 >> > --- a/src/mesa/drivers/dri/i965/brw_vs.c >> > +++ b

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-23 Thread Paul Berry
On 23 March 2013 11:02, Kenneth Graunke wrote: > On 03/22/2013 05:42 PM, Eric Anholt wrote: > >> Paul Berry writes: >> >> On 22 March 2013 12:32, Eric Anholt wrote: >>> >>> Paul Berry writes: > diff --git a/src/mesa/drivers/dri/i965/**brw_vs.c > b/src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-23 Thread Kenneth Graunke
On 03/22/2013 05:42 PM, Eric Anholt wrote: Paul Berry writes: On 22 March 2013 12:32, Eric Anholt wrote: Paul Berry writes: diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index c8ca018..7e941dd 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/s

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Eric Anholt
Paul Berry writes: > On 22 March 2013 12:32, Eric Anholt wrote: > >> Paul Berry writes: >> > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c >> b/src/mesa/drivers/dri/i965/brw_vs.c >> > index c8ca018..7e941dd 100644 >> > --- a/src/mesa/drivers/dri/i965/brw_vs.c >> > +++ b/src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Paul Berry
On 22 March 2013 12:32, Eric Anholt wrote: > Paul Berry writes: > > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c > b/src/mesa/drivers/dri/i965/brw_vs.c > > index c8ca018..7e941dd 100644 > > --- a/src/mesa/drivers/dri/i965/brw_vs.c > > +++ b/src/mesa/drivers/dri/i965/brw_vs.c > > @@ -66,6 +66,

Re: [Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-22 Thread Eric Anholt
Paul Berry writes: > diff --git a/src/mesa/drivers/dri/i965/brw_vs.c > b/src/mesa/drivers/dri/i965/brw_vs.c > index c8ca018..7e941dd 100644 > --- a/src/mesa/drivers/dri/i965/brw_vs.c > +++ b/src/mesa/drivers/dri/i965/brw_vs.c > @@ -66,6 +66,12 @@ brw_compute_vue_map(struct brw_context *brw, struc

[Mesa-dev] [PATCH v2 5/5] i965: Shrink brw_vue_map struct.

2013-03-21 Thread Paul Berry
This patch changes the arrays in brw_vue_map (which only ever contain values from -1 to 58) from ints to signed chars. This reduces the size of the struct from 488 bytes to 136 bytes. --- src/mesa/drivers/dri/i965/brw_context.h | 4 ++-- src/mesa/drivers/dri/i965/brw_vs.c | 6 ++ 2 files