glsl: Transform fb buffers are only active if a variable uses them
authorNeil Roberts <nroberts@igalia.com>
Mon, 30 Oct 2017 12:22:49 +0000 (13:22 +0100)
committerNeil Roberts <nroberts@igalia.com>
Thu, 9 Nov 2017 04:39:42 +0000 (05:39 +0100)
commit4dc8458cd13154daa48bd97c3f8393daf02aa351
tree82cac611add36b8d0ccf96583423d059f6f2e808
parent951a5dc4cc29da996b54ae63eeba1915a3a65b4a
glsl: Transform fb buffers are only active if a variable uses them

The GL spec will soon be revised to clarify that a buffer binding for
a transform feedback buffer is only required if a variable is actually
defined to use the buffer binding point. Previously a declaration for
the default transform buffer would make it require a binding even if
nothing was declared to use the default buffer.

Affects:
KHR-GL44/45.enhanced_layouts.xfb_stride_of_empty_list
KHR-GL44/45.enhanced_layouts.xfb_stride_of_empty_list_and_api

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/link_varyings.cpp