i965: let the if_stack just store the instruction index
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 21 Dec 2011 06:51:59 +0000 (14:51 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 26 Dec 2011 03:19:17 +0000 (11:19 +0800)
commit0a17093eaf84696b05d04a45d6d51281f7b2786b
treee45a746df6b8723b3f0a28fe4f4c7a4f3df3e54b
parent2175634e73f9c5ccaf565f0dc15520610b1eb7ff
i965: let the if_stack just store the instruction index

If dynamic instruction store size is enabled, while after
the brw_IF/ELSE() and before the brw_ENDIF() function, the
eu instruction store base address(p->store) may change.

Thus let if_stack just store the instruction index. This is
somehow more flexible and safe than store the instruction
memory address.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c