mesa/src
Eric Anholt 38e77e545d glsl: Fix uniform buffer object counting.
We were counting uniforms located in UBOs against the default uniform
block limit, while not doing any counting against the specific combined
limit.

Note that I couldn't quite find justification for the way I did this, but
I think it's the only sensible thing: The spec talks about components, so
each "float" in a std140 block would count as 1 component and a "vec4"
would count as 4, though they occupy the same amount of space.  Since GPU
limits on uniform buffer loads are surely going to be about the size of
the blocks, I just counted them that way.

Fixes link failures in piglit
arb_uniform_buffer_object/maxuniformblocksize when ported to geometry
shaders on Paul's GS branch, since in that case the max block size is
bigger than the default uniform block component limit.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-06-06 14:37:41 -07:00
..
egl mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
gallium radeon/winsys: correct RADEON_GEM_WAIT_IDLE use 2013-06-06 11:01:18 +02:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Fix uniform buffer object counting. 2013-06-06 14:37:41 -07:00
glx mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
gtest
mapi mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
mesa glsl: Fix uniform buffer object counting. 2013-06-06 14:37:41 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript