Defer capability decl for ClipDistance, CullDistance, PointSize until actual use
authorDavid Neto <dneto@google.com>
Wed, 8 Jun 2016 13:11:40 +0000 (14:11 +0100)
committerDavid Neto <dneto@google.com>
Wed, 8 Jun 2016 13:30:04 +0000 (09:30 -0400)
commita901ffed40f219c87757c1ff6dbcda3082c116bd
tree1be45c92f225b011c0673477ff01d0728d58026b
parent71d55c090a8c22846c0f94d795662425b301c5f0
Defer capability decl for ClipDistance, CullDistance, PointSize until actual use

The compiler will mark struct members with those builtins, but won't
declare the capability until that member is accessed by some executable
instruction.

Test changes:
- spv.430.vert: was missing ClipDistance capability.
- spv.precise.tese: remove TessellationPointSize capability.
SPIRV/GlslangToSpv.cpp
Test/baseResults/spv.430.vert.out
Test/baseResults/spv.precise.tese.out