i965/fs: Switch from BRW_MAX_TEX_UNIT to the actual limit.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 18 Jan 2014 22:48:11 +0000 (14:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 Jan 2014 01:18:56 +0000 (17:18 -0800)
commit5a51a268044ab191262e6f73f135ca95aa59f5df
treec8dfc98f3a02e6480438d0419338fbca26f19df1
parent50ce6f682da57bbbc7b78e99f9aeb9422b05dd6e
i965/fs: Switch from BRW_MAX_TEX_UNIT to the actual limit.

BRW_MAX_TEX_UNIT is about to grow, but only Gen7+ will be able to
support the new larger value.  On older platforms, we don't want to
allocate the extra space - it would just be a waste.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_wm.c