mesa/src
Kenneth Graunke 32d50d0f75 i965: Fix last slot calculations
If the VUE map has slots at the end which the shader does not write,
then we'd "flush" (constructing an URB write) on the last output it
actually wrote.  Then, we'd construct another SEND with EOT, but with
no actual payload data.  That's not legal.

For example, SSO programs have clip distance slots allocated no matter
what, but the shader may not write them.  If it doesn't write any user
defined varyings, then the clip distance slots will be the last ones.

Found while debugging
dEQP-VK.tessellation.shader_input_output.gl_position_vs_to_tcs_to_tes

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
(cherry picked from commit 480d6c1653)
2017-01-24 01:13:25 +00:00
..
amd radv: fix dual source blending 2017-01-24 01:13:22 +00:00
compiler nir: Turn imov/fmov of undef into undef 2017-01-24 01:13:21 +00:00
egl egl: Emit correct error when robust context creation fails 2017-01-24 01:13:23 +00:00
gallium va: call texture_get_handle while the mutex is being held 2017-01-24 01:13:24 +00:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-24 16:34:42 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: make interop ABI visible again 2016-11-09 14:06:27 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: Handle vkGetPhysicalDeviceQueueFamilyProperties with count == 0 2017-01-24 01:13:24 +00:00
loader loader: cleanup copyright section 2016-10-18 17:06:32 +01:00
mapi mapi: automake: set VISIBILITY_CFLAGS for shared glapi 2016-10-24 11:32:13 +01:00
mesa i965: Fix last slot calculations 2017-01-24 01:13:25 +00:00
util util: Include string.h in bitscan.h. 2016-11-01 13:21:51 +00:00
vulkan/wsi vulkan/wsi/x11: don't crash on null wsi x11 connection 2017-01-24 01:13:23 +00:00
Makefile.am anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00