mesa: Separate transform feedback object initialization from allocation.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Oct 2013 22:54:10 +0000 (15:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 18:04:36 +0000 (11:04 -0700)
commitf02ee3044ffe3ec3e3613e79c0c25aa9eeef5c9f
treed26d577744b06cdf82d8cd6b9a6901f469ae26b1
parent0e2f0baa43b7d06c88168fdbcff3e26b6dd4970b
mesa: Separate transform feedback object initialization from allocation.

Both Gallium and i965 subclass gl_transform_feedback_object, which
requires implementing a custom NewTransformFeedback hook.  Creating a
helper function to initialize the fields avoids code duplication and
divergence.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h