i965: Force outputs_written to contain varyings needed by stream-out.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Sep 2017 05:59:21 +0000 (22:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Sep 2017 16:39:32 +0000 (09:39 -0700)
commitef719f4fd253161843abf2749ae5220f502caa51
tree58ee46eedf817f4912af639ad6305c1c4079b40e
parent6d6fae95a360aebcda92b1c0c8ab22a923bc3f54
i965: Force outputs_written to contain varyings needed by stream-out.

If transform feedback is recording a varying, it needs a slot in the
VUE map, regardless of whether or not the shader writes it.

Together with the previous patch, this fixes:
- KHR-GL45.enhanced_layouts.xfb_capture_struct

The test captures a structure where the vertex shader writes the first
and third members - but the second still needs a slot.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/mesa/drivers/dri/i965/brw_link.cpp