[Mesa-dev] [PATCH] ra: Add ra_set_node_reg() v2

2011-04-25 Thread Tom Stellard
This function can be used to avoid creating single register classes for input/payload registers. This makes optimistic coloring less likely to fail. v2: Added Eric Anholt's comment to the function. --- src/mesa/program/register_allocate.c | 26 +++--- src/mesa/program/regis

Re: [Mesa-dev] [PATCH] ra: Add ra_set_node_reg()

2011-04-25 Thread Tom Stellard
On Mon, Apr 25, 2011 at 09:18:40AM -0700, Eric Anholt wrote: > On Sun, 24 Apr 2011 22:58:59 -0700, Tom Stellard wrote: > > On Sun, Apr 24, 2011 at 02:00:40PM -0700, Eric Anholt wrote: > > > On Tue, 19 Apr 2011 23:09:46 -0700, Tom Stellard > > > wrote: > > > > This function makes it possible to i

Re: [Mesa-dev] [PATCH] ra: Add ra_set_node_reg()

2011-04-25 Thread Eric Anholt
On Sun, 24 Apr 2011 22:58:59 -0700, Tom Stellard wrote: > On Sun, Apr 24, 2011 at 02:00:40PM -0700, Eric Anholt wrote: > > On Tue, 19 Apr 2011 23:09:46 -0700, Tom Stellard wrote: > > > This function makes it possible to include input / payload registers in > > > the interference graph. > > > > [

Re: [Mesa-dev] [PATCH] ra: Add ra_set_node_reg()

2011-04-24 Thread Tom Stellard
On Sun, Apr 24, 2011 at 02:00:40PM -0700, Eric Anholt wrote: > On Tue, 19 Apr 2011 23:09:46 -0700, Tom Stellard wrote: > > This function makes it possible to include input / payload registers in > > the interference graph. > > [...] > > > +/** > > + * This function allows a user to manually assi

Re: [Mesa-dev] [PATCH] ra: Add ra_set_node_reg()

2011-04-24 Thread Eric Anholt
On Tue, 19 Apr 2011 23:09:46 -0700, Tom Stellard wrote: > This function makes it possible to include input / payload registers in > the interference graph. [...] > +/** > + * This function allows a user to manually assign a register to a node. This > + * is useful for nodes that belong to regis

[Mesa-dev] [PATCH] ra: Add ra_set_node_reg()

2011-04-19 Thread Tom Stellard
This function makes it possible to include input / payload registers in the interference graph. --- src/mesa/program/register_allocate.c | 21 ++--- src/mesa/program/register_allocate.h |1 + 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/mesa/program/reg