i965: increase the brw eu instruction store size dynamically
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 21 Dec 2011 07:38:44 +0000 (15:38 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 26 Dec 2011 03:24:42 +0000 (11:24 +0800)
commit3aa3c3f75894ca0eb08087c0ec3dd114eeae4bb7
tree908db8c33bd7a990073eea8876ef6133c5b47e96
parent8d1b378939768c4054b35b5da592af102345ebed
i965: increase the brw eu instruction store size dynamically

Here is the final patch to enable dynamic eu instruction store size:
increase the brw eu instruction store size dynamically instead of just
allocating it statically with a constant limit. This would fix something
that 'GL_MAX_PROGRAM_INSTRUCTIONS_ARB was 16384 while the driver would
limit it to 10000'.

v2: comments from ken, do not hardcode the eu limit to (1024 * 1024)

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
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