GL_ARB_shading_language_420pack: component names sets mix is forbidden
authorAndres Gomez <agomez@igalia.com>
Thu, 17 Nov 2016 15:57:00 +0000 (17:57 +0200)
committerAlexander Galazin <alexander.galazin@arm.com>
Mon, 5 Dec 2016 09:51:13 +0000 (10:51 +0100)
commited1f4c1a03624dca83bc9c016745e5ab3eb51667
tree31feac4a7369cf973bc7574829d18ecb5a3664b1
parentddc825691c356805591ad1160ce12efd440e07b9
GL_ARB_shading_language_420pack: component names sets mix is forbidden

When refering to component names we can use xywz, rgba or stpq but not
mix them when refering to the components of a specific resulting vector
or scalar.

For example, this is illegal; float(1.5).xr, but this is legal;
float(1.5).xxxx.rgba.stpq.xywz

GL_ARB_shading_language_420pack doesn't explicitly forbid it but we can
find the following in the specs:

From The OpenGLĀ® Shading Language 4.40, page 104:

  "  v4.xgba;   // is illegal - the component names do not come from
                                the same set."

Added another case for the following test:
    GL44-CTS.shading_language_420pack.scalar_swizzlers_invalid

Change-Id: I31889598ccf88850c44eeb0e267f43f2d89bbcf2
external/openglcts/modules/gl/gl4cShadingLanguage420PackTests.cpp
external/openglcts/modules/gl/gl4cShadingLanguage420PackTests.hpp