glsl: fix recording of variables for XFB in TCS shaders
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 22 Feb 2019 06:13:39 +0000 (01:13 -0500)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Mon, 4 Mar 2019 00:55:00 +0000 (01:55 +0100)
commit4eec3a2a3652317f8e0fa97e0730c297bde8241a
tree33c62552e609c5805f42edcc6534bd0b9696ea7f
parentbf1f49482d677e562993543cd9a9367597ce3ccc
glsl: fix recording of variables for XFB in TCS shaders

This is purely for conformance, since it's not actually possible to do
XFB on TCS output varyings. However we do have to make sure we record
the names correctly, and this removes an extra level of array-ness from
the names in question.

Fixes KHR-GL45.tessellation_shader.single.xfb_captures_data_from_correct_stage

v2: Add comment to the new program_resource_visitor::process function.
    (Ilia Mirkin)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108457
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/link_uniforms.cpp
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/linker.h