diff options
author | Paul Berry <[email protected]> | 2011-12-06 14:16:59 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-12-20 14:32:16 -0800 |
commit | 942d452047431f7463d3fad5e7cb92dfd81fd0ac (patch) | |
tree | f9bcff50c181972e85a14a47e3c37e27ca123211 /src/glsl/ir_visitor.h | |
parent | 9f8573b7aeed3ef88d680dbf2856f19503ac5cd6 (diff) |
mesa: Record transform feedback strides/offsets in linker output.
This patch adds two new fields to the gl_transform_feedback_info
struct:
- BufferStride records the total number of components (per vertex)
that transform feedback is being instructed to store in each buffer.
- Outputs[i].DstOffset records the offset within the interleaved
structure of each transform feedback output.
These values are needed by the i965 gen6 and r600g back-ends, so it
seems better to have the linker provide them rather than force each
back-end to compute them independently.
Also, DstOffset helps pave the way for supporting
ARB_transform_feedback3, which allows the transform feedback output to
contain holes between attributes by specifying
gl_SkipComponents{1,2,3,4} as the varying name.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/glsl/ir_visitor.h')
0 files changed, 0 insertions, 0 deletions