i965: Fix a mistake from porting the URB allocation code to arrays.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Nov 2016 20:24:22 +0000 (12:24 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 24 Nov 2016 00:57:29 +0000 (16:57 -0800)
commit5da84a7e120d1df848531c6e7eb60340ac4dc43c
treea4f4b57acfb825be3562c43f25732e0542babcd9
parent903056e016e3ea52c2f493f8b0938b519ee40894
i965: Fix a mistake from porting the URB allocation code to arrays.

Commit 6d416bcd846a49414f210cd761789156c37a7b3e (i965: Use arrays in
Gen7+ URB code.) introduced a regression which caused us to fail to
allocate all of our URB space.

   -         total_wants -= ds_wants;
   +         total_wants -= additional;

The new line should have been total_wants -= wants[i].

Fixes a large performance regression in TessMark.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98815
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/common/gen_urb_config.c