glsl: apply xfb_stride to implicit offsets for ifc block members
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 10 Mar 2016 00:51:48 +0000 (11:51 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:50:49 +0000 (12:50 +1100)
commit598790e8564280b8f3f105c0ff6de9fff4d45e30
tree01a69eadb001d7a59fa8537fc18ad192bbb88724
parent04a72e6e57ea97db2023bec50a10f2106f5d5b24
glsl: apply xfb_stride to implicit offsets for ifc block members

When we have an interface block like:

layout (xfb_buffer = 0, xfb_offset = 0) out Block {
                             vec4 var1;
    layout (xfb_stride = 32) vec4 var2;
                             vec4 var3;
};

We take into account the stride of var2 when calculating the offset
for var3.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp