OSDN Git Service

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>
Tue, 24 Jan 2012 19:51:43 +0000 (20:51 +0100)
commit1a499d761a904eed565b0cdc36cea02e043f5761
tree18a1fd66e6aa7080f2e15924e1ee0ce7b0e55bf6
parentf97ee6460670b8c69cd878eb67f4f0b0fbc92786
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>
(cherry picked from commit d540af554adfe302387014c0f46d6ac3aaa75121)
src/glsl/linker.cpp
src/mesa/main/mtypes.h