i965: Relase input URB Handles on Gen7/7.5 when TCS threads finish.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Nov 2015 01:54:22 +0000 (17:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Dec 2015 21:17:00 +0000 (13:17 -0800)
commitb7793783b3df94880655234bc2a9054eddf01913
treebb81fb1a60935640aad256e70e2b94975cbff4eb
parent6ceabb72eae938570d9aa0ae054bab1df421d79a
i965: Relase input URB Handles on Gen7/7.5 when TCS threads finish.

Pre-Broadwell hardware requires us to manually release the ICP Handles
by issuing URB read messages with the "Complete" bit set.  We can do
this in pairs to use fewer URB read messages.

Based heavily on work from Chris Forbes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp