summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-03-10 11:40:37 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-03-31 12:52:43 +1100
commit51142e7705a5e0c28de9fc097fa7c8446ba0cffe (patch)
treea581166672d1b3227bfc50924874e4b914e2f92b /src/compiler/glsl/link_varyings.cpp
parent047139e8a027d81141b6e0b1bc939942e873f3ce (diff)
downloadexternal_mesa3d-51142e7705a5e0c28de9fc097fa7c8446ba0cffe.zip
external_mesa3d-51142e7705a5e0c28de9fc097fa7c8446ba0cffe.tar.gz
external_mesa3d-51142e7705a5e0c28de9fc097fa7c8446ba0cffe.tar.bz2
mesa: add support to query GL_OFFSET for GL_TRANSFORM_FEEDBACK_VARYING
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r--src/compiler/glsl/link_varyings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp
index d486b69..b091eaf 100644
--- a/src/compiler/glsl/link_varyings.cpp
+++ b/src/compiler/glsl/link_varyings.cpp
@@ -742,6 +742,7 @@ tfeedback_decl::store(struct gl_context *ctx, struct gl_shader_program *prog,
} else {
xfb_offset = info->Buffers[buffer].Stride;
}
+ info->Varyings[info->NumVarying].Offset = xfb_offset * 4;
unsigned location = this->location;
unsigned location_frac = this->location_frac;