[Mesa-dev] [PATCH 3/4] i965: let if_stack just store the instruction index

2011-11-29 Thread Yuanhan Liu
Let if_stack just store the instruction pointer(an index). This is somehow more flexible than store the instruction memory address. This patch is mainly for the next patch. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/drivers/dri/i965/brw_eu.c |3 +--

Re: [Mesa-dev] [PATCH 3/4] i965: let if_stack just store the instruction index

2011-11-29 Thread Eric Anholt
On Tue, 29 Nov 2011 16:08:38 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: Let if_stack just store the instruction pointer(an index). This is somehow more flexible than store the instruction memory address. I'd be more specific: This lets us realloc the instruction store. diff --git

Re: [Mesa-dev] [PATCH 3/4] i965: let if_stack just store the instruction index

2011-11-29 Thread Yuanhan Liu
On Tue, Nov 29, 2011 at 10:35:42AM -0800, Eric Anholt wrote: On Tue, 29 Nov 2011 16:08:38 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: Let if_stack just store the instruction pointer(an index). This is somehow more flexible than store the instruction memory address. I'd be more