ParseHelper: assign xfb_offset for struct members too
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 26 Oct 2018 10:35:54 +0000 (12:35 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 31 Oct 2018 09:34:44 +0000 (10:34 +0100)
commitaf8c1bdb161e4b2ddf019b61bdfca61f84cb1ca8
tree120e2abf855c8554e95c24a1cb2f2aa962cff0ec
parent0ac199df32687fe17b38cd2d0da64c3742e24fef
ParseHelper: assign xfb_offset for struct members too

If the out variable is a struct type, with a xfb_offset explicitly
assigned, the members need to get their xfb_offset assigned. This is
specially relevant, as we cannot use layout qualifiers on struct
members.
Test/baseResults/spv.xfbOffsetOnStructMembersAssignment.vert.out [new file with mode: 0644]
Test/spv.xfbOffsetOnStructMembersAssignment.vert [new file with mode: 0644]
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.h
gtests/Spv.FromFile.cpp
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h