Consider GL_EXT_scalar_block_layout when validating SPIR-V
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 27 Jan 2021 08:30:59 +0000 (00:30 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 28 Jan 2021 22:11:24 +0000 (14:11 -0800)
commita38df83d3ec985d2fd569a29aac69c074083b4b6
tree22b850c6787703009969e6c50910cd0ba4b3cbf6
parentf7c43377f095b96cec8b374ef04120c4b86864f6
Consider GL_EXT_scalar_block_layout when validating SPIR-V

If GL_EXT_scalar_block_layout is requested by the shader, set the
option to allow scalar blocks in the SPIR-V validator.

Fix the existing tests using scalar layout to not expect "Validation
failed".

Fixes #2400.
SPIRV/SpvTools.cpp
Test/baseResults/spv.scalarlayout.frag.out
Test/baseResults/spv.scalarlayoutfloat16.frag.out
glslang/MachineIndependent/localintermediate.h