Add some tests for redeclarations of builtins
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 23 Aug 2018 06:18:35 +0000 (16:18 +1000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 26 Sep 2018 09:40:20 +0000 (05:40 -0400)
commit8789f84a25d8cc26ce48f9104d86379475f01820
treed104ab1b6fdcbfc78e0c76d58c74cfbf2cd344ba
parent2c94305fc4b3b5c93fc9a8e1e977dd2e38c9d27a
Add some tests for redeclarations of builtins

From Section 3.7. (Identifiers) of the GLSL 4.60 spec:

   "Identifiers starting with “gl_” are reserved for use by OpenGL,
   and in general, may not be declared in a shader; this results in
   a compile-time error. However, as noted in the specification,
   there are some cases where previously declared variables can be
   redeclared, and predeclared “gl_” names are allowed to be
   redeclared in a shader only for these specific purposes."

The specific cases where redeclaration is allowed are cases where
invariant is added, precision qualifiers are added, an array size is
added, etc.

Components: OpenGL
Affects: KHR-GL[34]*.shaders30.declarations.declarations*

Change-Id: Ifa39311d64e24d8e1a419959a2e6b2252991e694
13 files changed:
external/openglcts/data/gl30/declarations.test [new file with mode: 0644]
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl30-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl31-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl32-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl33-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl40-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl41-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl42-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl43-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl44-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl45-master.txt
external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/gl46-master.txt
external/openglcts/modules/gl/gl3cTestPackages.cpp