i965: Use arrays in Gen7+ URB code.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Nov 2016 09:03:13 +0000 (01:03 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Nov 2016 19:40:00 +0000 (11:40 -0800)
commit6d416bcd846a49414f210cd761789156c37a7b3e
tree84bfc451650a15343425a21f8ead5fafebc53365
parent6656dd4b92f3f1d7984ead26dde1221e103e7392
i965: Use arrays in Gen7+ URB code.

So much of this code was cut and pasted per stage.  We can accomplish
much of it by looping over shader stages.

Improves performance of OglBatch7 (version 6) by 1.50783% +/- 0.287049%
(n = 71) at 1024x768 on Cherryview.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/gen7_urb.c