Fix a parser error of GL_KHR_memory_scope_semantics
authorRex Xu <rex.xu@amd.com>
Thu, 6 Feb 2020 08:51:10 +0000 (16:51 +0800)
committerRex Xu <rex.xu@amd.com>
Thu, 6 Feb 2020 08:51:10 +0000 (16:51 +0800)
commitb4bab3ce0113ee030cdbcce00f2d2ca2f45eda79
treeb694f12bd7d7786c1545e2dbbe0aac7432549677
parentb82ed734e767bd0913072a5e236fbd14fcca0acf
Fix a parser error of GL_KHR_memory_scope_semantics

When 2DMS or 2DMSArray is used, IMAGE_PARAMS will take an additional
paramter to represent sample number. The semantics check should get the
correct semantics values, taking this case into account.
Test/baseResults/spv.memoryScopeSemantics.comp.out
Test/spv.memoryScopeSemantics.comp
glslang/MachineIndependent/ParseHelper.cpp