[Mesa-dev] [PATCH] glsl: translate transform feedback varyings into low-level representation
Brian Paul
brianp at vmware.com
Wed Oct 26 15:33:45 PDT 2011
On 10/26/2011 04:28 PM, Marek Olšák wrote:
> This adds a function that takes an array of varyings from
> glTranformFeedbackVaryingsEXT and generates gl_transform_feedback_info,
> which is supposed to be consumed by drivers. Useful for ir_to_mesa
> and glsl_to_tgsi.
>
> With Dan McCabe's patch, I think this is all that's needed for transform
> feedback GLSL support. This work should probably be better integrated with
> Dan's code though (maybe some stuff that's done here should be done
> in the linker instead).
>
> What's missing is reporting linker errors (AFAIK). This patch just covers
> the post-link part.
>
> The piglit tests ext_transform_feedback-position,separate,interleaved
> pass with this.
>
> ---
> src/glsl/Makefile | 1 +
> src/glsl/ir.h | 15 ++
> src/glsl/ir_set_transform_feedback_outs.cpp | 299 +++++++++++++++++++++++++++
> src/mesa/main/mtypes.h | 12 +
> 4 files changed, 327 insertions(+), 0 deletions(-)
> create mode 100644 src/glsl/ir_set_transform_feedback_outs.cpp
>
New files should also be added to src/glsl/SConscript.
-Brian
More information about the mesa-dev
mailing list