OSDN Git Service

mesa: declare UniformBufferBindings as an array with a static size
authorMarek Olšák <maraeo@gmail.com>
Tue, 14 May 2013 15:58:32 +0000 (17:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 28 May 2013 11:05:30 +0000 (13:05 +0200)
commit15a4b6db2192b0adc05c3dc07cf043316c556f2e
tree33681024f6e8dd67bf32a703781ea3fd3f3f854f
parentcdad129f9cda038fb29cde94645d2fcab7207c50
mesa: declare UniformBufferBindings as an array with a static size

Some Gallium drivers were crashing, because the array was not large enough.

v2: clamp the per-shader maximum in st/mesa, then sum them all up

NOTE: This is a candidate for the stable branches.
src/mesa/main/bufferobj.c
src/mesa/main/config.h
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c