mesa/src
Paul Berry be4e9f7a0c mesa: Fix computation of transform feedback num_components.
The function tfeedback_decl::num_components() was not correctly
accounting for transform feedback of whole arrays and gl_ClipDistance.
The bug was hard to notice in tests, because it only affected the
checks for MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS and
MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS.

This patch fixes the computation, and adds an assertion to verify
num_components() even when MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS
and MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS are not exceeded.

The assertion requires keeping track of components_so_far in
tfeedback_decl::store(); this will be useful in a future patch to fix
non-multiple-of-4-sized gl_ClipDistance.

Reviewed-by: Eric Anholt <eric@anholt.net>
2012-01-11 07:57:56 -08:00
..
egl egl/x11: Merge the right version of Frederiks change 2011-12-21 10:29:30 -05:00
gallium tgsi: add ISSG support 2012-01-11 13:49:02 +00:00
gbm
getopt
glsl mesa: Fix computation of transform feedback num_components. 2012-01-11 07:57:56 -08:00
glu glu: remove BeOS define as BeOS is not longer a target platform 2011-12-27 09:16:51 -07:00
glx scons: Fix libGL.so build. 2012-01-10 17:42:02 +00:00
mapi Regenerate files from previous commits 2011-12-13 16:07:17 -08:00
mesa st_extensions: fixup GLSL 1.30 related enables (v3) 2012-01-11 13:49:02 +00:00
Makefile
SConscript