i965: Always reserve clip distance VUE slots in SSO mode.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Aug 2016 20:48:44 +0000 (13:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 24 Nov 2016 05:23:38 +0000 (21:23 -0800)
commitec1f159ac81ed964415d102eed4a0a29be8e7937
treee569c680464b23b694808e0fa56cc6cc2e909a23
parent8cdf73c324bccebd043f725cf218cc530d2588c3
i965: Always reserve clip distance VUE slots in SSO mode.

This fixes rendering in Dolphin on Vulkan since we enabled clip
distances.  (Dolphin on GL has a similar bug because the linker
fails to eliminate unused clip distance built-in arrays, but it
isn't using SSO...so that needs more fixing.)

Also fixes a Piglit test:
spec/glsl-1.50/execution/geometry.clip-distance-vs-gs-out-sso

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_vue_map.c