mesa: allocate transform_feedback_info::Outputs array dynamically
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 20 Jan 2012 12:24:46 +0000 (13:24 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 20 Jan 2012 18:24:31 +0000 (19:24 +0100)
commitd540af554adfe302387014c0f46d6ac3aaa75121
tree1b470569cc1c0fefd7e14623f903eaf9e0850959
parentc96b9834032952492efbd2d1f5511fe225704918
mesa: allocate transform_feedback_info::Outputs array dynamically

The nvc0 gallium driver is advertising 128 MAX_INTERLEAVED_COMPS
which made it always assert in the linker when TFB was used since
the Outputs array was smaller than that maximum.

v2: added assertions

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/linker.cpp
src/mesa/main/mtypes.h