Fix resizing of gl_PrimitiveIndicesNV[] to max_primitives*geomSize
authorSahil Parmar <sparmar@nvidia.com>
Mon, 11 Feb 2019 23:12:13 +0000 (15:12 -0800)
committerSahil Parmar <sparmar@nvidia.com>
Mon, 11 Feb 2019 23:15:33 +0000 (15:15 -0800)
commitab027bef3dbf3758d0cd06c35b4ee0899ba0c28a
treec6371d283ebc2a1b76b6a83a48632bfe2227e83f
parent05d12a9461dd0a76053bdd42f062a37a10d56afb
Fix resizing of gl_PrimitiveIndicesNV[] to max_primitives*geomSize

- This change also allows redeclaration of gl_PrimitiveIndicesNV and
  adds error checks against incorrect explicit array size.
- Also modifies gtests to check array bound limits and redeclare gl_PrimitiveIndicesNV[].
Test/baseResults/spv.meshShaderBuiltins.mesh.out
Test/baseResults/spv.meshShaderRedeclBuiltins.mesh.out
Test/spv.meshShaderBuiltins.mesh
Test/spv.meshShaderRedeclBuiltins.mesh
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.h